diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b810880..ea27c420 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,21 +7,35 @@ on: branches: [ master ] jobs: - test: + + mvn-test-x86: + + runs-on: ${{ matrix.os }} strategy: matrix: - java-version: ['8', '11', '17', '21', '25'] - - runs-on: ubuntu-latest + os: [ubuntu-latest, macos-latest] + java-test-version: ['8', '11', '17', '21', '25'] + fail-fast: false steps: - uses: actions/checkout@v2 - - name: Set up JDK ${{ matrix.java-version }} - uses: actions/setup-java@v1.4.3 + - name: Set up JDK 17 for build + uses: actions/setup-java@v5 with: - java-version: ${{ matrix.java-version }} + distribution: 'zulu' + java-version: | + 8 + 17 - name: Build run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V + - name: Set up JDK ${{ matrix.java-test-version }} for test + uses: actions/setup-java@v5 + with: + distribution: 'zulu' + java-version: ${{ matrix.java-test-version }} + - name: Install dependencies on macOS + if: matrix.os == 'macos-latest' + run: brew install texinfo automake autoconf - name: Test run: ant test diff --git a/pom.xml b/pom.xml index 7e13807b..fcf44f00 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,12 @@ 4.0.0 - com.github.jnr + + + com.github.jnr + jnr-parent + 0.0.1 + + jffi jar 1.3.16-SNAPSHOT @@ -47,9 +53,6 @@ true true - UTF-8 - 8 - 8 make @@ -78,120 +81,41 @@ gmake - - java9 - - - - org.apache.maven.plugins - maven-compiler-plugin - - - - default-compile - compile - - - com/kenai/jffi/UnsafeMemoryIO.java - - - - - java9-compile - compile - compile - - - - ${maven.compiler.target} - - - **/*.java - - - com/kenai/jffi/UnsafeMemoryIO.java - - - - - - - - - [9,) - - - - release - - - - maven-source-plugin - - - attach-sources - - jar-no-fork - - - - - - maven-javadoc-plugin - - - attach-javadocs - - jar - - - - - none - - - - maven-gpg-plugin - 3.2.4 - - - sign-artifacts - verify - - sign - - - - - - --pinentry-mode - loopback - - - - - - - true - - - org.apache.maven.plugins maven-compiler-plugin - 3.8.1 - - true - true - + + + + default-compile + + + 8 + + + com/kenai/jffi/UnsafeMemoryIO.java + + + + + java9-compile + compile + compile + + + com/kenai/jffi/UnsafeMemoryIO.java + + + + org.apache.maven.plugins maven-jar-plugin - 3.2.0 default-jar @@ -208,7 +132,6 @@ org.apache.felix maven-bundle-plugin - 2.4.0 false @@ -252,33 +175,6 @@ - org.codehaus.mojo build-helper-maven-plugin @@ -385,15 +281,6 @@ - - org.sonatype.central - central-publishing-maven-plugin - 0.7.0 - true - - central - -