2024-08-20 10:02:07 +00:00
|
|
|
name: Cargo Build & Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
can-publish:
|
2024-09-04 06:04:31 +00:00
|
|
|
container: git.kjan.de/actions/rust-node@sha256:49fb2dad7814507334a38ea36ec2852a552cebc5b421ec22295d8a01421cd435
|
2024-08-20 10:02:07 +00:00
|
|
|
name: Test publish
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-09-04 06:04:31 +00:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
2024-08-20 10:02:07 +00:00
|
|
|
- name: ⚡ Cache
|
2024-12-05 18:02:02 +00:00
|
|
|
uses: https://git.kjan.de/actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
|
2024-08-20 10:02:07 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cargo/registry
|
|
|
|
~/.cargo/git
|
|
|
|
target/release/deps
|
|
|
|
target/release/build
|
|
|
|
target
|
|
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}-loadstar
|
|
|
|
- run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
|
|
|
|
- run: cargo publish
|