Some checks failed
Rust / build (push) Failing after 1s

This commit is contained in:
Raphael 2026-03-15 13:07:11 +01:00
parent 171b134156
commit bb16bf0f14
No known key found for this signature in database
3 changed files with 46 additions and 19 deletions

View file

@ -0,0 +1,37 @@
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
container: rust:latest
steps:
- uses: forgejo-org/forgejo-actions/setup-node@v1
- name: Cache Cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- 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

View file

@ -13,21 +13,9 @@ jobs:
build:
runs-on: ubuntu-latest
container: rust:latest
steps:
- name: Cache Cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- uses: https://github.com/actions/checkout@v4
- name: Install sqlx-cli
run: cargo install sqlx-cli --no-default-features --features postgres
- name: Prepare

View file

@ -57,6 +57,8 @@
with pkgs;
[
tmux-setup
act
docker
rustToolchain
cargo-watch
cargo-edit