Consolidate Github Actions sample builds
This commit is contained in:
@@ -49,35 +49,22 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install ".[test]"
|
python -m pip install ".[test]"
|
||||||
|
|
||||||
- name: Sample build
|
- name: Generate a sample project
|
||||||
if: "contains(github.event.pull_request.labels.*.name, 'CI: Sample build')"
|
|
||||||
run: |
|
|
||||||
python bin/sample_build.py
|
|
||||||
|
|
||||||
- name: Get some sample wheels
|
|
||||||
run: |
|
run: |
|
||||||
python -m test.test_projects test.test_0_basic.basic_project sample_proj
|
python -m test.test_projects test.test_0_basic.basic_project sample_proj
|
||||||
cibuildwheel --output-dir wheelhouse sample_proj
|
|
||||||
env:
|
|
||||||
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- name: Run a sample build (GitHub Action)
|
||||||
with:
|
|
||||||
name: sample_wheels
|
|
||||||
path: wheelhouse
|
|
||||||
|
|
||||||
- name: Get some sample wheels (GitHub Action)
|
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
package-dir: sample_proj
|
package-dir: sample_proj
|
||||||
output-dir: wheelhouse_action
|
output-dir: wheelhouse
|
||||||
env:
|
env:
|
||||||
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
|
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: sample_wheels_action
|
name: sample_wheels_action
|
||||||
path: wheelhouse_action
|
path: wheelhouse
|
||||||
|
|
||||||
- name: Test cibuildwheel
|
- name: Test cibuildwheel
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user