ci: add build and test

This commit is contained in:
iff 2024-12-14 20:16:48 +01:00
parent 4a596818d9
commit c729c6433f
2 changed files with 25 additions and 0 deletions

View file

@ -4,10 +4,13 @@ on:
push: push:
tags: tags:
- v* - v*
permissions: permissions:
contents: write contents: write
env: env:
CARGO_INCREMENTAL: 0 CARGO_INCREMENTAL: 0
jobs: jobs:
build: build:
name: ${{ matrix.target }} name: ${{ matrix.target }}

22
.github/workflows/rust.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose