add demo workflow
All checks were successful
Build & Test / build-and-test (push) Successful in 1m10s
All checks were successful
Build & Test / build-and-test (push) Successful in 1m10s
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]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Cache cargo build artifacts
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
**/target
|
||||||
|
- name: Install rust
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
- name: Build
|
||||||
|
run: cargo build
|
||||||
|
- name: Test
|
||||||
|
run: cargo test
|
||||||
Reference in New Issue
Block a user