mirror of
https://github.com/Smaug123/agdaproofs
synced 2025-10-16 17:08:39 +00:00
Add GitHub Workflow (#129)
This commit is contained in:
65
.github/workflows/agda.yaml
vendored
Normal file
65
.github/workflows/agda.yaml
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
master
|
||||
|
||||
jobs:
|
||||
Compile:
|
||||
strategy:
|
||||
matrix:
|
||||
agda-ref: ["v2.6.2"]
|
||||
ghc-ver: ["8.10.2"]
|
||||
cabal-ver: ["3.4.0.0"]
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/cache@v2
|
||||
name: Cache cabal packages
|
||||
id: cache-cabal
|
||||
with:
|
||||
path: |
|
||||
~/.cabal/packages
|
||||
~/.cabal/store
|
||||
~/.cabal/bin
|
||||
dist-newstyle
|
||||
key: ${{ runner.os }}-${{ matrix.ghc-ver }}-${{ matrix.cabal-ver }}-${{ matrix.agda-ref }}
|
||||
|
||||
- name: Install cabal
|
||||
if: steps.cache-cabal.outputs.cache-hit != 'true'
|
||||
uses: actions/setup-haskell@v1.1.3
|
||||
with:
|
||||
ghc-version: ${{ matrix.ghc-ver }}
|
||||
cabal-version: ${{ matrix.cabal-ver }}
|
||||
|
||||
- name: Put cabal programs in PATH
|
||||
run: echo "~/.cabal/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Download Agda from github
|
||||
if: steps.cache-cabal.outputs.cache-hit != 'true'
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: agda/agda
|
||||
path: agda
|
||||
ref: ${{ matrix.agda-ref }}
|
||||
|
||||
- name: Install Agda
|
||||
if: steps.cache-cabal.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cabal update
|
||||
cabal install --overwrite-policy=always --ghc-options='-O2 +RTS -M6G -RTS' alex-3.2.5
|
||||
cabal install --overwrite-policy=always --ghc-options='-O2 +RTS -M6G -RTS' happy-1.19.12
|
||||
cd agda
|
||||
mkdir -p doc
|
||||
touch doc/user-manual.pdf
|
||||
cabal install --overwrite-policy=always --ghc-options='-O1 +RTS -M6G -RTS'
|
||||
|
||||
- name: Checkout master
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Compile main library
|
||||
run: |
|
||||
agda Everything/Unsafe.agda
|
||||
agda Everything/Safe.agda
|
||||
agda Everything/WithK.agda
|
||||
agda Everything/Guardedness.agda
|
Reference in New Issue
Block a user