Skip to content

Commit 3872520

Browse files
committed
Added github workflow for building and testing
1 parent d9bc51f commit 3872520

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci-workflow.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: j4rs CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
16+
strategy:
17+
matrix:
18+
os: [ ubuntu-latest, macos-latest, windows-latest ]
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Set up JDK 17
23+
uses: actions/setup-java@v3
24+
with:
25+
java-version: '17'
26+
distribution: 'adopt'
27+
- name: Build Rust with Cargo
28+
run: cargo build --verbose
29+
- name: Test Rust with Cargo
30+
run: cargo test --verbose -- --nocapture

0 commit comments

Comments
 (0)