Skip to content

Commit

Permalink
chore: support macOS ARM release (#508)
Browse files Browse the repository at this point in the history
* chore: support macOS ARM release

Signed-off-by: Keming <kemingy94@gmail.com>

* fix python env for macos 14

Signed-off-by: Keming <kemingy94@gmail.com>

* fix python env + pipx for macos 14

Signed-off-by: Keming <kemingy94@gmail.com>

---------

Signed-off-by: Keming <kemingy94@gmail.com>
  • Loading branch information
kemingy authored Feb 27, 2024
1 parent d6e18c6 commit 31809bb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/actions/cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ runs:
restore-keys: |
${{ runner.os }}-cargo-cache-
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Get pip cache dir
id: pip-cache-dir
shell: bash
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,20 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-13, macos-14]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/cache
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Build
run: |
python -m pip install pipx
pipx run cibuildwheel
- name: Upload wheels
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ changelog = "https://github.com/mosecorg/mosec/releases"

[tool.cibuildwheel]
build-frontend = "build"
skip = "cp36-*"
skip = ["cp36-*", "*-musllinux_*", "pp*"]
archs = ["auto64"]
before-all = "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y"
environment = { PRODUCTION_MODE="yes", PATH="$PATH:$HOME/.cargo/bin", PIP_NO_CLEAN="yes" }
Expand Down

0 comments on commit 31809bb

Please sign in to comment.