build & test workflow
All checks were successful
Build & Test / build-and-test (push) Successful in 1m18s
All checks were successful
Build & Test / build-and-test (push) Successful in 1m18s
This commit is contained in:
23
.gitea/workflows/build-and-test.yaml
Normal file
23
.gitea/workflows/build-and-test.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: Build & Test
|
||||||
|
run-name: Build & Test
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Rust
|
||||||
|
id: rust-toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
|
- name: Cache build artifacts
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
key: ${{ runner.os }}-cargo-${{ steps.rust-toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
restore-keys: ${{ runner.os }}-cargo-${{ steps.rust-toolchain.outputs.cachekey }}-
|
||||||
|
path: |
|
||||||
|
**/target
|
||||||
|
|
||||||
|
- run: cargo test
|
||||||
Reference in New Issue
Block a user