tty/.github/workflows/rust.yml
Raphael 3a4dec3337
Some checks failed
Rust / build (push) Failing after 1s
test
2026-03-15 18:11:14 +01:00

32 lines
673 B
YAML

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
container:
image: nixos/nix:latest
env:
NIX_CONFIG: "extra-experimental-features = nix-command flakes"
steps:
- name: checkout depedencies
run: nix shell nixpkgs#nodejs
- uses: actions/checkout@v4
- name: build
run: nix develop .
- name: Install sqlx-cli
run: cargo install sqlx-cli --no-default-features --features postgres
- name: Prepare
run: cargo sqlx prepare --check
- name: Build
run: cargo build