Files
LibreTunes-DX/.gitea/workflows/push.yaml
Ethan Girouard 738b57b7b7
Some checks failed
Push Workflows / rustfmt (push) Successful in 54s
Push Workflows / tailwind-build (push) Successful in 55s
Push Workflows / docs (push) Failing after 2m8s
Push Workflows / clippy (push) Failing after 2m14s
Push Workflows / test (push) Failing after 2m21s
Push Workflows / build (push) Failing after 3m5s
Push Workflows / nix-build (push) Has been cancelled
Build CSS for jobs that need the asset
2026-06-17 20:50:25 -04:00

85 lines
2.2 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
- 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
- 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
- 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