Skip to content

Merge pull request #48 from traP-jp/fix-todo #162

Merge pull request #48 from traP-jp/fix-todo

Merge pull request #48 from traP-jp/fix-todo #162

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache build
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build
- name: Check format
run: cargo fmt --all -- --check
- name: Lint
run: cargo clippy --all-targets --all-features -- -D warnings
nix-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v20
with:
nix_path: "nixpkgs=channel:release-23.11"
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix build .#ci
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: docker build -t h23w_01-backend .