Skip to content

Commit 3f869a3

Browse files
committed
Update CI for v1.7.3: Use Agda 2.6.4; deploy HTML to v1.7.3 subdirectory
Also: - install alex and happy - bump Agda heap to -M6G
1 parent 84c16c1 commit 3f869a3

File tree

1 file changed

+17
-32
lines changed

1 file changed

+17
-32
lines changed

Diff for: .github/workflows/ci-ubuntu.yml

+17-32
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
name: Ubuntu build
22
on:
33
push:
4-
branches:
5-
- master
6-
- experimental
74
pull_request:
8-
branches:
9-
- master
10-
- experimental
115

126
########################################################################
137
## CONFIGURATION
@@ -46,11 +40,11 @@ on:
4640
########################################################################
4741

4842
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
5145
CABAL_INSTALL: cabal v1-install --ghc-options='-O1 +RTS -M6G -RTS'
5246
# 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/
5448

5549
jobs:
5650
test-stdlib:
@@ -71,22 +65,10 @@ jobs:
7165

7266
- name: Initialise variables
7367
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+
9072
9173
########################################################################
9274
## CACHING
@@ -98,7 +80,7 @@ jobs:
9880
# i.e. if we change either the version of Agda, ghc, or cabal that we want
9981
# to use for the build.
10082
- name: Cache cabal packages
101-
uses: actions/cache@v2
83+
uses: actions/cache@v3
10284
id: cache-cabal
10385
with:
10486
path: |
@@ -113,16 +95,19 @@ jobs:
11395

11496
- name: Install cabal
11597
if: steps.cache-cabal.outputs.cache-hit != 'true'
116-
uses: actions/setup[email protected]
98+
uses: haskell-actions/setup@v2
11799
with:
118100
ghc-version: ${{ env.GHC_VERSION }}
119101
cabal-version: ${{ env.CABAL_VERSION }}
102+
cabal-update: true
120103

121104
- name: Put cabal programs in PATH
122-
run: echo "~/.cabal/bin" >> $GITHUB_PATH
105+
run: echo "~/.cabal/bin" >> "$GITHUB_PATH"
123106

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
126111
127112
- name: Download and install Agda from github
128113
if: steps.cache-cabal.outputs.cache-hit != 'true'
@@ -141,7 +126,7 @@ jobs:
141126

142127
# By default github actions do not pull the repo
143128
- name: Checkout stdlib
144-
uses: actions/checkout@v2
129+
uses: actions/checkout@v4
145130

146131
- name: Test stdlib
147132
run: |
@@ -188,4 +173,4 @@ jobs:
188173
with:
189174
branch: gh-pages
190175
folder: html
191-
git-config-name: Github Actions
176+
git-config-name: Github Actions

0 commit comments

Comments
 (0)