ci: more consistent ghc version env var

This commit is contained in:
Simon Michael 2025-06-13 20:47:56 -10:00
parent 6cde1a3ff7
commit ccb0033e31
6 changed files with 13 additions and 12 deletions

View File

@ -14,6 +14,10 @@ jobs:
# image: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md # image: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
container: alpine:latest container: alpine:latest
env:
stack: stack
ghc: 9.10.1
steps: steps:
- name: Check out - name: Check out

View File

@ -6,6 +6,7 @@ on:
push: push:
branches: [ binaries-mac-arm64, binaries ] branches: [ binaries-mac-arm64, binaries ]
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: build:
runs-on: macos-14 runs-on: macos-14
@ -13,8 +14,8 @@ jobs:
# image: https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md # image: https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md
env: env:
ghc: 9.12.2
stack: stack stack: stack
ghc: 9.10.1
steps: steps:

View File

@ -6,6 +6,7 @@ on:
push: push:
branches: [ binaries-mac-x64, binaries ] branches: [ binaries-mac-x64, binaries ]
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: build:
runs-on: macos-13 runs-on: macos-13
@ -14,6 +15,8 @@ jobs:
env: env:
stack: stack stack: stack
ghc: 9.10.1
steps: steps:
- name: Show platform info - name: Show platform info

View File

@ -6,6 +6,7 @@ on:
push: push:
branches: [ binaries-windows-x64, binaries ] branches: [ binaries-windows-x64, binaries ]
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
@ -19,6 +20,7 @@ jobs:
env: env:
# use preinstalled ghc 9.12.2 # use preinstalled ghc 9.12.2
stack: stack --system-ghc --no-install-ghc --stack-yaml stack912.yaml stack: stack --system-ghc --no-install-ghc --stack-yaml stack912.yaml
ghc: 9.12.2
steps: steps:

View File

@ -50,11 +50,8 @@ jobs:
# image: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md # image: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
env: env:
# caching id for this ghc's build artifacts
ghc: 910
# select the right stack yaml for this ghc
stack: stack stack: stack
ghc: 9.10.1
# flag for skipping later steps, declared here to prevent "Context access might be invalid" warnings # flag for skipping later steps, declared here to prevent "Context access might be invalid" warnings
do-all: do-all:

View File

@ -17,14 +17,8 @@ jobs:
# image: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md # image: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
env: env:
# This workflow uses github's preinstalled ghc & stack on ubuntu.
# Keep these synced with the latest ghc version at https://github.com/actions/runner-images/blob/ubuntu22/20240514.2/images/ubuntu/Ubuntu2404-Readme.md#haskell-tools
#
# caching id for this ghc's build artifacts:
# XXX supposed to be interpolated by $ghc below, but this is not working
ghc: 8107
# stack config for this ghc:
stack: stack --stack-yaml=stack810.yaml stack: stack --stack-yaml=stack810.yaml
ghc: 8.10.7
steps: steps: