-
-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Cross-compile macos arm64 wheels #1348
Closed
Closed
Changes from 3 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
5ef2032
feat: Cross-compile macos arm64 wheels
armenzg 96ebfa9
Adjust glob matching
armenzg fe11655
Name the upload artifact correctly
armenzg 8d55da4
Try again
armenzg 7e6f7d4
Undo prettier
armenzg 224ccd8
Undo prettier
armenzg b999a5c
We will run tests locally
armenzg f3c696d
Script to test wheel on Apple Sillicon
armenzg 6d99aa2
Upload repaired_wheels
armenzg ec07426
Formatting
armenzg c551f2e
More formatting
armenzg 1f379d0
Fix
armenzg e4d5059
Create directory
armenzg 618496e
Use absolute path
armenzg 2c9c31b
Try again
armenzg 8176468
Try again
armenzg d780f64
Faster
armenzg 3205851
Use CIBW_REPAIR again
armenzg b674800
Try with push
armenzg 89974ac
New name
armenzg af32975
Verbosity
armenzg ad58ed7
Use armenzg action
armenzg 87d4afc
Try main
armenzg eba27a5
Try build script
armenzg 9fee307
Try again
armenzg 9fc985b
Small change
armenzg 8adcdcb
One more try
armenzg 4913603
Less changes
armenzg de4fe1e
Only Python 3.8
armenzg e8ddb29
A tiny bit more
armenzg 57383fb
New script
armenzg 415eaee
WIP
armenzg 50d74a3
Merge branch 'ci/build-m1-wheel' of github.com:armenzg/psycopg2 into …
armenzg 30cbc68
Changes for Intel
armenzg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ name: Build packages | |
on: | ||
- workflow_dispatch | ||
|
||
|
||
jobs: | ||
build-sdist: | ||
strategy: | ||
|
@@ -51,16 +50,15 @@ jobs: | |
--health-timeout 5s | ||
--health-retries 5 | ||
|
||
|
||
build-manylinux: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- {tag: manylinux2014, arch: x86_64} | ||
- {tag: manylinux2014, arch: i686} | ||
- {tag: manylinux_2_24, arch: aarch64} | ||
- {tag: manylinux_2_24, arch: ppc64le} | ||
- { tag: manylinux2014, arch: x86_64 } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unneeded |
||
- { tag: manylinux2014, arch: i686 } | ||
- { tag: manylinux_2_24, arch: aarch64 } | ||
- { tag: manylinux_2_24, arch: ppc64le } | ||
|
||
runs-on: ubuntu-20.04 | ||
steps: | ||
|
@@ -107,13 +105,12 @@ jobs: | |
--health-timeout 5s | ||
--health-retries 5 | ||
|
||
|
||
build-macos: | ||
runs-on: macos-10.15 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.6', '3.7', '3.8', '3.9'] | ||
python-version: ["3.6", "3.7", "3.8", "3.9"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unneeded |
||
|
||
steps: | ||
- name: Checkout repos | ||
|
@@ -137,3 +134,27 @@ jobs: | |
name: packages_macos | ||
path: | | ||
dist/*/*${{ matrix.platform }}.whl | ||
|
||
# This only uploads the arm64 wheels for Apple M1 silicon usage | ||
build-macos-arm64: | ||
runs-on: macos-10.15 | ||
strategy: | ||
fail-fast: false | ||
name: "build-macos (3.8-3.10 - arm64)" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# This builds all possible Python versions (currently, 3.8 to 3.10) | ||
- uses: pypa/[email protected] | ||
with: | ||
output-dir: dist | ||
# Read about options here https://cibuildwheel.readthedocs.io/en/stable/options | ||
env: | ||
CIBW_ARCHS_MACOS: arm64 | ||
# Skip testing the arm64 builds | ||
CIBW_TEST_SKIP: "*:arm64" | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: packages_macos_arm64 | ||
path: | | ||
dist/*macosx_11_0_arm64.whl |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't like two spaces? 🥺
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to mention.
prettier
change the formatting of the file. I will change it.