-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (79 loc) · 2.42 KB
/
cabal-install.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
######################################################
## ##
## !!!! Autogenerated YAML file, do not edit !!!! ##
## ##
## Edit source in /src/github/workflows/ instead! ##
## ##
######################################################
defaults:
run:
shell: bash
jobs:
auto-cancel:
if: |
!contains(github.event.head_commit.message, '[skip ci]')
&& !contains(github.event.head_commit.message, '[ci skip]')
&& !contains(github.event.head_commit.message, '[github skip]')
&& !contains(github.event.head_commit.message, '[skip github]')
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
cabal-install:
env:
FLAGS: -O0 -f enable-cluster-counting
needs: auto-cancel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Environment settings based on the Haskell setup
run: |
export GHC_VER=$(ghc --numeric-version)
export CABAL_VER=$(cabal --numeric-version)
echo "GHC_VER = ${GHC_VER}"
echo "CABAL_VER = ${CABAL_VER}"
echo "GHC_VER=${GHC_VER}" >> ${GITHUB_ENV}
echo "CABAL_VER=${CABAL_VER}" >> ${GITHUB_ENV}
- name: Configure the build plan
run: |
cabal update
cabal configure ${FLAGS}
cabal build --dry-run
- id: cache
name: Cache dependencies
uses: actions/cache@v3
with:
key: cabal-install.yml-${{ runner.os }}-ghc-${{ env.GHC_VER }}-cabal-${{ env.CABAL_VER
}}-${{ hashFiles('**/plan.json') }}
path: ~/.cabal/store
restore-keys: cabal-install.yml-${{ runner.os }}-ghc-${{ env.GHC_VER }}-cabal-${{
env.CABAL_VER }}-
- if: ${{ !steps.cache.outputs.cache-hit }}
name: Install dependencies
run: |
cabal build --only-dependencies
- name: Install Agda
run: |
cabal install ${FLAGS}
timeout-minutes: 60
name: Install (v2-cabal)
'on':
pull_request:
paths:
- .github/workflows/cabal-install.yml
- Agda.cabal
- Setup.hs
- src/full/**
- src/main/**
push:
branches:
- master
- ci-*
- release*
paths:
- .github/workflows/cabal-install.yml
- Agda.cabal
- Setup.hs
- src/full/**
- src/main/**