Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit 358bc1e

Browse files
committed
Add GitHub Action to build&test on Linux, Windows and macOS
1 parent d74fffc commit 358bc1e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/rust.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build-and-test-on-linux:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Build
18+
run: cargo build --verbose
19+
- name: Test
20+
run: RUST_BACKTRACE=full cargo test --verbose -- --nocapture
21+
build-and-test-on-windows:
22+
runs-on: windows-latest
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Build
26+
run: cargo build --verbose
27+
- name: Test
28+
run: $env:RUST_BACKTRACE="full"; cargo test --verbose -- --nocapture
29+
build-and-test-on-macos:
30+
runs-on: macos-latest
31+
steps:
32+
- uses: actions/checkout@v3
33+
- name: Build
34+
run: cargo build --verbose
35+
- name: Test
36+
run: RUST_BACKTRACE=full cargo test --verbose -- --nocapture

0 commit comments

Comments
 (0)