Skip to content

Commit cd68dc6

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

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/build-rust.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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: [macos-latest, ubuntu-latest]
18+
steps:
19+
- name: Clone
20+
uses: actions/checkout@v4
21+
22+
- name: Install fuse (macOS)
23+
if: matrix.os.startswith('macos')
24+
run: |
25+
export HOMEBREW_NO_AUTO_UPDATE=1
26+
export HOMEBREW_NO_INSTALL_CLEANUP=1
27+
brew install pkgconf macfuse
28+
29+
- name: Install fuse (Ubuntu)
30+
if: matrix.os.startswith('ubuntu')
31+
run: |
32+
sudo apt-get install fuse3 libfuse3-dev
33+
34+
- name: Build
35+
run: |
36+
cd rust
37+
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)