From ecead01faafe404b7ce7d111a5b51a113b6beafa Mon Sep 17 00:00:00 2001 From: Ethan Girouard Date: Sun, 14 Jun 2026 22:47:59 -0400 Subject: [PATCH] Add gitea workflows --- .gitea/workflows/push.yaml | 70 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .gitea/workflows/push.yaml diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml new file mode 100644 index 0000000..06354b5 --- /dev/null +++ b/.gitea/workflows/push.yaml @@ -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