Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 27 additions & 20 deletions .github/workflows/package-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,40 @@ permissions: {}

jobs:
package-macos:
runs-on: macos-13
runs-on: macos-14
strategy:
matrix:
setup:
- macos-deployment-version: 10.12
python-version: 3.9.12-macosx10.9
python-sha256sum: 7888174c6fe441b00448c7ab3e9cbf0e6c3c7dea0750577baf09e1383fc44656
- macos-deployment-target: '10.12'
target-arch: 'x86_64'
python-version: '3.9'
disable-webp: 1
- macos-deployment-version: 10.14
python-version: 3.11.5-macos11
python-sha256sum: c6cd76659bfb364c2ac63bc57f6b10c1e131a20170359c5d65e2d41fdc674a4f
- macos-deployment-target: '10.14'
target-arch: 'x86_64'
python-version: '3.11'
disable-webp: 0
fail-fast: false
env:
DISCID_VERSION: 0.6.4
DISCID_SHA256SUM: 829133dd38acbdaa2b989de59e256c8d139ac34cb4dd4b8fd3c9d55a97c824f3
FPCALC_VERSION: 1.5.1
FPCALC_SHA256SUM: d4d8faff4b5f7c558d9be053da47804f9501eaa6c2f87906a9f040f38d61c860
PYTHON_VERSION: ${{ matrix.setup.python-version }}
PYTHON_SHA256SUM: ${{ matrix.setup.python-sha256sum }}
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.setup.macos-deployment-version }}
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.setup.macos-deployment-target }}
TARGET_ARCH: ${{ matrix.setup.target-arch }}
CODESIGN: 0
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch entire history, needed for setting the build number
- run: git fetch --depth=1 origin +refs/tags/release-*:refs/tags/release-*
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.setup.python-version }}
cache: 'pip'
cache-dependency-path: |
requirements-build.txt
requirements-macos-${{ matrix.setup.macos-deployment-target }}.txt
- name: Setup macOS build environment
run: |
./scripts/package/macos-setup.sh
Expand All @@ -57,19 +64,19 @@ jobs:
pip3 install .
env:
PYINSTALLER_VERSION: v5.13.2
CFLAGS: -mmacosx-version-min=${{ matrix.setup.macos-deployment-version }}
CPPFLAGS: -mmacosx-version-min=${{ matrix.setup.macos-deployment-version }}
LDFLAGS: -mmacosx-version-min=${{ matrix.setup.macos-deployment-version }}
LINKFLAGS: -mmacosx-version-min=${{ matrix.setup.macos-deployment-version }}
CFLAGS: -mmacosx-version-min=${{ matrix.setup.macos-deployment-target }}
CPPFLAGS: -mmacosx-version-min=${{ matrix.setup.macos-deployment-target }}
LDFLAGS: -mmacosx-version-min=${{ matrix.setup.macos-deployment-target }}
LINKFLAGS: -mmacosx-version-min=${{ matrix.setup.macos-deployment-target }}
- name: Install dependencies
run: |
pip3 install -r requirements-build.txt
pip3 install -r requirements-macos-${MACOSX_DEPLOYMENT_TARGET}.txt
pip3 install zstandard
arch -${TARGET_ARCH} pip install -r requirements-build.txt
arch -${TARGET_ARCH} pip install -r requirements-macos-${MACOSX_DEPLOYMENT_TARGET}.txt
arch -${TARGET_ARCH} pip install zstandard
- name: Run tests
timeout-minutes: 30
run: |
python3 setup.py test
arch -${TARGET_ARCH} python3 setup.py test
- name: Prepare code signing certificate
run: |
if [ -n "$CODESIGN_MACOS_P12_URL" ] && [ -n "$AWS_ACCESS_KEY_ID" ]; then
Expand All @@ -85,7 +92,7 @@ jobs:
CODESIGN_MACOS_P12_URL: ${{ secrets.CODESIGN_MACOS_P12_URL }}
- name: Build macOS app
run: |
./scripts/package/macos-package-app.sh
arch -${TARGET_ARCH} ./scripts/package/macos-package-app.sh
rm -f ./scripts/package/appledev.p12
mv dist/*.dmg artifacts/
env:
Expand All @@ -97,5 +104,5 @@ jobs:
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: macos-app-${{ matrix.setup.macos-deployment-version }}
name: macos-app-${{ matrix.setup.macos-deployment-target }}
path: artifacts/
2 changes: 1 addition & 1 deletion .github/workflows/package-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-13, windows-2022]
os: [macos-14, windows-2022]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '>=3.13.5 <3.14', '3.14']
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-13, ubuntu-latest, windows-2022]
os: [macos-14, ubuntu-latest, windows-2022]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '>=3.13.5 <3.14', '3.14']
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-13, ubuntu-latest, windows-latest]
os: [macos-14, ubuntu-latest, windows-latest]
python-version: ['3.8', '3.14']

steps:
Expand Down
Loading