Skip to content

Commit

Permalink
Github Action: run on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
xzfc committed May 24, 2023
1 parent a1980ce commit cd6d460
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,23 @@ on:
push:
jobs:
tests:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
with:
name: xzfc
signingKey: ${{ secrets.CACHIX_SIGNING_KEY }}
- name: Install and test cached-nix-shell
run: nix-env -i -f default.nix && ./tests/run.sh
- name: Build and install cached-nix-shell
run: nix-env -i -f default.nix
- name: Test cached-nix-shell
run: ./tests/run.sh
- name: Test nix-trace
run: nix-shell ./default.nix --run 'make -C ./nix-trace test'
run: nix-shell -p b3sum --run "nix-shell ./default.nix --run 'make -C ./nix-trace test'"

0 comments on commit cd6d460

Please sign in to comment.