Skip to content

Commit

Permalink
fix(ci): Fix a handful of GH actions errors
Browse files Browse the repository at this point in the history
 * devx: command not found
 * jq: error (at <stdin>:0): Cannot index array with string "style"
  • Loading branch information
sgillespie committed Apr 30, 2024
1 parent 0d70785 commit e8650ed
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,12 @@ jobs:
a+${{ github.event_name }}
b+${{ github.workflow_ref }}
c+${{ github.job }}
d+${{ matrix.ghc }}
e+${{ matrix.cabal }}
f+${{ matrix.os }}
g+${{ (startsWith(github.ref, 'refs/heads/gh-readonly-queue/') && github.run_id) || github.event.pull_request.number || github.ref }}
d+${{ matrix.compiler-nix-name }}
e+${{ matrix.platform }}
f+${{ (startsWith(github.ref, 'refs/heads/gh-readonly-queue/') && github.run_id) || github.event.pull_request.number || github.ref }}
cancel-in-progress: true

steps:
- name: Concurrency group
run: >
echo
a+${{ github.event_name }}
b+${{ github.workflow_ref }}
c+${{ github.job }}
d+${{ matrix.ghc }}
e+${{ matrix.cabal }}
f+${{ matrix.os }}
g+${{ (startsWith(github.ref, 'refs/heads/gh-readonly-queue/') && github.run_id) || github.event.pull_request.number || github.ref }}
- uses: actions/checkout@v4

- name: Install GHC and Cabal
uses: input-output-hk/actions/devx@latest
with:
Expand All @@ -70,7 +56,19 @@ jobs:
# for now we'll set minimal to false, as minimal-iog images don't exist.
minimal: false
iog: true


- name: Concurrency group
run: >
echo
a+${{ github.event_name }}
b+${{ github.workflow_ref }}
c+${{ github.job }}
d+${{ matrix.compiler-nix-name }}
e+${{ matrix.platform }}
f+${{ (startsWith(github.ref, 'refs/heads/gh-readonly-queue/') && github.run_id) || github.event.pull_request.number || github.ref }}
- uses: actions/checkout@v4

- name: Cabal update
run: cabal update

Expand All @@ -92,7 +90,7 @@ jobs:
# The tests call out to msys2 commands. We generally do not want to mix toolchains, so
# we are very deliberate about only adding msys64 to the path where absolutely necessary.
${{ (runner.os == 'Windows' && '$env:PATH=("C:\msys64\mingw64\bin;{0}" -f $env:PATH)') || '' }}
cat dist-newstyle/cache/plan.json | jq -r '."install-plan" | select(.style != "local") | .id' | sort | uniq > dependencies.txt
cat dist-newstyle/cache/plan.json | jq -r '."install-plan" | .[] | select(.style != "local") | .id' | sort | uniq > dependencies.txt
# From the dependency list we restore the cached dependencies.
# We use the hash of `dependencies.txt` as part of the cache key because that will be stable
Expand Down

0 comments on commit e8650ed

Please sign in to comment.