From 44c39e03b270fdb3b2f46d72c4aeb81f083b229e Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Wed, 17 Apr 2024 19:05:05 +1000 Subject: [PATCH] chore: add CI --- .github/workflows/ci.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..ef5b20a --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,24 @@ +name: "CI" +on: + # Run only when pushing to master branch, and making PRs + push: + branches: + - main + pull_request: +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-14] + steps: + - uses: actions/checkout@v3 + - uses: DeterminateSystems/nix-installer-action@main + with: + extra-conf: | + trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= + substituters = https://cache.garnix.io?priority=41 https://cache.nixos.org/ + - uses: yaxitech/nix-install-pkgs-action@v3 + with: + packages: "github:srid/nixci" + - run: nixci build