From e1577ced6f5c9aef34ad1475643806ecaaa31d5c Mon Sep 17 00:00:00 2001 From: Walter Oggioni Date: Sun, 24 Mar 2024 18:09:03 +0800 Subject: [PATCH] added gitea action --- .cargo/config.toml | 6 ++++++ .gitea/workflows/build.yaml | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .cargo/config.toml create mode 100644 .gitea/workflows/build.yaml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..54fb8b4 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,6 @@ +[registry] +default = "gitea" + +[registries.gitea] +index = "https://woggioni.net/gitea/{owner}/_cargo-index.git" # Git + diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..ee1550c --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -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