forked from java-native-access/jna
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0adeab
commit 72bdea8
Showing
1 changed file
with
83 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,83 @@ | ||
# Full CI matrix on all pushes to master branch, and all PRs | ||
name: Java CI | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
java: [8, 11, 17, 21] | ||
os: [ubuntu-latest, macos-latest] | ||
# Run all tests even if one fails | ||
fail-fast: false | ||
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'zulu' | ||
- name: Linux requirements | ||
if: contains(matrix.os, 'ubuntu') | ||
run: sudo apt-get -y install texinfo | ||
- name: macOS requirements | ||
if: contains(matrix.os, 'macos') | ||
run: | | ||
brew update | ||
brew install automake --force | ||
brew install libtool --force | ||
- name: Checkstyle | ||
if: contains(matrix.os, 'ubuntu') && contains(matrix.java, '8') | ||
run: | | ||
ant checkstyle | ||
ant dist | ||
- name: Build with Ant | ||
run: | | ||
ant test | ||
ant test-platform | ||
test-m1: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
java: [21] | ||
# macos-14 is documented to run on m1 | ||
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories | ||
os: [macos-14] | ||
# Run all tests even if one fails | ||
fail-fast: true | ||
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'zulu' | ||
- name: Linux requirements | ||
if: contains(matrix.os, 'ubuntu') | ||
run: sudo apt-get -y install texinfo | ||
- name: macOS requirements | ||
if: contains(matrix.os, 'macos') | ||
run: | | ||
brew update | ||
brew install automake --force | ||
brew install libtool --force | ||
brew install texinfo --force | ||
- name: Run test | ||
run: | | ||
ant test | ||
ant test-platform | ||
## Full CI matrix on all pushes to master branch, and all PRs | ||
#name: Java CI | ||
# | ||
#on: | ||
# workflow_dispatch: | ||
# pull_request: | ||
# push: | ||
# branches: | ||
# - master | ||
# | ||
#permissions: | ||
# contents: read | ||
# | ||
#jobs: | ||
# test: | ||
# runs-on: ${{ matrix.os }} | ||
# strategy: | ||
# matrix: | ||
# java: [8, 11, 17, 21] | ||
# os: [ubuntu-latest, macos-latest] | ||
# # Run all tests even if one fails | ||
# fail-fast: false | ||
# name: Test JDK ${{ matrix.java }}, ${{ matrix.os }} | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Set up JDK | ||
# uses: actions/setup-java@v4 | ||
# with: | ||
# java-version: ${{ matrix.java }} | ||
# distribution: 'zulu' | ||
# - name: Linux requirements | ||
# if: contains(matrix.os, 'ubuntu') | ||
# run: sudo apt-get -y install texinfo | ||
# - name: macOS requirements | ||
# if: contains(matrix.os, 'macos') | ||
# run: | | ||
# brew update | ||
# brew install automake --force | ||
# brew install libtool --force | ||
# - name: Checkstyle | ||
# if: contains(matrix.os, 'ubuntu') && contains(matrix.java, '8') | ||
# run: | | ||
# ant checkstyle | ||
# ant dist | ||
# - name: Build with Ant | ||
# run: | | ||
# ant test | ||
# ant test-platform | ||
# | ||
# test-m1: | ||
# runs-on: ${{ matrix.os }} | ||
# strategy: | ||
# matrix: | ||
# java: [21] | ||
# # macos-14 is documented to run on m1 | ||
# # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories | ||
# os: [macos-14] | ||
# # Run all tests even if one fails | ||
# fail-fast: true | ||
# name: Test JDK ${{ matrix.java }}, ${{ matrix.os }} | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Set up JDK | ||
# uses: actions/setup-java@v3 | ||
# with: | ||
# java-version: ${{ matrix.java }} | ||
# distribution: 'zulu' | ||
# - name: Linux requirements | ||
# if: contains(matrix.os, 'ubuntu') | ||
# run: sudo apt-get -y install texinfo | ||
# - name: macOS requirements | ||
# if: contains(matrix.os, 'macos') | ||
# run: | | ||
# brew update | ||
# brew install automake --force | ||
# brew install libtool --force | ||
# brew install texinfo --force | ||
# - name: Run test | ||
# run: | | ||
# ant test | ||
# ant test-platform |