Skip to content

Commit

Permalink
Actions: Another try on macOS.
Browse files Browse the repository at this point in the history
• Disable debug logging, it's useless.
• Build macOS separately (i.e. one job per arch).
  • Loading branch information
SpacingBat3 committed Dec 16, 2023
1 parent 2d5fd3d commit 9190e9b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ jobs:
name: Windows
arch: x64,arm64,ia32
- runner: macos-latest
name: macOS
arch: x64,arm64 #,universal
name: macOS-x64
arch: x64 #,arm64,universal
- runner: macos-latest
name: macOS-arm64
arch: arm64

name: '${{ matrix.name }} (${{ matrix.build }})'
runs-on: ${{ matrix.runner }}
Expand All @@ -84,7 +87,7 @@ jobs:
cache: npm

- name: Install dependencies (NPM${{ matrix.name == 'macOS' && '+PIP' || '' }})
run: ${{ matrix.name == 'macOS' && 'python -m pip install setuptools &&' || '' }} npm ci
run: ${{ matrix.runner == 'macos-latest' && 'python -m pip install setuptools &&' || '' }} npm ci

- name: Update dependencies
if: ${{ matrix.build == 'latest' }}
Expand All @@ -104,7 +107,7 @@ jobs:
retry_on: error
max_attempts: 3
timeout_minutes: 10
command: ${{ matrix.name == 'macOS' && 'DEBUG="*" ' || '' }} npm run make -- -a ${{ matrix.arch }}
command: npm run make -- -a ${{ matrix.arch }}

- name: Upload distributables as artifact
uses: actions/upload-artifact@v3
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ jobs:
- name: Windows
runner: windows-latest
arch: x64,arm64,ia32
- name: macOS
- name: macOS-x64
runner: macos-latest
arch: x64,arm64 #,universal
arch: x64 #,arm64,universal
- name: macOS-arm64
runner: macos-latest
arch: arm64

name: ${{ matrix.name }} (${{ matrix.arch }})
runs-on: ${{ matrix.runner }}
Expand All @@ -34,7 +37,7 @@ jobs:
cache: npm

- name: Install dependencies (NPM${{ matrix.name == 'macOS' && '+PIP' || '' }})
run: ${{ matrix.name == 'macOS' && 'python -m pip install setuptools &&' || '' }} npm ci
run: ${{ matrix.runner == 'macos-latest' && 'python -m pip install setuptools &&' || '' }} npm ci

- name: TSC cache
uses: actions/cache@v3
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ jobs:
- name: Windows
runner: windows-latest
arch: x64,arm64,ia32
- name: macOS
- name: macOS-x64
runner: macos-latest
arch: x64,arm64 #,universal
arch: x64 #,arm64,universal
- name: macOS-arm64
runner: macos-latest
arch: arm64

name: ${{ matrix.name }} (${{ matrix.arch }})
runs-on: ${{ matrix.runner }}
Expand All @@ -34,7 +37,7 @@ jobs:
cache: npm

- name: Install dependencies (NPM${{ matrix.name == 'macOS' && '+PIP' || '' }})
run: ${{ matrix.name == 'macOS' && 'python -m pip install setuptools &&' || '' }} npm ci
run: ${{ matrix.runner == 'macos-latest' && 'python -m pip install setuptools &&' || '' }} npm ci

- name: TSC cache
uses: actions/cache@v3
Expand Down

0 comments on commit 9190e9b

Please sign in to comment.