-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Try to fix @JBTW's windows CI for object creator
- Loading branch information
Showing
9 changed files
with
131 additions
and
22 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 |
---|---|---|
@@ -0,0 +1,113 @@ | ||
name: ObjectCreator Windows build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- 0.F-dev | ||
paths-ignore: | ||
- 'android/**' | ||
- 'build-data/osx/**' | ||
- 'doc/**' | ||
- 'doxygen_doc/**' | ||
- 'lgtm/**' | ||
- 'tools/**' | ||
- 'utilities/**' | ||
pull_request: | ||
branches: | ||
- master | ||
- 0.F-dev | ||
paths-ignore: | ||
- 'android/**' | ||
- 'build-data/osx/**' | ||
- 'doc/**' | ||
- 'doxygen_doc/**' | ||
- 'lgtm/**' | ||
- 'tools/**' | ||
- 'utilities/**' | ||
|
||
jobs: | ||
build_object_creator: | ||
name: Build | ||
runs-on: windows-2019 | ||
|
||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
# We have to use at least this version of vcpkg to include fixes for yasm-tool's | ||
# availability only as an x86 host tool. Keep it in sync with the builtin-baseline | ||
# field in vcpkg.json | ||
- name: Restore artifacts, or run vcpkg, build and cache artifacts | ||
uses: lukka/run-vcpkg@main | ||
id: runvcpkg | ||
with: | ||
additionalCachedPaths: '${{ runner.workspace }}/Cataclysm-DDA/msvc-object_creator/vcpkg_installed' | ||
vcpkgArguments: '--x-manifest-root=${{ runner.workspace }}/Cataclysm-DDA/msvc-object_creator/ --x-install-root=${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed/' | ||
vcpkgTriplet: 'x64-windows-static' | ||
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' | ||
vcpkgGitCommitId: '49b67d9cb856424ff69f10e7721aec5299624268' | ||
|
||
# There's not enough disk space to build both release and debug versions of | ||
# our dependencies, so we hack the triplet file to build only release | ||
# versions | ||
- name: Disable debug builds for vcpkg | ||
run: | | ||
Get-ChildItem "${{ runner.workspace }}/b/vcpkg/triplets" -File | | ||
Foreach-Object { | ||
Add-Content $_.FullName "set(VCPKG_BUILD_TYPE release)`n" | ||
} | ||
- name: Integrate vcpkg | ||
run: | | ||
vcpkg integrate install | ||
- name: Dump vcpkg logs if vcpkg build failed | ||
if: failure() | ||
run: | | ||
Get-ChildItem "${{ runner.workspace }}/b/vcpkg/buildtrees" | | ||
Foreach-Object { | ||
Get-ChildItem $_.FullName -Filter *.log | | ||
Foreach-Object { | ||
echo ================================================= | ||
echo $_.FullName | ||
echo ================================================= | ||
type $_.FullName | ||
} | ||
} | ||
- name: Check for yasm | ||
run: | | ||
echo ================================================= | ||
Get-ChildItem "${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed" | ||
echo ================================================= | ||
- name: Build | ||
run: | | ||
cd msvc-object_creator | ||
msbuild -m -p:Configuration=Release -p:Platform=x64 ObjectCreator-vcpkg-static.sln | ||
- name: Dump vcpkg logs if vcpkg build failed | ||
if: failure() | ||
run: | | ||
echo ================================================= | ||
Get-ChildItem "${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed" -Recurse | ||
echo ================================================= | ||
echo "${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed/x64-windows-static/share/yasm-tool-helper/yasm-tool-helper.cmake" | ||
echo ================================================= | ||
type "${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed/x64-windows-static/share/yasm-tool-helper/yasm-tool-helper.cmake" | ||
Get-ChildItem "${{ runner.workspace }}/b/vcpkg/buildtrees" | | ||
Foreach-Object { | ||
Get-ChildItem $_.FullName -Filter *.log | | ||
Foreach-Object { | ||
echo ================================================= | ||
echo $_.FullName | ||
echo ================================================= | ||
type $_.FullName | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,6 @@ | |
}, | ||
"sdl2-ttf", | ||
"gettext" | ||
] | ||
], | ||
"builtin-baseline": "49b67d9cb856424ff69f10e7721aec5299624268" | ||
} |
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