Skip to content

Commit

Permalink
feat: add rust workflow (krahets#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
night-cruise authored Nov 18, 2023
1 parent b859182 commit 9526838
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Rust

on:
push:
branches: ["main"]
paths: ["codes/rust/**/*.rs", "codes/rust/Cargo.toml"]
pull_request:
branches: ["main"]
paths: ["codes/rust/**/*.rs", "codes/rust/Cargo.toml"]

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: brndnmtthws/rust-action-rustup@v1
with:
toolchain: nightly

- uses: actions/checkout@v4

- name: Build
run: cargo build --manifest-path=codes/rust/Cargo.toml && cargo build --manifest-path=codes/rust/Cargo.toml --release

0 comments on commit 9526838

Please sign in to comment.