Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
js6pak committed Feb 9, 2024
1 parent e3feb49 commit 8109332
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ jobs:
build-natives:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest, macos-11]
arch: [x64, x86]
exclude:
- os: macos-latest
- os: macos-11
arch: x86
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: zulu
Expand All @@ -28,17 +28,17 @@ jobs:
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- if: matrix.os == 'macos-latest'
- if: matrix.os == 'macos-11'
run: sudo xcode-select -s /Applications/Xcode_11.7.app/Contents/Developer
- name: Build natives
run: ant generate-all compile_native
- if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: natives
name: natives-${{ matrix.runs-on }}-${{ matrix.arch }}
path: |
bin/lwjgl/lwjgl*.dll
bin/lwjgl/liblwjgl*.so
Expand All @@ -49,19 +49,20 @@ jobs:
needs: build-natives
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: zulu
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: natives
pattern: natives-*
path: bin/lwjgl
merge-multiple: true
- name: Build
run: ant generate-all maven-full
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: maven
path: dist/lwjgl-maven-*.zip

0 comments on commit 8109332

Please sign in to comment.