Skip to content

0.0.6

0.0.6 #20

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
release:
types: [published]
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix flake check
- name: Setup Cargo
run: |
nix develop --command which cargo
nix develop --command cargo --version
- name: Build
run: nix develop --command cargo build --verbose
- name: Test
run: nix develop --command cargo test --verbose
- name: Publish
if: github.ref_type == 'tag'
run: nix develop --command cargo publish --verbose
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}