Skip to content

Commit

Permalink
Update Actions to latest
Browse files Browse the repository at this point in the history
Hopefully fixes CI failure on linux during cachix/install-nix-action
  • Loading branch information
mboes committed Dec 23, 2020
1 parent f42f57a commit 84d4318
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,18 @@ jobs:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: cachix/install-nix-action@v8
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=./nixpkgs.nix
- name: Install Stack
run: |
nix-env -f. -iA nixpkgs.stack
- name: Get Stack snapshot install directory
id: stack-snapshot
run: |
echo "::set-output name=dir::$(stack --nix path --snapshot-install-root)"
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ${{ steps.stack-snapshot.outputs.dir }}
key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/*.nix')}}
Expand Down

0 comments on commit 84d4318

Please sign in to comment.