|
16 | 16 | env:
|
17 | 17 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
18 | 18 |
|
19 |
| -# As of 26 December 2022, ubuntu-latest, windows-latest and macos-latest come |
20 |
| -# with Stack 2.9.1. ubuntu-latest and macos-latest come with GHC 9.4.3. |
21 |
| -# windows-latest comes with GHC 9.4.2. windows-latest comes with NSIS 3.08, for |
22 |
| -# which the default value of the 'Unicode' installer attribute is 'true'. |
| 19 | +# As of 5 May 2023, ubuntu-latest, windows-latest and macos-latest come |
| 20 | +# with Stack 2.9.3 and GHC 9.6.1. windows-latest comes with NSIS 3.08, for which |
| 21 | +# the default value of the 'Unicode' installer attribute is 'true'. |
23 | 22 |
|
24 | 23 | jobs:
|
25 | 24 | integration-tests:
|
@@ -56,20 +55,11 @@ jobs:
|
56 | 55 | ~\AppData\Local\Programs\stack
|
57 | 56 | key: ${{ runner.os }}-${{ hashFiles('stack.yaml') }}-${{ matrix.cache-bust }}
|
58 | 57 |
|
59 |
| - # Separating out Unix-like OS from Windows because of the problem of |
60 |
| - # upgrading GitHub-supplied Stack 2.9.1 to 2.9.3 on Windows |
61 |
| - - name: Install deps and run checks on Unix-like OS |
62 |
| - if: startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS') |
| 58 | + - name: Install deps and run checks |
63 | 59 | shell: bash
|
64 | 60 | run: |
|
65 | 61 | set -ex
|
66 | 62 |
|
67 |
| - # Stack 2.9.3 is required to build Stack. |
68 |
| - stack upgrade |
69 |
| -
|
70 |
| - # Check the Stack version |
71 |
| - stack --version |
72 |
| -
|
73 | 63 | if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]
|
74 | 64 | then
|
75 | 65 | # Retry installing nix due to nondeterministic error
|
@@ -107,35 +97,6 @@ jobs:
|
107 | 97 |
|
108 | 98 | set +ex
|
109 | 99 |
|
110 |
| - # Separating out Windows because of the problem of upgrading GitHub-supplied |
111 |
| - # Stack 2.9.1 to 2.9.3 on Windows |
112 |
| - - name: Install deps and run checks on Windows |
113 |
| - if: startsWith(runner.os, 'Windows') |
114 |
| - shell: bash |
115 |
| - run: | |
116 |
| - set -ex |
117 |
| -
|
118 |
| - # Stack 2.9.3 is required to build Stack. The --local-bin-path is |
119 |
| - # required to allow Stack (effectively) to overwrite the currently |
120 |
| - # running Stack executable. The should be fixed in later versions of |
121 |
| - # Stack that reflect |
122 |
| - # https://github.com/commercialhaskell/stack/pull/6023 |
123 |
| - stack --local-bin-path /c/hostedtoolcache/windows/stack/2.9.1/x64 upgrade |
124 |
| -
|
125 |
| - # Check the Stack version |
126 |
| - stack --version |
127 |
| -
|
128 |
| - # In case GHCup hooks have been created, remove them |
129 |
| - if [ -d $(stack path --stack-root)/hooks ] |
130 |
| - then |
131 |
| - rm -Rf $(stack path --stack-root)/hooks |
132 |
| - fi |
133 |
| -
|
134 |
| - # Do this in the same step as installing deps to get relevant env var modifications |
135 |
| - stack etc/scripts/release.hs check ${{ matrix.release-args }} |
136 |
| -
|
137 |
| - set +ex |
138 |
| -
|
139 | 100 | - name: Build bindist
|
140 | 101 | shell: bash
|
141 | 102 | run: |
|
|
0 commit comments