From 1719e476840b73b4f28e86cd99ef7894ee3d8669 Mon Sep 17 00:00:00 2001 From: Lyra Date: Wed, 16 Sep 2026 23:00:06 -0400 Subject: [PATCH] Gitea cicd? --- .gitea/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ .idea/jsonSchemas.xml | 25 +++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .gitea/workflows/build.yml create mode 100644 .idea/jsonSchemas.xml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..2bc68c6 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,31 @@ +on: [ push, pull_request ] + +jobs: + build: + name: Build Release Binary + runs-on: ubuntu-latest + container: + image: rust:latest + + steps: + - 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 \ No newline at end of file diff --git a/.idea/jsonSchemas.xml b/.idea/jsonSchemas.xml new file mode 100644 index 0000000..58adb8f --- /dev/null +++ b/.idea/jsonSchemas.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + \ No newline at end of file