add docker image build to flake #31
This file contains hidden or 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: Rust | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| # from https://determinate.systems/blog/nix-github-actions/ | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v31 | |
| with: | |
| # Mostly to avoid GitHub rate limiting | |
| extra_nix_config: | | |
| access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
| # should I consider nix build . and nix build .#test here? | |
| - name: Dev build | |
| run: nix develop --command cargo build | |
| - name: Dev tests | |
| run: nix develop --command cargo test | |
| # TODO nix build .#clippy |