on master help sign in
Try
dc1fb58iko
.github/actions/common_setup/action.yaml+5−5
@@ -10,6 +10,11 @@ inputs:
10runs:
10runs:
11 using: "composite"
11 using: "composite"
12 steps:
12 steps:
13+ - name: Cache Nix
14+ uses: ./.github/actions/nix_cache
15+ with:
16+ key: ${{ inputs.key }}
17+ restore-keys: ${{ inputs.restore-keys }}
13 - name: Install Nix
18 - name: Install Nix
14 uses: cachix/install-nix-action@v16
19 uses: cachix/install-nix-action@v16
15 with:
20 with:
@@ -18,8 +23,3 @@ runs:
18 trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
23 trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
19 substituters = https://hydra.iohk.io https://cache.nixos.org/
24 substituters = https://hydra.iohk.io https://cache.nixos.org/
20
25
21− - name: Cache Nix
22− uses: ./.github/actions/nix_cache
23− with:
24− key: ${{ inputs.key }}
25− restore-keys: ${{ inputs.restore-keys }}
.github/actions/nix_cache/action.yaml+17−14
@@ -16,19 +16,22 @@ runs:
16 uses: actions/cache@v2.1.7
16 uses: actions/cache@v2.1.7
17 with:
17 with:
18 path: |
18 path: |
19− ~/nix/store
19+ /nix/store/
20+ /nix/var/nix/profiles/per-user/${{ env.USER }}/profile/bin
21+ /nix/var/nix/profiles/default/bin/
22+ /nix/var/nix/profiles/per-user/root/channels
20 key: ${{ inputs.key }}
23 key: ${{ inputs.key }}
21 restore-keys: ${{ inputs.restore-keys }}
24 restore-keys: ${{ inputs.restore-keys }}
22− - name: Move nix store
25+ # - name: Move nix store
23− shell: bash
26+ # shell: bash
24− run: |
27+ # run: |
25− echo
28+ # echo
26− ls /nix/store
29+ # ls /nix/store
27− if [[ -d "~/nix/store/" ]]; then
30+ # if [[ -d "~/nix/store/" ]]; then
28− echo
31+ # echo
29− ls ~/nix/store
32+ # ls ~/nix/store
30− sudo mkdir -p /nix/store
33+ # sudo mkdir -p /nix/store
31− sudo mv -f ~/nix/store/* /nix/store/
34+ # sudo mv -f ~/nix/store/* /nix/store/
32− fi
35+ # fi
33− echo
36+ # echo
34− ls /nix/store
37+ # ls /nix/store
default.nix+5−4
@@ -24,11 +24,12 @@ let
24 dontPatchELF = false;
24 dontPatchELF = false;
25 enableDeadCodeElimination = true;
25 enableDeadCodeElimination = true;
26 ghcOptions = [
26 ghcOptions = [
27− "-O2"
27+ # "-O2"
28− "-fexpose-all-unfoldings"
28+ # "-fexpose-all-unfoldings"
29− "-fspecialise-aggressively"
29+ # "-fspecialise-aggressively"
30+ "-O0"
30 ];
31 ];
31− packages.pandoc.ghcOptions = [ "-O1" ];
32+ # packages.pandoc.ghcOptions = [ "-O1" ];
32 packages.compaREST.src = nix-filter {
33 packages.compaREST.src = nix-filter {
33 root = ./.;
34 root = ./.;
34 name = "compaREST-src";
35 name = "compaREST-src";