Skip to content

Commit

Permalink
Merge pull request #7853 from Mikolaj/3.6
Browse files Browse the repository at this point in the history
Backport: Add ghcup install call to boostrap script to be future safe
  • Loading branch information
jneira committed Dec 4, 2021
2 parents 763d0cc + 0910ef3 commit a043454
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
- uses: actions/checkout@v2
- name: bootstrap.py
run: |
ghcup config set cache true
ghcup install ghc 8.10.7
python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc 8.10.7) -d bootstrap/linux-8.10.7.json
- name: Smoke test
Expand Down Expand Up @@ -50,7 +52,9 @@ jobs:
# We use linux dependencies
- name: bootstrap.py
run: |
python3 bootstrap/bootstrap.py -w /opt/ghc/8.10.7/bin/ghc -d bootstrap/linux-8.10.7.json
ghcup config set cache true
ghcup install ghc 8.10.7
python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc 8.10.7) -d bootstrap/linux-8.10.7.json
- name: Smoke test
run: |
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/quick-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
with:
path: ~/.cabal/store
key: linux-store-meta
- name: ghcup
run: |
ghcup config set cache true
ghcup install ghc recommended
ghcup set ghc recommended
- name: Update Hackage index
run: cabal v2-update
- name: Install alex
Expand Down Expand Up @@ -63,6 +68,11 @@ jobs:
with:
path: ~/.cabal/store
key: linux-store-doctest
- name: ghcup
run: |
ghcup config set cache true
ghcup install ghc recommended
ghcup set ghc recommended
- name: Update Hackage index
run: cabal v2-update
- name: Install doctest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
cabal v2-run cabal-install:unit-tests -- --pattern "! (/FileMonitor/ || /VCS/ || /Get/)"
- name: cabal-tests
# Using only one job, -j1, to fail less.
run: cabal v2-run cabal-testsuite:cabal-tests -- -j1 --with-cabal=dist-newstyle\build\x86_64-windows\ghc-8.6.5\cabal-install-3.6.0.0\x\cabal\build\cabal\cabal.exe
run: cabal v2-run cabal-testsuite:cabal-tests -- -j1 --with-cabal=dist-newstyle\build\x86_64-windows\ghc-8.6.5\cabal-install-3.6.2.0\x\cabal\build\cabal\cabal.exe

test-windows-8_6_5-dogfood:
name: test ghc-8.6.5 dogfood
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
cabal v2-run cabal-install:unit-tests -- --pattern "! (/FileMonitor/ || /VCS/ || /Get/)"
- name: cabal-tests
# Using only one job, -j1, to fail less.
run: cabal v2-run cabal-testsuite:cabal-tests -- -j1 --with-cabal=dist-newstyle\build\x86_64-windows\ghc-8.10.4\cabal-install-3.6.0.0\x\cabal\build\cabal\cabal.exe
run: cabal v2-run cabal-testsuite:cabal-tests -- -j1 --with-cabal=dist-newstyle\build\x86_64-windows\ghc-8.10.4\cabal-install-3.6.2.0\x\cabal\build\cabal\cabal.exe

test-windows-8_10_4-dogfood:
name: test ghc-8.10.4 dogfood
Expand Down
6 changes: 5 additions & 1 deletion templates/ci-bootstrap.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
- uses: actions/checkout@v2
- name: bootstrap.py
run: |
ghcup config set cache true
ghcup install ghc 8.10.7
python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc 8.10.7) -d bootstrap/linux-8.10.7.json
- name: Smoke test
Expand Down Expand Up @@ -50,7 +52,9 @@ jobs:
# We use linux dependencies
- name: bootstrap.py
run: |
python3 bootstrap/bootstrap.py -w /opt/ghc/8.10.7/bin/ghc -d bootstrap/linux-8.10.7.json
ghcup config set cache true
ghcup install ghc 8.10.7
python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc 8.10.7) -d bootstrap/linux-8.10.7.json
- name: Smoke test
run: |
Expand Down
10 changes: 10 additions & 0 deletions templates/ci-quick-jobs.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
with:
path: ~/.cabal/store
key: linux-store-meta
- name: ghcup
run: |
ghcup config set cache true
ghcup install ghc recommended
ghcup set ghc recommended
- name: Update Hackage index
run: cabal v2-update
- name: Install alex
Expand Down Expand Up @@ -63,6 +68,11 @@ jobs:
with:
path: ~/.cabal/store
key: linux-store-doctest
- name: ghcup
run: |
ghcup config set cache true
ghcup install ghc recommended
ghcup set ghc recommended
- name: Update Hackage index
run: cabal v2-update
- name: Install doctest
Expand Down
2 changes: 1 addition & 1 deletion templates/ci-windows.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
cabal v2-run cabal-install:unit-tests -- --pattern "! (/FileMonitor/ || /VCS/ || /Get/)"
- name: cabal-tests
# Using only one job, -j1, to fail less.
run: cabal v2-run cabal-testsuite:cabal-tests -- -j1 --with-cabal=dist-newstyle\build\x86_64-windows\ghc-{{ job.version }}\cabal-install-3.6.0.0\x\cabal\build\cabal\cabal.exe
run: cabal v2-run cabal-testsuite:cabal-tests -- -j1 --with-cabal=dist-newstyle\build\x86_64-windows\ghc-{{ job.version }}\cabal-install-3.6.2.0\x\cabal\build\cabal\cabal.exe

test-windows-{{ mangleVersion job.version }}-dogfood:
name: test ghc-{{job.version}} dogfood
Expand Down

0 comments on commit a043454

Please sign in to comment.