Skip to content

Commit

Permalink
X
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasblaesing committed Feb 23, 2024
1 parent c9b8474 commit 85efcac
Showing 1 changed file with 37 additions and 36 deletions.
73 changes: 37 additions & 36 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,47 @@ on:
pull_request:
push:
branches:
- master
- build_mac

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@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
- 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:
# 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@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
# - 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 }}
Expand Down Expand Up @@ -76,6 +76,7 @@ jobs:
brew update
brew install automake --force
brew install libtool --force
brew install texinfo --force
- name: Run test
run: |
ant test
Expand Down

0 comments on commit 85efcac

Please sign in to comment.