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

38 lines
904 B
YAML
Raw Normal View History

2024-08-12 07:11:32 +00:00
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
2024-08-16 11:58:28 +00:00
uses: https://git.kjan.de/actions/checkout@v4
2024-08-12 07:11:32 +00:00
- name: ⚡ Cache
2024-08-16 11:58:28 +00:00
uses: https://git.kjan.de/actions/cache@v4
2024-08-12 07:11:32 +00:00
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
2024-08-16 11:58:28 +00:00
uses: https://git.kjan.de/actions/upload-artifact@v3
2024-08-12 07:11:32 +00:00
with:
name: build
path: target/release/passwd-cooker