From 40481213b82d8c4f2a09e63391973370072a0d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20G=C3=A9lineau?= Date: Fri, 4 Jun 2021 21:33:34 -0400 Subject: [PATCH 1/2] focus on the CI target called "newest" --- .github/workflows/ci.yml | 71 ---------------------------------------- 1 file changed, 71 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8860c65..0e63efc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,77 +14,6 @@ on: - cron: '0 0 1 * *' jobs: - stack: - name: ${{ matrix.name }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - include: - # Check that the build passes with the recommended snapshot. - - name: stable - stack_yaml: "stack.yaml" - os: ubuntu-latest - - # Check that the lower bounds are still correct by building with the - # lowest-supported version of all our dependencies. - - name: oldest - stack_yaml: "oldest-supported-lts.yaml" - os: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - # see https://github.com/actions/cache/issues/403 - - name: Work around actions/cache bug - if: matrix.os == 'macos-latest' - run: | - brew update && brew install gnu-tar - echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV - - - uses: actions/cache@v2 - name: Cache Stack Artifacts - with: - path: | - ~/.stack - ~/.local/bin - .stack-work - key: ${{ runner.os }}-stack-${{ hashFiles(matrix.stack_yaml) }}-6 - - - uses: haskell/actions/setup@v1 - id: setup-haskell-stack - name: Setup Stack - with: - enable-stack: true - stack-setup-ghc: true - stack-no-global: true - - # For some reason, installing happy from lts-9.0 fails unless some other - # version of happy is already in the PATH. So let's install a version of - # happy from an lts which does not have this problem. - - name: Install happy - if: matrix.stack_yaml == 'oldest-supported-lts.yaml' - run: | - stack --stack-yaml=stack.yaml install happy - - - name: Build with happy hack - if: matrix.stack_yaml == 'oldest-supported-lts.yaml' - run: | - PATH="$HOME/.local/bin:$PATH" stack --stack-yaml=${{ matrix.stack_yaml }} install --test --bench --no-run-tests --no-run-benchmarks - - - name: Build - if: matrix.stack_yaml == 'stack.yaml' - run: | - stack --stack-yaml=${{ matrix.stack_yaml }} install --test --bench --no-run-tests --no-run-benchmarks - - - name: Test - run: | - stack --stack-yaml=${{ matrix.stack_yaml }} test - - - name: Run installed exe - run: | - stack run '2+2' - ~/.local/bin/hawk '2+2' - cabal: name: ${{ matrix.name }} runs-on: ${{ matrix.os }} From 7f2cbbf1bfdc6668f02cb54fc4df075a202d0107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20G=C3=A9lineau?= Date: Fri, 4 Jun 2021 21:34:03 -0400 Subject: [PATCH 2/2] explicitly ask for ghc-9.2 otherwise, "latest" resolves to 9.0.1 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e63efc..858e33f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: # version of everything. We use cabal because it uses the latest # versions of our dependencies allowed by our upper bounds. - name: newest - ghc: latest + ghc: 9.2 os: ubuntu-latest steps: