feat: adds GitHub Workflow

This commit is contained in:
itsscb 2024-08-14 11:10:04 +02:00
parent dbd97f8666
commit 375173e13f
2 changed files with 38 additions and 0 deletions

38
.github/workflow/prod.yml vendored Normal file
View File

@ -0,0 +1,38 @@
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install protoc
uses: arduino/setup-protoc@v1
- name: Checkout code
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Build and test code
run: |
cargo build --verbose
cargo test --verbose

0
flake.lock generated Normal file
View File