Skip to content

Merge pull request #1 from SwissDataScienceCenter/tokio #10

Merge pull request #1 from SwissDataScienceCenter/tokio

Merge pull request #1 from SwissDataScienceCenter/tokio #10

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- main
jobs:
check:
name: check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@V27
with:
extra_nix_config: access-tokens = github.com=${{ github.token }}
- name: Check nix formatting
run: nix fmt -- -c .
- name: Set up cachix
uses: cachix/cachix-action@v15
with:
name: nix-community
- name: Build with nix and run checks
run: |
nix flake check
check-win:
name: "check windows"
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
default: true
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release
ci:
runs-on: ubuntu-latest
needs: [check, check-win]
steps:
- name: Aggregate of lint, and all tests
run: echo "ci passed"