Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/nix support #131

Merged
merged 8 commits into from
Aug 1, 2024
Prev Previous commit
Next Next commit
Added workflow for building with Nix and testing on a gpu-enabled runner
jake-arkinstall committed Jul 31, 2024
commit c735b9e9d4fa9cf74849db4fb805f73be6879c53
37 changes: 37 additions & 0 deletions .github/workflows/build-with-nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build with nix

on:
pull_request:
branches:
- main
workflow_dispatch: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
build:
strategy:
matrix:
os: ['ubuntu-24.04']
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
- uses: cachix/cachix-action@v15
with:
name: tket
- name: Build pytket-cutensornet
run: nix build
test:
needs: build
runs-on: nixos-gpu
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
- uses: cachix/cachix-action@v15
with:
name: tket
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Test pytket-cutensornet
run: nix run .#tests