Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
Added a working configuration for macOS 14 (Arm64) builds
  • Loading branch information
Argent77 committed Apr 24, 2024
1 parent 2d1e0fd commit 8aa2796
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ windows-latest, macos-13 ]
os: [ windows-latest, macos-13, macos-14 ]
java: [ '21' ]
runs-on: ${{ matrix.os }}
name: Create installer for ${{ matrix.os }}, JDK ${{ matrix.java }}
Expand All @@ -57,12 +57,20 @@ jobs:
- name: Git checkout
uses: actions/checkout@v4

- name: Set up JDK
- name: Set up JDK (windows)
if: startsWith(matrix.os, 'windows-')
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'

- name: Set up JDK (macos)
if: startsWith(matrix.os, 'macos-')
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'oracle'

- name: Echo JAVA_HOME (windows)
if: startsWith(matrix.os, 'windows-')
run: |
Expand Down Expand Up @@ -130,9 +138,16 @@ jobs:
name: installer-windows
path: NearInfinity-*.exe

- name: Upload pkg artifact (macos)
if: startsWith(matrix.os, 'macos-')
- name: Upload pkg artifact (macos-x86_64)
if: (matrix.os == 'macos-13')
uses: actions/upload-artifact@v4
with:
name: installer-macos-x86_64
path: NearInfinity-*.pkg

- name: Upload pkg artifact (macos-arm64)
if: (matrix.os == 'macos-14')
uses: actions/upload-artifact@v4
with:
name: installer-macos-arm64
path: NearInfinity-*.pkg

0 comments on commit 8aa2796

Please sign in to comment.