-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes an issue where the import libraries were being zipped up instead of static libraries. As part of this, Gradle now executes vcpkg as part of the build, because it's likely the triplet needed to build for Windows will be forgotten.
- Loading branch information
Showing
2 changed files
with
67 additions
and
53 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 |
---|---|---|
|
@@ -32,8 +32,6 @@ jobs: | |
- uses: lukka/[email protected] | ||
with: | ||
vcpkgGitCommitId: '29b2ea2d4b6197e66ef346e62ccbba35b55b7de5' | ||
- run: vcpkg install | ||
name: install packages | ||
- run: ./gradlew publish ${{ matrix.build-options }} | ||
name: Build with Gradle | ||
- uses: actions/upload-artifact@v4 | ||
|
@@ -48,10 +46,10 @@ jobs: | |
include: | ||
- artifact-name: WinArm64 | ||
tool-arch: amd64_arm64 | ||
build-options: -Pplatform=arm64-windows | ||
build-options: -Pplatform=arm64-windows-static | ||
- artifact-name: Win64 | ||
tool-arch: amd64 | ||
build-options: -Pplatform=x64-windows | ||
build-options: -Pplatform=x64-windows-static | ||
|
||
name: "Build - ${{ matrix.artifact-name }}" | ||
runs-on: windows-2019 | ||
|
@@ -69,46 +67,26 @@ jobs: | |
- uses: ilammy/[email protected] | ||
with: | ||
arch: ${{ matrix.tool-arch }} | ||
- run: vcpkg install --triplet=arm64-windows | ||
name: install packages | ||
if: matrix.artifact-name == 'WinArm64' | ||
- run: vcpkg install --triplet=x64-windows | ||
name: install packages | ||
if: matrix.artifact-name == 'Win64' | ||
- run: ./gradlew publish ${{ matrix.build-options }} | ||
name: Build with Gradle | ||
- run: ls vcpkg_installed/*/bin/* | ||
name: List dependent DLLs | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.artifact-name }} | ||
path: gradleDir/outputs/ | ||
|
||
build-mac: | ||
name: "Build - macOS" | ||
runs-on: macOS-14 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: 'temurin' | ||
- run: brew install cmake ninja | ||
name: install ninja | ||
- uses: lukka/[email protected] | ||
with: | ||
vcpkgGitCommitId: '29b2ea2d4b6197e66ef346e62ccbba35b55b7de5' | ||
- run: vcpkg install --triplet=x64-osx | ||
name: install packages | ||
- run: ./gradlew publish -Pplatform=x64-osx | ||
name: Build with Gradle | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: macOS | ||
path: gradleDir/outputs/ | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- artifact-name: macOSArm | ||
build-options: -Pplatform=arm64-osx | ||
- artifact-name: macOS | ||
build-options: -Pplatform=x64-osx | ||
|
||
build-mac-arm: | ||
name: "Build - macOS (Arm)" | ||
name: "Build - ${{ matrix.artifact-name }}" | ||
runs-on: macOS-14 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -123,18 +101,18 @@ jobs: | |
- uses: lukka/[email protected] | ||
with: | ||
vcpkgGitCommitId: '29b2ea2d4b6197e66ef346e62ccbba35b55b7de5' | ||
- run: vcpkg install --triplet=arm64-osx | ||
name: install packages | ||
- run: ./gradlew publish -Pplatform=arm64-osx | ||
- run: ./gradlew publish ${{ matrix.build-options }} | ||
name: Build with Gradle | ||
- run: ls vcpkg_installed/*/lib/* | ||
name: List dependent shared libraries | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: macOSArm | ||
name: ${{ matrix.artifact-name }} | ||
path: gradleDir/outputs/ | ||
|
||
make_universal: | ||
name: Make Universal | ||
needs: [build-mac, build-mac-arm] | ||
needs: [build-mac] | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
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