Skip to content

Commit

Permalink
w
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Mar 15, 2024
1 parent fe0a031 commit 5511978
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/publish_dartpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,8 @@ jobs:
github-binarycache: true
token: ${{ github.token }}

- name: Set CMAKE_TOOLCHAIN_FILE for Windows
if: matrix.os == 'windows-latest'
run: echo "CMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" >> $GITHUB_ENV

- name: Build wheels
if: ${{ matrix.release_only == false || github.ref == 'refs/heads/main' }}
if: ${{ matrix.os != 'windows-latest' && (matrix.release_only == false || github.ref == 'refs/heads/main') }}
uses: pypa/[email protected]
env:
# Common
Expand All @@ -163,6 +159,23 @@ jobs:
# macOS
MACOSX_DEPLOYMENT_TARGET: 10.15

# Windows
CMAKE_TOOLCHAIN_FILE: ""


- name: Build wheels (Windows)
if: ${{ matrix.os == 'windows-latest' && (matrix.release_only == false || github.ref == 'refs/heads/main') }}
uses: pypa/[email protected]
env:
# Common
DART_IN_CI: ON

# macOS
MACOSX_DEPLOYMENT_TARGET: 10.15

# Windows
CMAKE_TOOLCHAIN_FILE: ${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake

- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
Expand Down

0 comments on commit 5511978

Please sign in to comment.