From ac24cd01ab7d2b56f6c379bb3f46bdd0fe5db6d9 Mon Sep 17 00:00:00 2001 From: Jan Gleytenhoover Date: Mon, 12 Aug 2024 07:11:32 +0000 Subject: [PATCH] Add .gitea/workflows/CI.yaml --- .gitea/workflows/CI.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/CI.yaml diff --git a/.gitea/workflows/CI.yaml b/.gitea/workflows/CI.yaml new file mode 100644 index 0000000..b1a81cd --- /dev/null +++ b/.gitea/workflows/CI.yaml @@ -0,0 +1,37 @@ +name: builder + +on: + push: + branches: + - "master" + + +jobs: + build: + runs-on: ubuntu-latest + container: + image: git.kjan.de/actions/rust-node:latest + credentials: + username: ${{ gitea.actor }} + password: ${{ gitea.token }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: ⚡ Cache + uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target/release/deps + target/release/build + target + key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} + - name: Build + run: cargo build --release + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: build + path: target/release/passwd-cooker +