on master help sign in
Try
commitdc1fb5820de60bd5d9082490f70ebb2cc2bd7068 authoriko <ilyakooo0@gmail.com> dateWed 22 Dec 2021, 13:20 (5 years ago) parent0e77611
3 files changed+27−23
.github/actions/common_setup/action.yaml+5−5 .github/actions/nix_cache/action.yaml+17−14 default.nix+5−4
.github/actions/common_setup/action.yaml+5−5
@@ -10,6 +10,11 @@ inputs:
1010runs:
1111 using: "composite"
1212 steps:
13+ - name: Cache Nix
14+ uses: ./.github/actions/nix_cache
15+ with:
16+ key: ${{ inputs.key }}
17+ restore-keys: ${{ inputs.restore-keys }}
1318 - name: Install Nix
1419 uses: cachix/install-nix-action@v16
1520 with:
@@ -18,8 +23,3 @@ runs:
1823 trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
1924 substituters = https://hydra.iohk.io https://cache.nixos.org/
2025
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:
1616 uses: actions/cache@v2.1.7
1717 with:
1818 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
2023 key: ${{ inputs.key }}
2124 restore-keys: ${{ inputs.restore-keys }}
22− - name: Move nix store
23− shell: bash
24− run: |
25− echo
26− ls /nix/store
27− if [[ -d "~/nix/store/" ]]; then
28− echo
29− ls ~/nix/store
30− sudo mkdir -p /nix/store
31− sudo mv -f ~/nix/store/* /nix/store/
32− fi
33− echo
34− ls /nix/store
25+ # - name: Move nix store
26+ # shell: bash
27+ # run: |
28+ # echo
29+ # ls /nix/store
30+ # if [[ -d "~/nix/store/" ]]; then
31+ # echo
32+ # ls ~/nix/store
33+ # sudo mkdir -p /nix/store
34+ # sudo mv -f ~/nix/store/* /nix/store/
35+ # fi
36+ # echo
37+ # ls /nix/store
default.nix+5−4
@@ -24,11 +24,12 @@ let
2424 dontPatchELF = false;
2525 enableDeadCodeElimination = true;
2626 ghcOptions = [
27− "-O2"
28− "-fexpose-all-unfoldings"
29− "-fspecialise-aggressively"
27+ # "-O2"
28+ # "-fexpose-all-unfoldings"
29+ # "-fspecialise-aggressively"
30+ "-O0"
3031 ];
31− packages.pandoc.ghcOptions = [ "-O1" ];
32+ # packages.pandoc.ghcOptions = [ "-O1" ];
3233 packages.compaREST.src = nix-filter {
3334 root = ./.;
3435 name = "compaREST-src";