Skip to content

Commit

Permalink
build macOS arm64 binaries (#6633)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Jan 31, 2024
1 parent 6afa708 commit 6bd19a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ jobs:
fail-fast: false
matrix:
include:
- image: macos-14
platform: macos-arm64
- image: macos-12
platform: macos
platform: macos-x86_64
- image: windows-2019
platform: windows
- image: ubuntu-20.04 # Oldest available version so we get oldest glibc possible.
Expand All @@ -105,16 +107,15 @@ jobs:
key: installbuilder
- run: pip install .[dev] # pyinstaller 5.9 does not like pyproject.toml + editable installs.

# macOS x64. Due to GHA limitations, we are currently building the Apple Silicon app bundle outside of CI.
- if: matrix.platform == 'macos' && github.repository == 'mitmproxy/mitmproxy'
- if: startsWith(matrix.platform, 'macos') && github.repository == 'mitmproxy/mitmproxy'
&& (startsWith(github.ref, 'refs/heads/') || startsWith(github.ref, 'refs/tags/'))
id: keychain
uses: apple-actions/import-codesign-certs@5565bb656f60c98c8fc515f3444dd8db73545dc2
with:
keychain: ${{ runner.temp }}/temp
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }}
p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
- if: matrix.platform == 'macos' && github.repository == 'mitmproxy/mitmproxy'
- if: startsWith(matrix.platform, 'macos') && github.repository == 'mitmproxy/mitmproxy'
&& (startsWith(github.ref, 'refs/heads/') || startsWith(github.ref, 'refs/tags/'))
run: |
python -u release/build.py macos-app \
Expand Down Expand Up @@ -293,7 +294,11 @@ jobs:
path: release/dist
- uses: actions/download-artifact@v4
with:
name: binaries.macos
name: binaries.macos-x86_64
path: release/dist
- uses: actions/download-artifact@v4
with:
name: binaries.macos-arm64
path: release/dist
- run: ls docs/public
- run: ls release/dist
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
([#6614](https://github.com/mitmproxy/mitmproxy/pull/6614), @dqxpb)
* Fix bug where failed CONNECT request URLs are saved to HAR files incorrectly.
([#6599](https://github.com/mitmproxy/mitmproxy/pull/6599), @basedBaba)
* Add an arm64 variant for the precompiled macOS app.
([#6633](https://github.com/mitmproxy/mitmproxy/pull/6633), @mhils)


## 21 January 2024: mitmproxy 10.2.2
Expand Down

0 comments on commit 6bd19a7

Please sign in to comment.