Skip to content

Commit ce8cdb2

Browse files
committed
fixup! Disentangle stage1 and stage2
1 parent f34cee4 commit ce8cdb2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/reusable-release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,10 +588,12 @@ jobs:
588588

589589
rm -rf .git
590590
(
591+
shopt -s globstar
591592
cd _build/bindist
592-
for file in tests*.tar.gz stage2/ghc*.tar.gz stage3/ghc*.tar.gz ; do tar xzf "$file"; done
593+
for file in **/*.tar.gz ; do tar xzf "$file"; done
593594
)
594595
PATH=$(pwd)/_build/bindist/bin:$PATH ${{ env.MAKE }} -C _build/bindist/testsuite
596+
shell: bash
595597
env:
596598
THREADS: 4
597599
TEST_HC: ${{ steps.pwd_output.outputs.pwd }}/_build/bindist/bin/stage2/ghc
@@ -628,13 +630,13 @@ jobs:
628630
uses: docker://arm64v8/debian:11
629631
name: Run build (aarch64 linux)
630632
with:
631-
args: sh -c "apt-get update && apt-get install -y curl bash git ${{ needs.tool-output.outputs.apt_tools_test }} && git config --system --add safe.directory $GITHUB_WORKSPACE && rm -rf .git && cd _build/bindist && for file in tests*.tar.gz stage2/ghc*.tar.gz stage3/ghc*.tar.gz; do tar xzf $file; done && cd testsuite && PATH=$GITHUB_WORKSPACE/_build/bindist/bin/:$PATH make"
633+
args: sh -c "apt-get update && apt-get install -y curl bash git ${{ needs.tool-output.outputs.apt_tools_test }} && git config --system --add safe.directory $GITHUB_WORKSPACE && rm -rf .git && cd _build/bindist && for file in tests*.tar.gz stage2/ghc*.tar.gz ; do tar xzf $file; done && cd testsuite && PATH=$GITHUB_WORKSPACE/_build/bindist/bin/:$PATH make"
632634

633635
- if: matrix.platform.ARTIFACT == 'aarch64-linux-unknown'
634636
uses: docker://arm64v8/alpine:3.20
635637
name: Run build (aarch64 linux alpine)
636638
with:
637-
args: sh -c "apk update && apk add curl bash git ${{ needs.tool-output.outputs.apk_tools_test }} && git config --system --add safe.directory $GITHUB_WORKSPACE && rm -rf .git && cd _build/bindist && for file in tests*.tar.gz stage2/ghc*.tar.gz stage3/ghc*.tar.gz; do tar xzf $file; done && cd testsuite && PATH=$GITHUB_WORKSPACE/_build/bindist/bin/:$PATH make"
639+
args: sh -c "apk update && apk add curl bash git ${{ needs.tool-output.outputs.apk_tools_test }} && git config --system --add safe.directory $GITHUB_WORKSPACE && rm -rf .git && cd _build/bindist && for file in tests*.tar.gz stage2/ghc*.tar.gz ; do tar xzf $file; done && cd testsuite && PATH=$GITHUB_WORKSPACE/_build/bindist/bin/:$PATH make"
638640

639641
test-mac-x86_64:
640642
name: Test binary (Mac x86_64)
@@ -659,6 +661,7 @@ jobs:
659661

660662
- name: Run test
661663
run: *test
664+
shell: bash
662665
env:
663666
THREADS: 4
664667

@@ -686,6 +689,7 @@ jobs:
686689

687690
- name: Run test
688691
run: *test
692+
shell: bash
689693
env:
690694
THREADS: 4
691695

0 commit comments

Comments
 (0)