initial commit
This commit is contained in:
parent
018869e0fa
commit
5e93babcef
1 changed files with 28 additions and 0 deletions
28
.forgejo/workflows/test.yml
Normal file
28
.forgejo/workflows/test.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
name: "Test the project"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test-library:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
BUILD_TARGET: [release]
|
||||||
|
outputs:
|
||||||
|
release_built: ${{ steps.set-output.outputs.release_built }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/registry
|
||||||
|
~/.cargo/git
|
||||||
|
target
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
|
- name: Build binaries in "${{ matrix.BUILD_TARGET }}" mode
|
||||||
|
run: cargo build --profile ${{ matrix.BUILD_TARGET }}
|
||||||
|
|
||||||
|
- name: Run tests in "${{ matrix.BUILD_TARGET }}" mode
|
||||||
|
run: cargo test --profile ${{ matrix.BUILD_TARGET }}
|
Loading…
Add table
Reference in a new issue