ci: update default CI tests to ubuntu 2404 / preinstalled ghc/stack
This commit is contained in:
parent
43c93eb376
commit
70389f5764
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@ -43,12 +43,19 @@ on:
|
|||||||
# - '!**.txt'
|
# - '!**.txt'
|
||||||
jobs:
|
jobs:
|
||||||
citest:
|
citest:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-24.04
|
||||||
env:
|
env:
|
||||||
ghc: 944
|
# This workflow uses github's preinstalled ghc & stack on ubuntu.
|
||||||
stack: stack --stack-yaml=stack9.4.yaml
|
# Keep these synced with the latest ghc version athttps://github.com/actions/runner-images/blob/ubuntu22/20240514.2/images/ubuntu/Ubuntu2404-Readme.md#haskell-tools
|
||||||
# declare this to prevent "Context access might be invalid" warnings below
|
#
|
||||||
|
# caching id for this ghc's build artifacts:
|
||||||
|
ghc: 982
|
||||||
|
# stack config for this ghc:
|
||||||
|
stack: stack --system-ghc
|
||||||
|
|
||||||
|
# flag for skipping later steps, declared here to prevent "Context access might be invalid" warnings
|
||||||
do-all:
|
do-all:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Check out
|
- name: Check out
|
||||||
@ -190,19 +197,19 @@ jobs:
|
|||||||
|
|
||||||
# actions:
|
# actions:
|
||||||
|
|
||||||
- name: Install stack
|
- name: Set up stack
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.local/bin
|
# mkdir -p ~/.local/bin
|
||||||
export PATH=~/.local/bin:$PATH
|
# export PATH=~/.local/bin:$PATH
|
||||||
# curl -sL https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack
|
# curl -sL https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack
|
||||||
if [[ ! -x ~/.local/bin/stack ]]; then curl -sL https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
|
# if [[ ! -x ~/.local/bin/stack ]]; then curl -sL https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
|
||||||
stack --version
|
stack --version
|
||||||
if: env.do-all
|
if: env.do-all
|
||||||
|
|
||||||
- name: Install GHC
|
# - name: Install GHC
|
||||||
run: |
|
# run: |
|
||||||
$stack setup --install-ghc
|
# $stack setup --install-ghc
|
||||||
if: env.do-all
|
# if: env.do-all
|
||||||
|
|
||||||
- name: Install haskell deps
|
- name: Install haskell deps
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user