1
1
mirror of https://github.com/srid/rib.git synced 2024-11-26 13:50:31 +03:00

Add macOS to CI matrix (#68)

Also, re-enable fsatrace in default.nix but only on Linux.
This commit is contained in:
Sridhar Ratnakumar 2019-12-31 10:53:06 -05:00 committed by GitHub
parent 11a9f5d6f4
commit eadcdfd4cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 5 deletions

View File

@ -3,12 +3,15 @@ on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v1
- uses: cachix/install-nix-action@v3
- uses: cachix/cachix-action@v2
- uses: cachix/install-nix-action@v6
- uses: cachix/cachix-action@v3 # This also runs nix-build.
with:
name: srid
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'

View File

@ -72,11 +72,16 @@ haskellPackages.developPackage {
};
modifier =
let
platformSpecificDeps =
if builtins.currentSystem == "x86_64-linux"
then [pkgs.fsatrace]
else []; # fsatrace disabled on macOS, and requires sytem configuration.
addExtraDeps =
(t.flip h.addBuildTools) (with haskellPackages;
[ cabal-install
ghcid
]);
] ++ platformSpecificDeps
);
in (t.flip t.pipe) [
addExtraDeps
h.dontHaddock