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