Skip to content

Commit 6153278

Browse files
committed
Add rust build tests
1 parent a1ea4ce commit 6153278

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/rust-tests.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Rust Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-22.04
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
# Store build cache per workflow.
18+
disk-cache: ${{ github.workflow }}
19+
# Share repository cache between workflows.
20+
repository-cache: true
21+
- name: Build with Rust
22+
run: cargo build
23+
working-directory: rust
24+
- name: Test with Rust
25+
run: cargo test
26+
working-directory: rust

0 commit comments

Comments
 (0)