Fix concurrency bug in test suite (#6850) #1
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
###################################################### | |
## ## | |
## !!!! Autogenerated YAML file, do not edit !!!! ## | |
## ## | |
## Edit source in /src/github/workflows/ instead! ## | |
## ## | |
###################################################### | |
jobs: | |
auto-cancel: | |
if: | | |
!contains(github.event.head_commit.message, '[skip ci]') | |
&& !contains(github.event.head_commit.message, '[ci skip]') | |
&& !contains(github.event.head_commit.message, '[github skip]') | |
&& !contains(github.event.head_commit.message, '[skip github]') | |
runs-on: Ubuntu-latest | |
steps: | |
- uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
stack: | |
defaults: | |
run: | |
shell: bash | |
env: | |
EXTRA_ARGS: --dry-run | |
NON_DEFAULT_FLAGS: --flag Agda:enable-cluster-counting --flag Agda:debug | |
needs: auto-cancel | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Get the ICU version from pkg-config | |
run: | | |
ICU_VER=$(pkg-config --modversion icu-i18n) | |
echo "ICU_VER=${ICU_VER}" | |
echo "ICU_VER=${ICU_VER}" >> "${GITHUB_ENV}" | |
- uses: actions/checkout@v4 | |
- id: haskell-setup | |
uses: haskell-actions/setup@v2 | |
with: | |
enable-stack: true | |
ghc-version: ${{ matrix.ghc-ver }} | |
stack-version: ${{ matrix.stack-ver }} | |
- name: Environment settings based on the Haskell setup | |
run: | | |
echo "runner.os = ${{ runner.os }}" | |
echo "OSTYPE = ${{ env.OSTYPE }}" | |
echo "ghc-path = ${{ steps.haskell-setup.outputs.ghc-path }}" | |
echo "ghc-exe = ${{ steps.haskell-setup.outputs.ghc-exe }}" | |
echo "cabal-path = ${{ steps.haskell-setup.outputs.cabal-path }}" | |
echo "cabal-exe = ${{ steps.haskell-setup.outputs.cabal-exe }}" | |
echo "cabal-store = ${{ steps.haskell-setup.outputs.cabal-store }}" | |
echo "stack-path = ${{ steps.haskell-setup.outputs.stack-path }}" | |
echo "stack-exe = ${{ steps.haskell-setup.outputs.stack-exe }}" | |
echo "stack-root = ${{ steps.haskell-setup.outputs.stack-root }}" | |
echo "STACK_ROOT (orig) = ${{ env.STACK_ROOT }}" | |
echo "STACK_ROOT=${{ steps.haskell-setup.outputs.stack-root }}" >> "${GITHUB_ENV}" | |
echo "STACK_VER=$(stack --numeric-version)" >> "${GITHUB_ENV}" | |
GHC_VER=$(ghc --numeric-version) | |
echo "GHC_VER=${GHC_VER}" >> "${GITHUB_ENV}" | |
echo "ARGS=--stack-yaml=stack-${GHC_VER}.yaml --system-ghc --no-terminal" >> "${GITHUB_ENV}" | |
- name: Environment (review) | |
run: | | |
echo "STACK_ROOT (fix) = ${STACK_ROOT}" | |
echo "STACK_VER = ${STACK_VER}" | |
echo "GHC_VER = ${GHC_VER}" | |
echo "ICU_VER = ${ICU_VER}" | |
- name: Stack dry-run with the default flags in Agda.cabal. | |
run: stack build ${ARGS} ${EXTRA_ARGS} --test | |
- name: Stack-dry-run Agda with the non-default flags in Agda.cabal. | |
run: stack build ${ARGS} ${EXTRA_ARGS} ${NON_DEFAULT_FLAGS} | |
strategy: | |
fail-fast: false | |
matrix: | |
ghc-ver: | |
- 9.4.6 | |
- 9.2.8 | |
- 9.0.2 | |
- 8.10.7 | |
- 8.8.4 | |
- 8.6.5 | |
os: | |
- ubuntu-latest | |
stack-ver: | |
- latest | |
timeout-minutes: 10 | |
name: Stack check snapshots | |
'on': | |
pull_request: | |
paths: | |
- .github/workflows/stack-dry-run.yml | |
- Agda.cabal | |
- Setup.hs | |
- stack-*.yaml | |
- src/size-solver/size-solver.cabal | |
push: | |
branches: | |
- master | |
- ci-* | |
- release* | |
paths: | |
- .github/workflows/stack-dry-run.yml | |
- Agda.cabal | |
- Setup.hs | |
- stack-*.yaml | |
- src/size-solver/size-solver.cabal | |
workflow_dispatch: null |