Skip to content

Commit b34652b

Browse files
committed
Update CI for v1.7.3: Use Agda 2.6.4; deploy HTML to v1.7.3 subdirectory
1 parent 84c16c1 commit b34652b

File tree

1 file changed

+12
-32
lines changed

1 file changed

+12
-32
lines changed

.github/workflows/ci-ubuntu.yml

+12-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,8 +40,8 @@ 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'
5347
AGDA: agda -Werror +RTS -M3.5G -H3.5G -A128M -RTS -i. -i src/
@@ -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,14 @@ 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
123-
124-
- name: Cabal update
125-
run: cabal update
105+
run: echo "~/.cabal/bin" >> "$GITHUB_PATH"
126106

127107
- name: Download and install Agda from github
128108
if: steps.cache-cabal.outputs.cache-hit != 'true'
@@ -141,7 +121,7 @@ jobs:
141121

142122
# By default github actions do not pull the repo
143123
- name: Checkout stdlib
144-
uses: actions/checkout@v2
124+
uses: actions/checkout@v4
145125

146126
- name: Test stdlib
147127
run: |
@@ -188,4 +168,4 @@ jobs:
188168
with:
189169
branch: gh-pages
190170
folder: html
191-
git-config-name: Github Actions
171+
git-config-name: Github Actions

0 commit comments

Comments
 (0)