Add gitea workflows
Some checks failed
Push Workflows / rustfmt (push) Failing after 43s
Push Workflows / clippy (push) Failing after 1m34s
Push Workflows / test (push) Failing after 1m42s
Push Workflows / docs (push) Failing after 1m50s
Push Workflows / build (push) Failing after 5s
Push Workflows / nix-build (push) Failing after 1m57s
Some checks failed
Push Workflows / rustfmt (push) Failing after 43s
Push Workflows / clippy (push) Failing after 1m34s
Push Workflows / test (push) Failing after 1m42s
Push Workflows / docs (push) Failing after 1m50s
Push Workflows / build (push) Failing after 5s
Push Workflows / nix-build (push) Failing after 1m57s
This commit is contained in:
70
.gitea/workflows/push.yaml
Normal file
70
.gitea/workflows/push.yaml
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
name: Push Workflows
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: libretunes-cicd
|
||||||
|
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
|
||||||
|
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
|
||||||
|
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
|
||||||
|
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
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Run rustfmt
|
||||||
|
run: cargo fmt --check
|
||||||
Reference in New Issue
Block a user