Some checks failed
Push Workflows / rustfmt (push) Successful in 6s
Push Workflows / tailwind-build (push) Successful in 8s
Push Workflows / clippy (push) Successful in 1m22s
Push Workflows / docs (push) Successful in 1m27s
Push Workflows / test (push) Successful in 1m36s
Push Workflows / build (push) Failing after 1m59s
Push Workflows / nix-build (push) Successful in 5m21s
85 lines
2.3 KiB
YAML
85 lines
2.3 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: Run tailwindcss
|
|
run: tailwindcss --input style/tailwind.css --output assets/tailwind.css
|
|
- 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: Run tailwindcss
|
|
run: tailwindcss --input style/tailwind.css --output assets/tailwind.css
|
|
- 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 tailwindcss
|
|
run: tailwindcss --input style/tailwind.css --output assets/tailwind.css
|
|
- 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
|
|
|
|
tailwind-build:
|
|
runs-on: libretunes-cicd-dx
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Run tailwindcss
|
|
run: tailwindcss --input style/tailwind.css
|