1
1
name : Ubuntu build
2
2
on :
3
3
push :
4
- branches :
5
- - master
6
- - experimental
7
4
pull_request :
8
- branches :
9
- - master
10
- - experimental
11
5
12
6
# #######################################################################
13
7
# # CONFIGURATION
46
40
# #######################################################################
47
41
48
42
env :
49
- GHC_VERSION : 8 .6.5
50
- CABAL_VERSION : 3.2.0 .0
43
+ GHC_VERSION : 9 .6.3
44
+ CABAL_VERSION : 3.10.1 .0
51
45
CABAL_INSTALL : cabal v1-install --ghc-options='-O1 +RTS -M6G -RTS'
52
46
# CABAL_INSTALL: cabal install --overwrite-policy=always --ghc-options='-O1 +RTS -M6G -RTS'
53
- AGDA : agda -Werror +RTS -M3.5G -H3.5G -A128M -RTS -i. -i src/
47
+ AGDA : agda -Werror +RTS -M6G -H3.5G -A128M -RTS -i. -i src/
54
48
55
49
jobs :
56
50
test-stdlib :
@@ -71,22 +65,10 @@ jobs:
71
65
72
66
- name : Initialise variables
73
67
run : |
74
- if [[ '${{ github.ref }}' == 'refs/heads/master' \
75
- || '${{ github.base_ref }}' == 'master' ]]; then
76
- # Pick Agda version for master
77
- echo "AGDA_COMMIT=tags/v2.6.1.3.20210524" >> $GITHUB_ENV;
78
- echo "AGDA_HTML_DIR=html" >> $GITHUB_ENV
79
- elif [[ '${{ github.ref }}' == 'refs/heads/experimental' \
80
- || '${{ github.base_ref }}' == 'experimental' ]]; then
81
- # Pick Agda version for experimental
82
- echo "AGDA_COMMIT=9047e32a1b0cba98a299ed439a08d35bc4846f99" >> $GITHUB_ENV;
83
- echo "AGDA_HTML_DIR=html/experimental" >> $GITHUB_ENV
84
- fi
85
-
86
- if [[ '${{ github.ref }}' == 'refs/heads/master' \
87
- || '${{ github.ref }}' == 'refs/heads/experimental' ]]; then
88
- echo "AGDA_DEPLOY=true" >> $GITHUB_ENV
89
- fi
68
+ echo "AGDA_COMMIT=tags/v2.6.4" >> "$GITHUB_ENV"
69
+ echo "AGDA_HTML_DIR=html/v1.7.3" >> "$GITHUB_ENV"
70
+ echo "AGDA_DEPLOY=true" >> "$GITHUB_ENV"
71
+
90
72
91
73
# #######################################################################
92
74
# # CACHING
98
80
# i.e. if we change either the version of Agda, ghc, or cabal that we want
99
81
# to use for the build.
100
82
- name : Cache cabal packages
101
- uses : actions/cache@v2
83
+ uses : actions/cache@v3
102
84
id : cache-cabal
103
85
with :
104
86
path : |
@@ -113,16 +95,19 @@ jobs:
113
95
114
96
- name : Install cabal
115
97
if : steps.cache-cabal.outputs.cache-hit != 'true'
116
- uses :
actions/setup[email protected]
98
+ uses : haskell- actions/setup@v2
117
99
with :
118
100
ghc-version : ${{ env.GHC_VERSION }}
119
101
cabal-version : ${{ env.CABAL_VERSION }}
102
+ cabal-update : true
120
103
121
104
- name : Put cabal programs in PATH
122
- run : echo "~/.cabal/bin" >> $GITHUB_PATH
105
+ run : echo "~/.cabal/bin" >> " $GITHUB_PATH"
123
106
124
- - name : Cabal update
125
- run : cabal update
107
+ - name : Install alex and happy
108
+ if : steps.cache-cabal.outputs.cache-hit != 'true'
109
+ run : |
110
+ ${{ env.CABAL_INSTALL }} alex happy
126
111
127
112
- name : Download and install Agda from github
128
113
if : steps.cache-cabal.outputs.cache-hit != 'true'
@@ -141,7 +126,7 @@ jobs:
141
126
142
127
# By default github actions do not pull the repo
143
128
- name : Checkout stdlib
144
- uses : actions/checkout@v2
129
+ uses : actions/checkout@v4
145
130
146
131
- name : Test stdlib
147
132
run : |
@@ -188,4 +173,4 @@ jobs:
188
173
with :
189
174
branch : gh-pages
190
175
folder : html
191
- git-config-name : Github Actions
176
+ git-config-name : Github Actions
0 commit comments