FIX: (THLeaderH) crossings upgrade in ways are upgraded #27
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 workflow sets up and runs MSBuild and VSTest | |
# to build and test a Visual Studio solution. | |
name: Nightly Built Windows64 SDL2 | |
on: [push] | |
jobs: | |
winSDL2-64: | |
runs-on: windows-latest | |
steps: | |
- name: Setup MSBuild and add to PATH | |
uses: microsoft/[email protected] | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
id: checkout_code | |
- name: Prepares NSIS plugins | |
shell: pwsh | |
run: ./.github/prepare-nsis.ps1 | |
- name: Create nsis installer | |
uses: joncloud/makensis-action@v4 | |
with: | |
arguments: "/V3" | |
additional-plugin-paths: NSIS_Plugins/Plugins | |
script-file: src/Windows/nsis/onlineupgrade.nsi | |
- name: Run MSBuild | |
shell: pwsh | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: | | |
git clone --depth 1 https://github.com/Microsoft/vcpkg.git | |
cd vcpkg | |
./bootstrap-vcpkg.bat | |
./vcpkg integrate install | |
cd .. | |
msbuild /m .\Simutrans-SDL2.vcxproj -p:Configuration=Release /p:platform=x64 | |
- name: Build zipfile | |
shell: pwsh | |
run: | | |
move-item "build/SDL2/Simutrans SDL2 Nightly.exe" "simutrans/simutrans.exe" | |
tools/get_lang_files.ps1 | |
Compress-Archive -Path simutrans -DestinationPath "simuwin64-SDL2-nightly.zip" | |
dir | |
- name: Update binaries of Nightly Release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ./simuwin64-SDL2-nightly.zip | |
asset_name: simuwin64-SDL2-nightly.zip | |
tag: Nightly | |
overwrite: true |