|
9 | 9 | name: ${{ matrix.os-name }}-build
|
10 | 10 | runs-on: ${{ matrix.os }}
|
11 | 11 | container: ${{ matrix.container }}
|
12 |
| - env: |
13 |
| - # TODO: Use either this or the matrix value |
14 |
| - GHC_VERSION: '9.8.2' |
15 |
| - CARGO_TARGET: ${{ matrix.cargo-target }} |
16 |
| - |
17 | 12 | defaults:
|
18 | 13 | run:
|
19 | 14 | shell: bash
|
|
87 | 82 | - uses: Swatinem/rust-cache@v2
|
88 | 83 | with:
|
89 | 84 | prefix-key: ${{ matrix.os }}
|
90 |
| - # This is because the home directory inside containers is different than the one outside of them. |
91 |
| - # LinuxARM needs this for its own caching to work. |
| 85 | + # The home directory inside containers is different than the one outside of them. |
| 86 | + # LinuxARM needs this for its caching to work inside haskell-static-alpine. |
92 | 87 | cache-directories: ${{ runner.temp }}/_github_home/.cargo
|
93 | 88 |
|
94 | 89 | - name: Debugging information
|
@@ -131,7 +126,6 @@ jobs:
|
131 | 126 | # We compute the cache key based on the solved install plan instead of just
|
132 | 127 | # hashing the `.cabal` file, since there are many kinds of changes that will
|
133 | 128 | # cause `.cabal` to change (e.g. adding new source modules).
|
134 |
| - # |
135 | 129 | - name: Compute cache key (not ARM Linux)
|
136 | 130 | if: ${{ matrix.os != 'LinuxARM' }}
|
137 | 131 | id: compute-cache-key
|
@@ -160,11 +154,11 @@ jobs:
|
160 | 154 | name: Cache dist-newstyle
|
161 | 155 | with:
|
162 | 156 | path: ${{ github.workspace }}/dist-newstyle
|
163 |
| - key: ${{ matrix.os-name }}-${{ env.GHC_VERSION }}-dist-newstyle-${{ github.sha }} |
| 157 | + key: ${{ matrix.os-name }}-${{ matrix.ghc }}-dist-newstyle-${{ github.sha }} |
164 | 158 | restore-keys: |
|
165 |
| - ${{ matrix.os-name }}-${{ env.GHC_VERSION }}-dist-newstyle-${{ env.parent_commit }} |
166 |
| - ${{ matrix.os-name }}-${{ env.GHC_VERSION }}-dist-newstyle- |
167 |
| - ${{ matrix.os-name }}-${{ env.GHC_VERSION }}- |
| 159 | + ${{ matrix.os-name }}-${{ matrix.ghc }}-dist-newstyle-${{ env.parent_commit }} |
| 160 | + ${{ matrix.os-name }}-${{ matrix.ghc }}-dist-newstyle- |
| 161 | + ${{ matrix.os-name }}-${{ matrix.ghc }}- |
168 | 162 |
|
169 | 163 | - name: Update vendored binaries
|
170 | 164 | run: |
|
|
0 commit comments