forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA
- Loading branch information
Showing
124 changed files
with
1,857 additions
and
1,092 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,5 @@ | ||
set(VCPKG_TARGET_ARCHITECTURE x64) | ||
set(VCPKG_CRT_LINKAGE static) | ||
set(VCPKG_LIBRARY_LINKAGE static) | ||
|
||
set(VCPKG_BUILD_TYPE release) |
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,5 @@ | ||
set(VCPKG_TARGET_ARCHITECTURE x64) | ||
set(VCPKG_CRT_LINKAGE dynamic) | ||
set(VCPKG_LIBRARY_LINKAGE dynamic) | ||
|
||
set(VCPKG_BUILD_TYPE release) |
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,91 @@ | ||
name: Cataclysm Windows build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'android/**' | ||
- 'build-data/osx/**' | ||
- 'doc/**' | ||
- 'doxygen_doc/**' | ||
- 'lgtm/**' | ||
- 'msvc-object_creator/**' | ||
- 'tools/**' | ||
- 'utilities/**' | ||
pull_request: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'android/**' | ||
- 'build-data/osx/**' | ||
- 'doc/**' | ||
- 'doxygen_doc/**' | ||
- 'lgtm/**' | ||
- 'msvc-object_creator/**' | ||
- 'tools/**' | ||
- 'utilities/**' | ||
|
||
env: | ||
# 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 | ||
# Have to use github.workspace because runner namespace isn't available yet. | ||
VCPKG_OVERLAY_TRIPLETS: ${{ github.workspace }}\.github\vcpkg_triplets | ||
|
||
jobs: | ||
build_catatclysm: | ||
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] | ||
|
||
- name: Restore artifacts, or run vcpkg, build and cache artifacts | ||
uses: lukka/run-vcpkg@main | ||
id: runvcpkg | ||
with: | ||
additionalCachedPaths: '${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed' | ||
appendedCacheKey: ${{ hashFiles( 'msvc-full-features/vcpkg.json', '.github/vcpkg_triplets/**' ) }} | ||
setupOnly: true | ||
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' | ||
# 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. Caching happens as a post-action which runs at the end of | ||
# the whole workflow, after vcpkg install happens during msbuild run. | ||
vcpkgGitCommitId: '49b67d9cb856424ff69f10e7721aec5299624268' | ||
|
||
- name: Integrate vcpkg | ||
run: | | ||
vcpkg integrate install | ||
- name: Build | ||
run: | | ||
cd msvc-full-features | ||
msbuild -m -p:Configuration=Release -p:Platform=x64 -target:Cataclysm-vcpkg-static Cataclysm-vcpkg-static.sln | ||
- name: Dump logs if build failed | ||
if: failure() | ||
run: | | ||
echo ================================================= | ||
Get-ChildItem "${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed" -Recurse | ||
echo ================================================= | ||
Get-ChildItem "${{ runner.workspace }}/b/vcpkg/buildtrees" | | ||
Foreach-Object { | ||
Get-ChildItem $_.FullName -Filter *.log | | ||
Foreach-Object { | ||
echo ================================================= | ||
echo $_.FullName | ||
echo ================================================= | ||
type $_.FullName | ||
} | ||
} | ||
- name: Clean | ||
run: | | ||
Get-ChildItem -Path Cataclysm-lib-vcpkg-static-Release-x64.* | Foreach-Object { rm $_.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: ObjectCreator Windows build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'android/**' | ||
- 'build-data/osx/**' | ||
- 'doc/**' | ||
- 'doxygen_doc/**' | ||
- 'lgtm/**' | ||
- 'tools/**' | ||
- 'utilities/**' | ||
pull_request: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'android/**' | ||
- 'build-data/osx/**' | ||
- 'doc/**' | ||
- 'doxygen_doc/**' | ||
- 'lgtm/**' | ||
- 'tools/**' | ||
- 'utilities/**' | ||
|
||
env: | ||
# 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 | ||
# Have to use github.workspace because runner namespace isn't available yet. | ||
VCPKG_OVERLAY_TRIPLETS: ${{ github.workspace }}\.github\vcpkg_triplets | ||
|
||
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] | ||
|
||
- name: Restore artifacts, or run vcpkg, build and cache artifacts | ||
uses: lukka/run-vcpkg@main | ||
id: runvcpkg | ||
with: | ||
additionalCachedPaths: '${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed;${{ runner.workspace }}/Cataclysm-DDA/msvc-object_creator/vcpkg_installed' | ||
appendedCacheKey: ${{ hashFiles( '$msvc-full-features/vcpkg.json', 'msvc-object_creator/vcpkg.json', '.github/vcpkg_triplets/**' ) }} | ||
setupOnly: true | ||
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' | ||
# 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. Caching happens as a post-action which runs at the end of | ||
# the whole workflow, after vcpkg install happens during msbuild run. | ||
vcpkgGitCommitId: '49b67d9cb856424ff69f10e7721aec5299624268' | ||
|
||
- name: Integrate vcpkg | ||
run: | | ||
vcpkg integrate install | ||
- name: Build | ||
run: | | ||
cd msvc-object_creator | ||
msbuild -m -p:Configuration=Release -p:Platform=x64 ObjectCreator-vcpkg-static.sln | ||
- name: Dump logs if build failed | ||
if: failure() | ||
run: | | ||
echo ================================================= | ||
Get-ChildItem "${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed" -Recurse | ||
echo ================================================= | ||
Get-ChildItem "${{ runner.workspace }}/Cataclysm-DDA/msvc-object_creator/vcpkg_installed" -Recurse | ||
echo ================================================= | ||
Get-ChildItem "${{ runner.workspace }}/b/vcpkg/buildtrees" | | ||
Foreach-Object { | ||
Get-ChildItem $_.FullName -Filter *.log | | ||
Foreach-Object { | ||
echo ================================================= | ||
echo $_.FullName | ||
echo ================================================= | ||
type $_.FullName | ||
} | ||
} | ||
- name: Clean | ||
run: | | ||
Get-ChildItem -Path Cataclysm-lib-vcpkg-static-Release-x64.*,ObjectCreator-vcpkg-static-Release-x64.* | Foreach-Object { rm $_.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
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.