Skip to content

Commit

Permalink
Added workflow for building with Nix and testing on a gpu-enabled runner
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-arkinstall committed Jul 30, 2024
1 parent b2e5cb5 commit 3a64cfa
Showing 1 changed file with 37 additions and 0 deletions.
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

0 comments on commit 3a64cfa

Please sign in to comment.