Commit 83cf15f 1 parent 40dc46e commit 83cf15f Copy full SHA for 83cf15f
File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 4
4
5
5
[ -z " $1 " ] && { echo " Missing 1st argument: PostgREST github commit SHA" ; exit 1; }
6
6
[ -z " $2 " ] && { echo " Missing 2nd argument: Build environment directory name" ; exit 1; }
7
+ [ -z " $3 " ] && { echo " Missing 3rd argument: GHC version" ; exit 1; }
7
8
8
9
PGRST_GITHUB_COMMIT=" $1 "
9
10
SCRIPT_DIR=" $2 "
10
11
11
12
DOCKER_BUILD_DIR=" $SCRIPT_DIR /docker-env"
12
- CABAL_VERSION=" 3.6.0.0"
13
- GHC_VERSION=" 9.2.4"
13
+ # latest is a shortcut documented on https://www.haskell.org/ghcup/guide/#tags-and-shortcuts
14
+ CABAL_VERSION=" latest"
15
+ GHC_VERSION=" $3 "
14
16
15
17
install_packages () {
16
18
sudo apt-get update -y
Original file line number Diff line number Diff line change @@ -247,13 +247,18 @@ jobs:
247
247
run : cabal build --enable-tests --enable-benchmarks all
248
248
249
249
Build-Cabal-Arm :
250
- name : Build aarch64 (Cabal)
250
+ strategy :
251
+ matrix :
252
+ ghc : ['9.2.4']
253
+ fail-fast : false
254
+ name : Build aarch64 (Cabal, GHC ${{ matrix.ghc }})
251
255
if : ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/rel-') }}
252
256
runs-on : ubuntu-latest
253
257
outputs :
254
258
remotepath : ${{ steps.Remote-Dir.outputs.remotepath }}
255
259
env :
256
260
GITHUB_COMMIT : ${{ github.sha }}
261
+ GHC_VERSION : ${{ matrix.ghc }}
257
262
steps :
258
263
- uses : actions/checkout@v3
259
264
- id : Remote-Dir
@@ -280,8 +285,8 @@ jobs:
280
285
fingerprint : ${{ secrets.SSH_ARM_FINGERPRINT }}
281
286
command_timeout : 120m
282
287
script_stop : true
283
- envs : GITHUB_COMMIT,REMOTE_DIR
284
- script : bash ~/$REMOTE_DIR/build.sh "$GITHUB_COMMIT" "$REMOTE_DIR"
288
+ envs : GITHUB_COMMIT,REMOTE_DIR,GHC_VERSION
289
+ script : bash ~/$REMOTE_DIR/build.sh "$GITHUB_COMMIT" "$REMOTE_DIR" "GHC_VERSION"
285
290
- name : Download binaries from remote server
286
291
uses : nicklasfrahm/scp-action@main
287
292
with :
You can’t perform that action at this time.
0 commit comments