Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Add Rust test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Noorts committed Dec 14, 2023
1 parent 3ab7b8b commit 9fba9c7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Rust Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

# Setup Rust environment
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

# Build Rust project
- name: Build Rust project
run: |
cd rust
cargo build --release
# Test Rust project
- name: Test Rust project
run: |
cd rust
cargo test --release

0 comments on commit 9fba9c7

Please sign in to comment.