25
25
GHC_VERSION : ${{ inputs.ghc }}
26
26
GHC_TARGETS : ${{ inputs.ghc_targets }}
27
27
CABAL_VERSION : ${{ inputs.cabal }}
28
+ BOOTSTRAP_HASKELL_NONINTERACTIVE : 1
29
+ BOOTSTRAP_HASKELL_MINIMAL : 1
28
30
DEBIAN_FRONTEND : noninteractive
29
31
TZ : Asia/Singapore
30
32
@@ -186,6 +188,7 @@ jobs:
186
188
187
189
build-linux-32bit :
188
190
name : Build linux binaries (32bit)
191
+ needs : ["tool-output"]
189
192
runs-on : ubuntu-latest
190
193
strategy :
191
194
fail-fast : false
@@ -204,9 +207,9 @@ jobs:
204
207
ref : ${{ matrix.branch }}
205
208
206
209
- name : Run build (32 bit linux)
207
- uses : docker://hasufell/ i386- alpine-haskell :3.21
210
+ uses : docker://i386/ alpine:3.20
208
211
with :
209
- args : sh -c "export PATH=$HOME/.ghcup/bin:$PATH && bash .github/scripts/build.sh"
212
+ args : sh -c "apk update && apk add curl bash git ${{ needs.tool-output.outputs.apk_tools }} && export PATH=$HOME/.ghcup/bin:$PATH && curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh && ghcup install cabal ${{ env.CABAL_VERSION }} && bash .github/scripts/build.sh"
210
213
211
214
- if : always()
212
215
name : Upload artifact
@@ -220,6 +223,7 @@ jobs:
220
223
221
224
build-arm :
222
225
name : Build ARM binary
226
+ needs : ["tool-output"]
223
227
runs-on : ubuntu-22.04-arm
224
228
env :
225
229
TARBALL_EXT : tar.xz
@@ -244,20 +248,20 @@ jobs:
244
248
ref : ${{ matrix.branch }}
245
249
246
250
- if : matrix.platform.DISTRO == 'Debian'
247
- uses : docker://hasufell/ arm64v8- debian-haskell :11
251
+ uses : docker://arm64v8/ debian:11
248
252
name : Run build (aarch64 linux)
249
253
with :
250
- args : sh -c "export PATH=$HOME/.ghcup/bin:$PATH && bash .github/scripts/build.sh"
254
+ args : sh -c "apt-get update && apt-get install -y curl bash git ${{ needs.tool-output.outputs.apt_tools }} && export PATH=$HOME/.ghcup/bin:$PATH && curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh && ghcup install cabal ${{ env.CABAL_VERSION }} && bash .github/scripts/build.sh"
251
255
env :
252
256
ARTIFACT : ${{ matrix.platform.ARTIFACT }}
253
257
DISTRO : ${{ matrix.platform.DISTRO }}
254
258
ADD_CABAL_ARGS : " "
255
259
256
260
- if : matrix.platform.DISTRO == 'Alpine'
257
- uses : docker://hasufell/ arm64v8- alpine-haskell :3.21
261
+ uses : docker://arm64v8/ alpine:3.20
258
262
name : Run build (aarch64 linux alpine)
259
263
with :
260
- args : sh -c "export PATH=$HOME/.ghcup/bin:$PATH && bash .github/scripts/build.sh"
264
+ args : sh -c "apk update && apk add curl bash git ${{ needs.tool-output.outputs.apk_tools }} && export PATH=$HOME/.ghcup/bin:$PATH && curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh && ghcup install cabal ${{ env.CABAL_VERSION }} && bash .github/scripts/build.sh"
261
265
env :
262
266
ARTIFACT : ${{ matrix.platform.ARTIFACT }}
263
267
DISTRO : ${{ matrix.platform.DISTRO }}
@@ -604,14 +608,14 @@ jobs:
604
608
# path: ./out
605
609
#
606
610
# - name: Run build (32 bit linux)
607
- # uses: docker://hasufell/ i386- alpine-haskell :3.21
611
+ # uses: docker://i386/ alpine:3.20
608
612
# with:
609
- # args: sh -c "apk update && apk add groff && git config --system --add safe.directory $GITHUB_WORKSPACE && export PATH=$HOME/.ghcup/bin:$PATH && bash .github/scripts/test .sh"
613
+ # args: sh -c "apk update && apk add curl bash git ${{ needs.tool-output.outputs.apk_tools }} groff && git config --system --add safe.directory $GITHUB_WORKSPACE && export PATH=$HOME/.ghcup/bin:$PATH && curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh && ghcup install cabal ${{ env.CABAL_VERSION }} && bash .github/scripts/build .sh"
610
614
611
615
test-arm :
612
616
name : Test ARM binary
613
617
runs-on : ubuntu-22.04-arm
614
- needs : ["build-arm"]
618
+ needs : ["tool-output", " build-arm"]
615
619
if : ${{ inputs.test }}
616
620
env :
617
621
ADD_CABAL_ARGS : " "
@@ -641,19 +645,19 @@ jobs:
641
645
path : ./out
642
646
643
647
- if : matrix.platform.DISTRO == 'Debian'
644
- uses : docker://hasufell/ arm64v8- debian-haskell :11
648
+ uses : docker://arm64v8/ debian:11
645
649
name : Run build (aarch64 linux)
646
650
with :
647
- args : sh -c "git config --system --add safe.directory $GITHUB_WORKSPACE && apt-get update && apt-get install -y groff-base && export PATH=$HOME/.ghcup/bin:$PATH && bash .github/scripts/test.sh"
651
+ args : sh -c "apt-get update && apt-get install -y curl bash git groff-base ${{ needs.tool-output.outputs.apt_tools }} && git config --system --add safe.directory $GITHUB_WORKSPACE && export PATH=$HOME/.ghcup/bin:$PATH && curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh && ghcup install cabal ${{ env.CABAL_VERSION }} && bash .github/scripts/test.sh"
648
652
env :
649
653
ARTIFACT : ${{ matrix.platform.ARTIFACT }}
650
654
DISTRO : ${{ matrix.platform.DISTRO }}
651
655
652
656
- if : matrix.platform.DISTRO == 'Alpine'
653
- uses : docker://hasufell/ arm64v8- alpine-haskell :3.21
657
+ uses : docker://arm64v8/ alpine:3.20
654
658
name : Run build (aarch64 linux alpine)
655
659
with :
656
- args : sh -c "git config --system --add safe.directory $GITHUB_WORKSPACE && apk update && apk add groff && export PATH=$HOME/.ghcup/bin:$PATH && bash .github/scripts/test.sh"
660
+ args : sh -c "apk update && apk add curl bash git groff ${{ needs.tool-output.outputs.apk_tools }} && git config --system --add safe.directory $GITHUB_WORKSPACE && export PATH=$HOME/.ghcup/bin:$PATH && curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh && ghcup install cabal ${{ env.CABAL_VERSION }} && bash .github/scripts/test.sh"
657
661
env :
658
662
ARTIFACT : ${{ matrix.platform.ARTIFACT }}
659
663
DISTRO : ${{ matrix.platform.DISTRO }}
0 commit comments