build(nix): update dependencies #1970
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: templates | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
rust: | |
strategy: | |
matrix: | |
platform: | |
- host: macos-latest | |
- host: ubuntu-latest | |
runs-on: ${{ matrix.platform.host }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-nix | |
with: | |
cachixAuthToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: "Initialize and test" | |
run: | | |
cargo new ci | |
cd ci | |
cargo run | |
nix flake init -L --show-trace -t '..#templates.rust' | |
git add . | |
nix flake check -L --show-trace --override-input 'nixify' '..' | |
nix run -L --show-trace --override-input 'nixify' '..' | |
nix develop -L --show-trace --override-input 'nixify' '..' --ignore-environment -c cargo test |