@@ -7,62 +7,12 @@ concurrency:
7
7
group : ${{ github.workflow }}-${{ github.ref }}
8
8
cancel-in-progress : true
9
9
10
- jobs :
11
-
12
- cache-cabal :
13
- name : ' Cache Cabal'
14
- strategy :
15
- fail-fast : false
16
- matrix :
17
- include :
18
- - runner : ubuntu-22.04
19
- os : ubuntu-22.04
20
- nix : x86_64-linux
21
- - runner : MacM1
22
- os : self-macos-12
23
- nix : aarch64-darwin
24
- runs-on : ${{ matrix.runner }}
25
- steps :
26
- - name : Check out code
27
- uses : actions/checkout@v4
28
- with :
29
- submodules : recursive
30
-
31
- # Do the Following only on Public Runners; Mac Runner is pre-installed with build tools
32
- - name : ' Install Nix'
33
- if : ${{ !startsWith(matrix.os, 'self') }}
34
- uses : cachix/install-nix-action@v25
35
- with :
36
- install_url : https://releases.nixos.org/nix/nix-2.13.3/install
37
- extra_nix_config : |
38
- access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
39
- substituters = http://cache.nixos.org https://cache.iog.io
40
- trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
41
-
42
- - name : ' Install Cachix'
43
- if : ${{ !startsWith(matrix.os, 'self') }}
44
- uses : cachix/cachix-action@v14
45
- with :
46
- name : k-framework
47
- authToken : ' ${{ secrets.CACHIX_PUBLIC_TOKEN }}'
48
-
49
- - name : Cache Cabal package database and store
50
- uses : actions/cache@v4
51
- with :
52
- path : |
53
- ~/.cabal/packages
54
- ~/.cabal/store
55
- key : cabal-nix-${{ runner.os }}-ghc-${{ env.ghc_version }}-${{ hashFiles('flake.lock') }}-${{ hashFiles('cabal.project') }}-${{ hashFiles('cabal.project.freeze') }}-${{ hashFiles('kore/kore.cabal') }}-${{ hashFiles('kore-rpc-types/kore-rpc-types.cabal') }}-${{ hashFiles('booster/hs-backend-booster.cabal') }}
56
- restore-keys : |
57
- cabal-nix-${{ runner.os }}-ghc-${{ env.ghc_version }}-${{ hashFiles('flake.lock') }}-${{ hashFiles('cabal.project') }}-${{ hashFiles('cabal.project.freeze') }}-${{ hashFiles('kore/kore.cabal') }}-${{ hashFiles('kore-rpc-types/kore-rpc-types.cabal') }}
58
- cabal-nix-${{ runner.os }}-ghc-${{ env.ghc_version }}-${{ hashFiles('flake.lock') }}-${{ hashFiles('cabal.project') }}-${{ hashFiles('cabal.project.freeze') }}-${{ hashFiles('kore/kore.cabal') }}
59
- cabal-nix-${{ runner.os }}-ghc-${{ env.ghc_version }}-${{ hashFiles('flake.lock') }}-${{ hashFiles('cabal.project') }}-${{ hashFiles('cabal.project.freeze') }}
60
- cabal-nix-${{ runner.os }}-ghc-${{ env.ghc_version }}-${{ hashFiles('flake.lock') }}-${{ hashFiles('cabal.project') }}
61
- cabal-nix-${{ runner.os }}-ghc-${{ env.ghc_version }}-${{ hashFiles('flake.lock') }}
62
-
63
- - name : Test
64
- run : GC_DONT_GC=1 nix develop .#cabal --command bash -c "hpack ./booster && hpack dev-tools && cabal update && cabal build all && cabal test --enable-tests --test-show-details=direct kore-test unit-tests"
10
+ env :
11
+ ghc_version : " 9.6.5"
12
+ stack_version : " 2.15.1"
13
+ hpack_version : ' 0.36'
65
14
15
+ jobs :
66
16
cache-stack :
67
17
name : ' Cache Stack'
68
18
runs-on : ubuntu-22.04
103
53
version-bump :
104
54
name : ' Version Bump'
105
55
runs-on : ubuntu-latest
106
- needs : [cache-cabal, cache- stack]
56
+ needs : [cache-stack]
107
57
steps :
108
58
- name : ' Check out code'
109
59
uses : actions/checkout@v4
0 commit comments