Files
yt-offline/.gitea/workflows/build.yml
T
firewire ea2244d6b5
/ Build Release Binary (push) Failing after 2s
Gitea cicd?
2026-09-16 23:10:54 -04:00

34 lines
862 B
YAML

on: [ push, pull_request ]
jobs:
build:
name: Build Release Binary
runs-on: ubuntu-latest
steps:
- name: Install Rust Toolchain
uses: actions/rust-toolchain@v1
with:
toolchain: stable
components: clippy, rustfmt
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v5
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build release binary
run: cargo build --release
- name: Upload binary artifact
uses: actions/upload-artifact@v3
with:
name: yt-offline
path: target/release/yt-offline