Skip to content

update os version

update os version #77

name: build with nix
on:
pull_request:
branches:
- main
workflow_dispatch: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
os: ['ubuntu-latest']
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V28
- uses: cachix/cachix-action@v15
with:
name: tket
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build pytket-cutensornet
run: nix build --accept-flake-config
#
# need GPU runners for this
#
#test:
# needs: build
# runs-on: nixos-gpu
# steps:
# - uses: actions/checkout@v4
# - uses: cachix/install-nix-action@V28
# - uses: cachix/cachix-action@v15
# with:
# name: tket
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# - name: Test pytket-cutensornet
# run: nix run .#tests --accept-flake-config