6-w-caching
This commit is contained in:
parent
6e28cb6fd2
commit
1f98f608d7
@ -21,6 +21,31 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up cache for Cabal
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cabal
|
||||||
|
~/.ghc
|
||||||
|
key: cabal-${{ runner.os }}-${{ hashFiles('cabal.project') }}
|
||||||
|
restore-keys: |
|
||||||
|
cabal-${{ runner.os }}-
|
||||||
|
|
||||||
|
- name: Set up cache for Nix
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
/nix/store
|
||||||
|
/nix/var/nix/cache
|
||||||
|
key: nix-${{ runner.os }}-${{ hashFiles('flake.nix') }}
|
||||||
|
restore-keys: |
|
||||||
|
nix-${{ runner.os }}-
|
||||||
|
|
||||||
|
- name: Initialize Cabal and update package list
|
||||||
|
run: |
|
||||||
|
cabal update
|
||||||
|
cabal configure
|
||||||
|
|
||||||
- name: Install dependencies and run tests
|
- name: Install dependencies and run tests
|
||||||
run: |
|
run: |
|
||||||
nix develop --command cabal test
|
nix develop --command cabal test
|
||||||
@ -36,7 +61,28 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up cache for Cabal
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cabal
|
||||||
|
~/.ghc
|
||||||
|
key: cabal-${{ runner.os }}-${{ hashFiles('cabal.project') }}
|
||||||
|
restore-keys: |
|
||||||
|
cabal-${{ runner.os }}-
|
||||||
|
|
||||||
|
- name: Set up cache for Nix
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
/nix/store
|
||||||
|
/nix/var/nix/cache
|
||||||
|
key: nix-${{ runner.os }}-${{ hashFiles('flake.nix') }}
|
||||||
|
restore-keys: |
|
||||||
|
nix-${{ runner.os }}-
|
||||||
|
|
||||||
- name: Build binary
|
- name: Build binary
|
||||||
run: |
|
run: |
|
||||||
nix build
|
nix build
|
||||||
ls -alh ./result/bin/tricu
|
ls -alh ./result/bin/tricu
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user