Skip to content

Commit

Permalink
Test the modules on macos and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Mar 19, 2024
1 parent a899253 commit fe21eaf
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Test

on:
workflow_dispatch:
push:
branches:
- "*"
tags:
- "v*.*.*"
pull_request:
types:
- opened
- reopened
- synchronize
- labeled

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: |
set -eux
cd tests
rm -f flake.lock
nix flake lock
nix flake check
4 changes: 2 additions & 2 deletions tests/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
];
});

checks.aarch64-darwin.nix-darwin = nix-darwin.lib.darwinSystem {
checks.aarch64-darwin.nix-darwin = (nix-darwin.lib.darwinSystem {
system = "aarch64-darwin";

modules = [
Expand All @@ -50,6 +50,6 @@
];
})
];
};
}).system;
};
}

0 comments on commit fe21eaf

Please sign in to comment.