Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
surgura committed Dec 8, 2023
1 parent f72e13c commit fa416a7
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: ci
on: [push, pull_request]

jobs:
list-packages:
list-packages: # List everything in packages.txt
runs-on: ubuntu-20.04
outputs:
packages: ${{ steps.set-packages.outputs.packages }}
Expand All @@ -12,10 +12,10 @@ jobs:
- id: set-packages
run: echo packages=$(jq -R -s -c 'split("\n")[:-1]' < ./packages.txt) >> $GITHUB_OUTPUT

list-build-packages:
list-build-packages: # List only actual Revolve2 packages from packages.txt
runs-on: ubuntu-20.04
outputs:
packages: ${{ steps.set-packages.outputs.packages }}
packages: ${{ steps.set-packages.outputs.build-packages }}
steps:
- uses: actions/checkout@v4
- id: set-packages
Expand Down Expand Up @@ -150,8 +150,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022, macos-12,ubuntu-22.04]
package: ${{ fromJson(needs.list-build-packages.outputs.packages) }}
os: [ubuntu-22.04] #[windows-2022, macos-12,ubuntu-22.04]
package: ${{ fromJson(needs.list-build-packages.outputs.build-packages) }}
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -160,13 +160,14 @@ jobs:
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.2
- name: Build wheels
run: python -m cibuildwheel ./$(echo "${{ matrix.package }}" | sed 's#/revolve2##') --output-dir dist
env:
CIBW_BUILD: cp310-* cp311-*
CIBW_ARCHS_WINDOWS: AMD64
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ARCHS_LINUX: x86_64
#if: "(!startsWith(matrix.package, 'examples/') && matrix.package != 'tests')"
run: pip wheel ./$(echo "${{ matrix.package }}" | sed 's#/revolve2##') -w dist/$(echo "${{ matrix.package }}" | sed 's#/revolve2##')
# - name: Build wheels
# run: python -m cibuildwheel ./$(echo "${{ matrix.package }}" | sed 's#/revolve2##') --output-dir dist
# env:
# CIBW_BUILD: cp310-* cp311-*
# CIBW_ARCHS_WINDOWS: AMD64
# CIBW_ARCHS_MACOS: x86_64 arm64
# CIBW_ARCHS_LINUX: x86_64
- uses: actions/upload-artifact@v3
with:
name: dist
Expand Down

0 comments on commit fa416a7

Please sign in to comment.