Skip to content

Commit df0a5c4

Browse files
committed
ci: Build rust crates
1 parent 6aa3c4d commit df0a5c4

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/build-rust.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build Rust crates
2+
3+
on:
4+
push:
5+
paths-include:
6+
- 'rust/**'
7+
pull_request:
8+
paths-include:
9+
- 'rust/**'
10+
11+
jobs:
12+
build:
13+
name: Build ${{ matrix.wheel }} on ${{ matrix.os }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [windows-latest, macos-latest, ubuntu-latest]
18+
steps:
19+
- name: Clone
20+
uses: actions/checkout@v4
21+
22+
- name: Build
23+
run: |
24+
cd rust
25+
cargo build --release

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ on:
66
- '.github/**'
77
- '!.github/workflows/**'
88
- 'README.md'
9+
- 'rust/**'
910
pull_request:
1011
paths-ignore:
1112
- '.github/**'
1213
- '!.github/workflows/**'
1314
- 'README.md'
15+
- 'rust/**'
1416

1517
jobs:
1618
BuildWindows:

0 commit comments

Comments
 (0)