origin-shift/.gitea/workflows/CI.yaml

37 lines
1.1 KiB
YAML

name: builder
on:
push:
branches:
- "master"
jobs:
build:
runs-on: ubuntu-latest
container:
image: git.kjan.de/actions/rust-node:latest@sha256:49fb2dad7814507334a38ea36ec2852a552cebc5b421ec22295d8a01421cd435
credentials:
username: ${{ gitea.actor }}
password: ${{ gitea.token }}
steps:
- name: Checkout
uses: https://git.kjan.de/actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: ⚡ Cache
uses: https://git.kjan.de/actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # 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: https://git.kjan.de/actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
with:
name: build
path: target/release/passwd-cooker