Skip to content

Commit

Permalink
flake: add system aarch64-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
marijanp committed Jan 11, 2024
1 parent 1cb61db commit 11074b4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
branches: [main]

jobs:
checks:
name: format & build
runs-on: ubuntu-latest
check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
Expand All @@ -22,8 +24,18 @@ jobs:
- name: check
run: nix flake check -L --show-trace

- name: kairos-node
- name: kairos x86_64-darwin
if: matrix.os == 'macos-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-darwin.kairos

- name: kairos x86_64-linux
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-linux.kairos

- name: kairos-prover
- name: kairos-prover x86_64-darwin
if: matrix.os == 'macos-latest'
run: nix build -L --no-link --show-trace .#packages.aarch64-darwin.kairos-prover

- name: kairos-prover x86_64-linux
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-linux.kairos-prover
6 changes: 3 additions & 3 deletions flake.lock

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

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

outputs = inputs@{ self, flake-parts, treefmt-nix, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
systems = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
imports = [
treefmt-nix.flakeModule
./kairos-prover
Expand Down

0 comments on commit 11074b4

Please sign in to comment.