ghc 9.6 #52
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: shelltestrunner CI | |
on: | |
push: | |
paths: | |
- '.github/workflows/**' | |
- 'stack*' | |
- 'src/**' | |
- 'tests/**' | |
- '!**.md' | |
- '!**.1' | |
- '!**.5' | |
- '!**.info' | |
- '!**.txt' | |
pull_request: | |
paths: | |
- '.github/workflows/**' | |
- 'stack*' | |
- 'src/**' | |
- 'tests/**' | |
- '!**.md' | |
- '!**.1' | |
- '!**.5' | |
- '!**.info' | |
- '!**.txt' | |
# Scheduled workflows run on the latest commit on the default or base branch. (master) | |
# schedule: | |
# - cron: "0 07 * * 0" # sunday midnight pacific | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
plan: | |
- { ghc: "810" , stackyaml: "stack8.10.yaml", stack: "stack --stack-yaml=stack8.10.yaml" } | |
- { ghc: "94" , stackyaml: "stack9.4.yaml", stack: "stack --stack-yaml=stack9.4.yaml" } | |
- { ghc: "96" , stackyaml: "stack.yaml", stack: "stack --stack-yaml=stack.yaml" } | |
steps: | |
- name: Check out | |
uses: actions/checkout@v2 | |
- name: Cache stack global package db | |
id: stack-global | |
uses: actions/cache@v2 | |
with: | |
path: ~/.stack | |
key: ${{ runner.os }}-stack-global-${{ matrix.plan.ghc }}-${{ hashFiles('**.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-stack-global-${{ matrix.plan.ghc }} | |
- name: Cache stack-installed programs in ~/.local/bin | |
id: stack-programs | |
uses: actions/cache@v2 | |
with: | |
path: ~/.local/bin | |
key: ${{ runner.os }}-stack-programs-${{ matrix.plan.ghc }}-${{ hashFiles('**.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-stack-programs-${{ matrix.plan.ghc }} | |
- name: Cache .stack-work | |
uses: actions/cache@v2 | |
with: | |
path: .stack-work | |
key: ${{ runner.os }}-stack-work-${{ matrix.plan.ghc }}-${{ hashFiles('**.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-stack-work-${{ matrix.plan.ghc }} | |
- name: Install stack | |
run: | | |
mkdir -p ~/.local/bin | |
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 | |
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 | |
- name: Install GHC | |
env: | |
stack: ${{ matrix.plan.stack }} | |
run: | | |
$stack setup --install-ghc | |
- name: Install haskell deps | |
env: | |
stack: ${{ matrix.plan.stack }} | |
run: | | |
$stack build --test --bench --only-dependencies | |
# --no-terminal | |
- name: Build all shelltestrunner modules warning free, optimised and minimised, and run any unit/doc/bench tests | |
env: | |
stack: ${{ matrix.plan.stack }} | |
run: | | |
$stack install --test --bench --force-dirty --ghc-options=-fforce-recomp --ghc-options=-Werror --ghc-options=-split-sections --no-terminal | |
- name: Run functional tests (excluding windows tests) | |
env: | |
stack: ${{ matrix.plan.stack }} | |
stackyaml: ${{ matrix.plan.stackyaml }} | |
run: | | |
export PATH=~/.local/bin:$PATH | |
make STACKYAMLOPT="--silent --stack-yaml=$stackyaml" test |