Skip to content

Add CI

Add CI #2

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, synchronize]
push:
branches: [master, ghc-9.6-plinth]
workflow_dispatch:
jobs:
cabal:
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ghc: ['9.6.7']
steps:
- uses: actions/checkout@v4
with:
submodules: false
- name: Setup SSH for submodules
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SUBMODULE_SSH_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Init and update submodules
run: |
git submodule sync
git submodule update --init --recursive
- name: Build uplc-ghc
run: ./plinth-build.sh
- name: Test uplc-ghc
run: ./plinth-test.sh