Skip to content

Commit

Permalink
Add Rust workflow for CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
hgaiser committed Jan 22, 2025
1 parent 4e5d1eb commit 6199699
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: Test Rust bindings

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

env:
CARGO_TERM_COLOR: always

jobs:
build:
name: Run tests
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Build
run: |
source /etc/profile
cargo build --verbose
shell: bash

- name: Run tests
run: |
source /etc/profile
cargo test --verbose
shell: bash

- name: Machete
uses: bnjbvr/cargo-machete@main

0 comments on commit 6199699

Please sign in to comment.