Backport CI fixes.
This commit is contained in:
parent
128b7cbc3d
commit
982c99a9b1
2 changed files with 2 additions and 106 deletions
106
.github/workflows/ci-main.yml
vendored
106
.github/workflows/ci-main.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
|||
|
||||
name: Discord Notification
|
||||
|
||||
needs: [ubuntu-2004-scons-gcc-release-lto, ubuntu-2004-cmake-clang-debug, steam-runtime, mingw, flatpak, translations, macos-intel-debug, macos-intel-release, windows-release, windows-debug]
|
||||
needs: [ubuntu-2004-scons-gcc-release-lto, ubuntu-2004-cmake-clang-debug, steam-runtime, mingw, flatpak, translations, macos-intel-debug, macos-intel-release]
|
||||
if: always()
|
||||
|
||||
steps:
|
||||
|
@ -203,107 +203,3 @@ jobs:
|
|||
export CFG=Release
|
||||
export CACHE_DIR=~/build-cache
|
||||
./.github/workflows/ci-scripts/macos.sh
|
||||
|
||||
# in the case of needing to recompile the vcpkg-created Windows dependencies, increment the cache-name and key for both Release and Debug
|
||||
# this will create a brand new cache and recompile the vcpkg dependencies from scratch
|
||||
windows-debug:
|
||||
runs-on: windows-2019
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: "recursive"
|
||||
|
||||
- name: Cache object files
|
||||
id: windows-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
D:/a/wesnoth/vcpkg
|
||||
D:/a/wesnoth/wesnoth/vcpkg_installed
|
||||
key: win-cache-1_16-004
|
||||
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/setup-msbuild@v1.1.3
|
||||
|
||||
- name: Build vcpkg
|
||||
shell: cmd
|
||||
run: |
|
||||
git clone https://github.com/microsoft/vcpkg.git D:/a/wesnoth/vcpkg
|
||||
cd D:/a/wesnoth/vcpkg2
|
||||
D:/a/wesnoth/vcpkg/bootstrap-vcpkg.bat
|
||||
|
||||
- name: Setup cmake
|
||||
uses: jwlawson/actions-setup-cmake@v1.13
|
||||
with:
|
||||
cmake-version: '3.20.6'
|
||||
|
||||
- name: Use cmake
|
||||
run: |
|
||||
cmake --version
|
||||
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_GAME=true -DENABLE_SERVER=true -DENABLE_CAMPAIGN_SERVER=true -DENABLE_TESTS=true -DENABLE_MYSQL=false -DENABLE_NLS=false -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_TOOLCHAIN_FILE=D:/a/wesnoth/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_GENERATOR_PLATFORM=x64 -G "Visual Studio 16 2019" .
|
||||
|
||||
# delete buildtrees directory to free up space after cmake invokes vcpkg to build the dependencies
|
||||
# otherwise the job was failing when trying to write a .obj file
|
||||
# building vcpkg on the more spacious C drive didn't work since for some reason vcpkg decides to not create the pango/cairo pkgconfig files there
|
||||
- name: Build wesnoth
|
||||
shell: cmd
|
||||
run: |
|
||||
rmdir /s /q D:\a\wesnoth\vcpkg\buildtrees
|
||||
MSBuild.exe wesnoth.sln -p:Configuration=Debug
|
||||
|
||||
# seems to work, but with the debug SDL libraries it's so slow that it times out even with a limit of 300 seconds
|
||||
# - name: Run WML unit tests
|
||||
# shell: cmd
|
||||
# run: |
|
||||
# python run_wml_tests -v -g -c -t 300 -p D:/a/wesnoth/wesnoth/Debug/wesnoth.exe
|
||||
|
||||
windows-release:
|
||||
runs-on: windows-2019
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: "recursive"
|
||||
|
||||
- name: Cache object files
|
||||
id: windows-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
D:/a/wesnoth/vcpkg
|
||||
D:/a/wesnoth/wesnoth/vcpkg_installed
|
||||
key: win-cache-1_16-004
|
||||
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/setup-msbuild@v1.1.3
|
||||
|
||||
- name: Build vcpkg
|
||||
shell: cmd
|
||||
run: |
|
||||
git clone https://github.com/microsoft/vcpkg.git D:/a/wesnoth/vcpkg
|
||||
cd D:/a/wesnoth/vcpkg
|
||||
D:/a/wesnoth/vcpkg/bootstrap-vcpkg.bat
|
||||
|
||||
- name: Setup cmake
|
||||
uses: jwlawson/actions-setup-cmake@v1.13
|
||||
with:
|
||||
cmake-version: '3.20.6'
|
||||
|
||||
- name: Use cmake
|
||||
run: |
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_GAME=true -DENABLE_SERVER=true -DENABLE_CAMPAIGN_SERVER=true -DENABLE_TESTS=true -DENABLE_MYSQL=false -DENABLE_NLS=false -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_TOOLCHAIN_FILE=D:/a/wesnoth/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_GENERATOR_PLATFORM=x64 -G "Visual Studio 16 2019" .
|
||||
|
||||
# delete buildtrees directory to free up space after cmake invokes vcpkg to build the dependencies
|
||||
# otherwise the job was failing when trying to write a .obj file
|
||||
# building vcpkg on the more spacious C drive didn't work since for some reason vcpkg decides to not create the pango/cairo pkgconfig files there
|
||||
- name: Build wesnoth
|
||||
shell: cmd
|
||||
run: |
|
||||
rmdir /s /q D:\a\wesnoth\vcpkg\buildtrees
|
||||
MSBuild.exe wesnoth.sln -p:Configuration=Release
|
||||
|
||||
- name: Run WML unit tests
|
||||
shell: cmd
|
||||
run: |
|
||||
python run_wml_tests -v -g -c -t 20 -p D:/a/wesnoth/wesnoth/Release/wesnoth.exe
|
||||
|
|
2
.github/workflows/labeler.yml
vendored
2
.github/workflows/labeler.yml
vendored
|
@ -9,4 +9,4 @@ jobs:
|
|||
- uses: actions/labeler@main
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
sync-labels: ""
|
||||
sync-labels: "false"
|
||||
|
|
Loading…
Add table
Reference in a new issue