Skip to content

Commit

Permalink
ci: runs on ubuntu, macOS and windows. Also set multiple JDK versions
Browse files Browse the repository at this point in the history
  • Loading branch information
georgegiosue committed Apr 11, 2024
1 parent e3ceb94 commit 3e72f8d
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,30 @@ env:

jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
name: Build and Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest ]
java: [ '11', '17', '21']
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose


- name: Setup JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}

- name: Set Rust toolchain
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}

- name: Build
run: cargo build --verbose

- name: Test
run: cargo test --verbose

0 comments on commit 3e72f8d

Please sign in to comment.