-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split build and update action versions
- Loading branch information
1 parent
4b25831
commit 29498b4
Showing
1 changed file
with
33 additions
and
7 deletions.
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,21 +3,20 @@ name: Build | |
on: [pull_request] | ||
|
||
jobs: | ||
build_wheels: | ||
build_wheels_linux: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
#os: [ubuntu-20.04, windows-2019, macos-11] | ||
os: [ubuntu-20.04, macos-11] | ||
arch: [x86_64, auto32, auto64, aarch64, ppc64le, s390x, arm64] | ||
os: [ubuntu-20.04] | ||
arch: [x86_64, i686, aarch64, ppc64le, s390x] | ||
|
||
steps: | ||
- name: Checkout LeptonInjector | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' # update once build dependencies are available | ||
|
||
|
@@ -28,6 +27,33 @@ jobs: | |
if: ${{ failure() }} | ||
uses: mxschmitt/action-tmate@v3 | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
build_wheels_macos: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-11] | ||
arch: [x86_64, arm64] | ||
|
||
steps: | ||
- name: Checkout LeptonInjector | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' # update once build dependencies are available | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
|
||
- name: Setup tmate session | ||
if: ${{ failure() }} | ||
uses: mxschmitt/action-tmate@v3 | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./wheelhouse/*.whl |