Skip to content

Commit d97a117

Browse files
committed
Modify build workflow:
allow macOS build even if Linux build fails; remove "cache: 'ant'" to resolve "unknown package manager" error.
1 parent bfd45b5 commit d97a117

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/build.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
name: Build on ${{ matrix.os }}
1212
runs-on: ${{ matrix.os }}
1313
strategy:
14+
fail-fast: false # This prevents the Mac build from stopping if Linux fails
1415
matrix:
15-
# This runs two builds in parallel
1616
os: [macos-latest, ubuntu-latest]
1717

1818
steps:
@@ -24,11 +24,13 @@ jobs:
2424
with:
2525
java-version: '25'
2626
distribution: 'oracle'
27-
cache: 'ant'
27+
# Removed the 'cache: ant' line to fix the error
2828

29-
- name: Install Ant
29+
- name: Install Linux Dependencies
3030
if: runner.os == 'Linux'
31-
run: sudo apt-get update && sudo apt-get install -y ant fakeroot dpkg-dev
31+
run: |
32+
sudo apt-get update
33+
sudo apt-get install -y ant fakeroot dpkg-dev
3234
3335
- name: Run Ant Package
3436
run: ant package
@@ -38,4 +40,3 @@ jobs:
3840
with:
3941
name: ${{ matrix.os }}-installer
4042
path: dist/*
41-

0 commit comments

Comments
 (0)