Some checks failed
Push Workflows / rustfmt (push) Successful in 41s
Push Workflows / docs (push) Failing after 1m49s
Push Workflows / clippy (push) Failing after 1m50s
Push Workflows / test (push) Failing after 1m58s
Push Workflows / build (push) Failing after 2m43s
Push Workflows / nix-build (push) Failing after 11m2s
71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
name: Push Workflows
|
|
on: push
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: libretunes-cicd-dx
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Use Cache
|
|
uses: Swatinem/rust-cache@v2
|
|
- name: Build project
|
|
env:
|
|
RUSTFLAGS: "-D warnings"
|
|
run: dx build
|
|
|
|
test:
|
|
runs-on: libretunes-cicd-dx
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Use Cache
|
|
uses: Swatinem/rust-cache@v2
|
|
- name: Test project
|
|
run: cargo test --all-targets --all-features
|
|
|
|
docs:
|
|
runs-on: libretunes-cicd-dx
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Use Cache
|
|
uses: Swatinem/rust-cache@v2
|
|
- name: Generate docs
|
|
run: cargo doc --no-deps
|
|
- name: Upload docs
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: docs
|
|
path: target/doc
|
|
|
|
nix-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Update Package Lists
|
|
run: apt update
|
|
- name: Install Nix
|
|
run: apt install -y nix-bin
|
|
- name: Build project with Nix
|
|
run: nix build --experimental-features 'nix-command flakes' git+$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git?ref=$GITHUB_REF_NAME#default
|
|
|
|
clippy:
|
|
runs-on: libretunes-cicd-dx
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Use Cache
|
|
uses: Swatinem/rust-cache@v2
|
|
- name: Run clippy
|
|
env:
|
|
RUSTFLAGS: "-D warnings"
|
|
run: cargo clippy --all-targets --all-features
|
|
|
|
rustfmt:
|
|
runs-on: libretunes-cicd-dx
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Run rustfmt
|
|
run: cargo fmt --check
|