Skip to content

Commit

Permalink
Add CI build for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Jun 17, 2024
1 parent 1addb31 commit 016ea4c
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: DeterminateSystems/flake-checker-action@main

- uses: DeterminateSystems/nix-installer-action@main

- uses: DeterminateSystems/magic-nix-cache-action@main

- uses: DeterminateSystems/flake-checker-action@main

- name: "Nix formatting"
run: git ls-files '*.nix' | nix develop --command xargs nixpkgs-fmt --check

Expand All @@ -32,7 +32,7 @@ jobs:
run: nix develop --command cargo clippy --all-targets --all-features -- -Dwarnings

- name: "Nix Flake Check"
run: nix flake check --print-build-logs
run: nix flake check --all-systems --print-build-logs

- name: Build package
run: "nix build .# -L --fallback"
Expand All @@ -44,3 +44,23 @@ jobs:
name: flakehub-push-X64-Linux
path: result/bin/flakehub-push
retention-days: 1

# For local development purposes
build-artifacts-macos:
runs-on: ${{ matrix.systems.runner }}
strategy:
matrix:
systems:
- nix-system: aarch64-darwin
runner: macos-latest-xlarge
- nix-system: x86_64-darwin
runner: macos-12
steps:
- uses: actions/checkout@v3

- uses: DeterminateSystems/nix-installer-action@main

- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Build package
run: "nix build .# -L --fallback"

0 comments on commit 016ea4c

Please sign in to comment.