Skip to content

Commit

Permalink
fix: github actions, build macos x64/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
Tohrusky committed Jul 1, 2024
1 parent ce4ca12 commit 160b952
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 10 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/CI-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
python-version: ["3.10"]
os-version: ["macos-latest", "windows-latest", "ubuntu-20.04"]
os-version: ["windows-latest", "ubuntu-20.04", "macos-13", "macos-14"]

runs-on: ${{ matrix.os-version }}
steps:
Expand Down Expand Up @@ -52,17 +52,29 @@ jobs:
cd dist\Final2x-core
7z a -r Final2x-core-${{ matrix.os-version }}.zip *
- name: zip-unix
if: matrix.os-version != 'windows-latest'
- name: zip-linux
if: matrix.os-version == 'ubuntu-20.04'
run: |
cd dist/Final2x-core
zip -9 -r Final2x-core-${{ matrix.os-version }}.zip ./*
- name: zip-macos-x64
if: matrix.os-version == 'macos-13'
run: |
cd dist/Final2x-core
zip -9 -r Final2x-core-macos-x64.zip ./*
- name: zip-macos-arm64
if: matrix.os-version == 'macos-14'
run: |
cd dist/Final2x-core
zip -9 -r Final2x-core-macos-arm64.zip ./*
- name: upload
uses: actions/upload-artifact@v3
with:
name: Final2x-core-${{ matrix.os-version }}
path: dist/Final2x-core/Final2x-core-${{ matrix.os-version }}.zip
path: dist/Final2x-core/*.zip

- name: Test-windows
if: matrix.os-version == 'windows-latest'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
python-version: ["3.10"]
os-version: ["windows-latest", "ubuntu-20.04", "macos-latest"]
os-version: ["windows-latest", "ubuntu-20.04", "macos-13", "macos-14"]

runs-on: ${{ matrix.os-version }}
steps:
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
python-version: ["3.10"]
os-version: ["macos-latest", "windows-latest", "ubuntu-20.04"]
os-version: ["windows-latest", "ubuntu-20.04", "macos-13", "macos-14"]

runs-on: ${{ matrix.os-version }}
steps:
Expand Down Expand Up @@ -49,16 +49,28 @@ jobs:
cd dist\Final2x-core
7z a -r Final2x-core-${{ matrix.os-version }}.zip *
- name: zip-unix
if: matrix.os-version != 'windows-latest'
- name: zip-linux
if: matrix.os-version == 'ubuntu-20.04'
run: |
cd dist/Final2x-core
zip -9 -r Final2x-core-${{ matrix.os-version }}.zip ./*
- name: zip-macos-x64
if: matrix.os-version == 'macos-13'
run: |
cd dist/Final2x-core
zip -9 -r Final2x-core-macos-x64.zip ./*
- name: zip-macos-arm64
if: matrix.os-version == 'macos-14'
run: |
cd dist/Final2x-core
zip -9 -r Final2x-core-macos-arm64.zip ./*
- name: upload
uses: actions/upload-artifact@v3
with:
path: dist/Final2x-core/Final2x-core-${{ matrix.os-version }}.zip
path: dist/Final2x-core/*.zip

Release:
needs: [setup, build]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pip-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os-version: ["windows-latest", "ubuntu-20.04", "macos-latest"]
os-version: ["windows-latest", "ubuntu-20.04", "macos-13", "macos-14"]

runs-on: ${{ matrix.os-version }}
steps:
Expand Down

0 comments on commit 160b952

Please sign in to comment.