added gitea action
Some checks failed
CI / build (push) Failing after 48s

This commit is contained in:
2024-03-24 18:09:03 +08:00
parent 6edb6a95b3
commit 6c5a8857d3
2 changed files with 25 additions and 0 deletions

6
.cargo/config.toml Normal file
View File

@@ -0,0 +1,6 @@
[registry]
default = "gitea"
[registries.gitea]
index = "https://woggioni.net/gitea/{owner}/_cargo-index.git" # Git

View File

@@ -0,0 +1,19 @@
name: CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: woryzen
steps:
- name: Checkout sources
uses: https://github.com/RouxAntoine/checkout@v3.5.4
- run: rustup toolchain install stable --profile minimal
- name: Setup Cargo
uses: Swatinem/rust-cache@v2
- name: Execute Cargo build
env:
CARGO_REGISTRY_GITEA_TOKEN: 'Bearer ${{ secrets.PUBLISHER_TOKEN }}'
run: |
cargo build --release
cargo publish