Skip to content

wip: add snets

wip: add snets #75

Workflow file for this run

name: "Test"
on:
pull_request:
push:
jobs:
nix-flake-check:
strategy:
matrix:
os:
- ubuntu-latest
# TODO make it work on macos
# - macos-13
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: aeronautical-informatics
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix flake check
nix-build:
strategy:
matrix:
derivation: [opencas, advisory_viewer]
os:
- ubuntu-latest
# - macos-13
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: aeronautical-informatics
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix build .#${{ matrix.derivation }} --print-build-logs
check-web:
strategy:
matrix:
os:
- ubuntu-latest
# - macos-13
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: aeronautical-informatics
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ github.job }}-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Check Website Build
run: |
cd advisory_viewer
nix develop --command ./check.sh