-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[godot] Support "spine-runtimes" feature with custom module build (#327)
* [godot] try custom module with spine-godot * [godot] build custom modules with ccflags, linkflags * [godot] relocate portfile messages * [godot] fix linker flag in non-windows * [godot] disable spine-runtimes in Linux * [godot] prepend PATH to pkg-config * test: godot[spine-runtimes] in osx, godot in linux * ci: new job matrix, host-tools * Update build.yml
- Loading branch information
Showing
8 changed files
with
300 additions
and
141 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 |
---|---|---|
|
@@ -55,10 +55,7 @@ jobs: | |
if: runner.os == 'Linux' | ||
run: | | ||
# sudo apt update -y | ||
sudo apt install -y pkg-config nasm \ | ||
libnuma-dev libopenmpi-dev \ | ||
libx11-dev libxi-dev libxext-dev libx11-xcb-dev \ | ||
libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa | ||
sudo apt install -y $(cat test/packages-apt.txt) | ||
- name: "Run homebrew" | ||
if: runner.os == 'macOS' | ||
|
@@ -82,7 +79,7 @@ jobs: | |
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force | ||
shell: pwsh | ||
|
||
- name: "Run vcpkg(${{matrix.triplet}})" | ||
- name: "Run vcpkg(${{ matrix.triplet }})" | ||
if: runner.os == 'Linux' || runner.os == 'macOS' | ||
run: | | ||
vcpkg install --keep-going \ | ||
|
@@ -95,9 +92,9 @@ jobs: | |
VCPKG_BINARY_SOURCES: "${{ secrets.VCPKG_BINARY_SOURCES }}" | ||
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports" | ||
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets" | ||
VCPKG_DEFAULT_TRIPLET: "${{matrix.triplet}}" | ||
VCPKG_DEFAULT_TRIPLET: "${{ matrix.triplet }}" | ||
|
||
- name: "Run vcpkg(${{matrix.triplet}})" | ||
- name: "Run vcpkg(${{ matrix.triplet }})" | ||
if: runner.os == 'Windows' | ||
run: | | ||
vcpkg install --keep-going ` | ||
|
@@ -110,7 +107,58 @@ jobs: | |
VCPKG_BINARY_SOURCES: "${{ secrets.VCPKG_BINARY_SOURCES }}" | ||
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports" | ||
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets" | ||
VCPKG_DEFAULT_TRIPLET: "${{matrix.triplet}}" | ||
VCPKG_DEFAULT_TRIPLET: "${{ matrix.triplet }}" | ||
|
||
host-tools: | ||
name: "Host Tools" | ||
runs-on: ${{ matrix.runner_image }} # https://github.com/actions/runner-images | ||
strategy: | ||
matrix: | ||
include: | ||
- runner_image: "ubuntu-latest" | ||
- runner_image: "macos-13" | ||
# - runner_image: "windows-latest" | ||
fail-fast: false | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
- uses: lukka/[email protected] | ||
with: | ||
vcpkgDirectory: "${{ runner.temp }}/vcpkg" | ||
vcpkgGitCommitId: "6f29f12e82a8293156836ad81cc9bf5af41fe836" # 2025.01.13 | ||
runVcpkgInstall: false | ||
|
||
- name: "Run apt" | ||
if: runner.os == 'Linux' | ||
run: | | ||
# sudo apt update -y | ||
sudo apt install -y $(cat test/packages-apt.txt) | ||
- name: "Run homebrew" | ||
if: runner.os == 'macOS' | ||
run: brew install autoconf automake libtool | ||
|
||
- uses: microsoft/setup-msbuild@v2 | ||
if: runner.os == 'Windows' | ||
with: | ||
msbuild-architecture: x64 | ||
|
||
- uses: lukka/[email protected] | ||
with: | ||
vcpkgDirectory: "${{ runner.temp }}/vcpkg" | ||
vcpkgGitCommitId: "6f29f12e82a8293156836ad81cc9bf5af41fe836" # 2025.01.13 | ||
runVcpkgInstall: true | ||
runVcpkgFormatString: '[`install`, `--x-feature`, `host-tools`, `--clean-after-build`]' | ||
vcpkgJsonGlob: "test/vcpkg.json" | ||
vcpkgConfigurationJsonGlob: "test/vcpkg-configuration.json" | ||
env: | ||
VCPKG_BINARY_SOURCES: "${{ secrets.VCPKG_BINARY_SOURCES }}" | ||
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports" | ||
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets" | ||
|
||
android: | ||
name: "Android" | ||
|
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
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
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
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
Oops, something went wrong.