|
6 | 6 |
|
7 | 7 | jobs:
|
8 | 8 | build_wheels:
|
9 |
| - name: Build wheels on ${{ matrix.os }} |
| 9 | + name: ${{ matrix.os }}-${{ github.workflow }} |
10 | 10 | runs-on: ${{ matrix.os }}
|
11 | 11 | strategy:
|
| 12 | + fail-fast: true |
12 | 13 | matrix:
|
13 |
| - os: [ubuntu-20.04, macos-11] |
| 14 | + os: [ubuntu-latest, macos-latest] |
| 15 | + include: |
| 16 | + - os: ubuntu-latest |
| 17 | + # tag '2023.04.15' |
| 18 | + vcpkgCommitId: '501db0f17ef6df184fcdbfbe0f87cde2313b6ab1' |
| 19 | + triplet: 'x64-linux-dynamic' |
| 20 | + - os: macos-latest |
| 21 | + # tag '2023.04.15' |
| 22 | + vcpkgCommitId: '501db0f17ef6df184fcdbfbe0f87cde2313b6ab1' |
| 23 | + triplet: 'x64-osx-dynamic' |
| 24 | + |
| 25 | + env: |
| 26 | + VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }} |
14 | 27 |
|
15 | 28 | steps:
|
16 | 29 | - uses: actions/checkout@v3
|
17 | 30 |
|
18 |
| - - name: Build wheels |
19 |
| - |
| 31 | + - name: run vcpkg |
| 32 | + uses: lukka/run-vcpkg@main |
| 33 | + id: run_vcpkg |
20 | 34 | with:
|
21 |
| - package-dir: . |
22 |
| - output-dir: wheelhouse |
23 |
| - config-file: "{package}/pyproject.toml" |
| 35 | + vcpkgDirectory: '{{ runner.workspace }}/b/vcpkg' |
| 36 | + vcpkgGitCommitId: '{{ matrix.vcpkgCommitId }}' |
| 37 | + runVcpkgInstall: true |
| 38 | + vcpkgJsonGlob: '${{ github.workspace }}/build-scripts/vcpkg.json' |
24 | 39 |
|
25 |
| - - uses: actions/upload-artifact@v3 |
26 |
| - with: |
27 |
| - path: ./wheelhouse/*.whl |
| 40 | + - name: List $RUNNER_WORKSPACE before build |
| 41 | + run: find $RUNNER_WORKSPACE |
| 42 | + shell: bash |
| 43 | + |
| 44 | + - name: Prints output of run-vcpkg action. |
| 45 | + run: echo "root='${{ steps.run_vcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}', triplet='${{ steps.run_vcpkg.outputs.RUNVCPKG_VCPKG_DEFAULT_TRIPLET_OUT }}' " |
| 46 | + |
| 47 | + # - name: Build wheels |
| 48 | + |
| 49 | + # with: |
| 50 | + # package-dir: . |
| 51 | + # output-dir: wheelhouse |
| 52 | + # config-file: "{package}/pyproject.toml" |
| 53 | + |
| 54 | + # - uses: actions/upload-artifact@v3 |
| 55 | + # with: |
| 56 | + # path: ./wheelhouse/*.whl |
0 commit comments