Skip to content

Commit

Permalink
use 23.05 clean up gha
Browse files Browse the repository at this point in the history
  • Loading branch information
walkah committed Oct 3, 2023
1 parent 44f375d commit d93b291
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 71 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/ci-nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,21 @@ jobs:
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest

- macos-latest-xlarge
steps:
- uses: actions/checkout@v3
name: 📤 Checkout
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main'

- uses: cachix/install-nix-action@v22
name: ❄️ Set up Nix
with:
extra_nix_config: |
substituters = https://cache.nixos.org https://cache.iog.io
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
- uses: DeterminateSystems/nix-installer-action@main
name: ❄️ Set up Nix
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v12
name: 🧰 Cachix
with:
name: fission-codes
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"

- uses: actions/cache@v3
name: 🗄️ Cache ~/.stack
with:
path: ~/.stack
key: ${{ matrix.os }}-stack-nix-${{ hashFiles('stack.yaml.lock', 'flake.lock') }}

- name: 🧪 Test
- name: 👷 Build
run: |
nix-shell --command quality
nix develop
nix build .#fission-cli
nix build .#fission-server
156 changes: 107 additions & 49 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

inputs = {
haskellNix.url = "github:input-output-hk/haskell.nix";
nixpkgs.follows = "haskellNix/nixpkgs-unstable";
nixpkgs.follows = "haskellNix/nixpkgs-2305";
flake-utils.url = "github:numtide/flake-utils";

flake-compat = {
Expand All @@ -12,7 +12,7 @@
};
};

outputs = { self, nixpkgs, flake-utils, haskellNix, flake-compat }:
outputs = { self, nixpkgs, flake-utils, haskellNix, ... }:
flake-utils.lib.eachSystem [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ]
(system:
let
Expand Down Expand Up @@ -99,4 +99,12 @@
inherit (self.packages.${prev.system}) fission-cli fission-server;
};
};

nixConfig = {
extra-substituters = [ "https://fission-codes.cachix.org" "https://cache.iog.io" ];
extra-trusted-public-keys = [
"fission-codes.cachix.org-1:z9T3OvxxngfRrx/TelcOzdnceJaCaqKQ0fby3GV1VFw="
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
];
};
}

0 comments on commit d93b291

Please sign in to comment.