Move conversions to sub-module (#32) #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |