CHG gradle version #703
Workflow file for this run
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
name: Nightly build Windows | |
on: | |
push: | |
tags: | |
- 'Nightly' | |
jobs: | |
set-revision: | |
name: set revision | |
runs-on: windows-2022 | |
outputs: | |
output1: ${{ steps.out1.outputs.revision }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: detect revision | |
run: | | |
$text = gc "$Env:GITHUB_WORKSPACE\src\simutrans\revision.h" | |
echo $text | |
$revision=$text.Substring(17,5) | |
echo "revision=$revision" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append | |
shell: pwsh | |
- id: out1 | |
run: echo "revision=${{ env.revision }}" | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf-8 -Append | |
makeobj_windows-nightly: | |
name: makeobj | |
runs-on: windows-2022 | |
needs: [set-revision] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: compile makeobj | |
run: | | |
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\" | |
.\MSBuild.exe $Env:GITHUB_WORKSPACE\src\makeobj\Makeobj.vcxproj /p:Configuration=Release /p:Platform=x86 | |
cd $Env:GITHUB_WORKSPACE\ | |
- name: zip result | |
run: Compress-Archive build\makeobj\Makeobj.exe build\makeobj\makeobj_windows-nightly.zip | |
shell: pwsh | |
- name: Update binaries of Nightly Release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: build/makeobj/makeobj_windows-nightly.zip | |
asset_name: makeobj_windows-nightly_r${{ needs.set-revision.outputs.output1 }}.zip | |
tag: Nightly | |
overwrite: true | |
windows_GDI-nightly: | |
name: Simutrans Windows GDI x86 | |
runs-on: windows-2022 | |
needs: [set-revision] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: compile simutrans | |
run: | | |
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\" | |
.\MSBuild.exe $Env:GITHUB_WORKSPACE\Simutrans-GDI.vcxproj /p:Configuration=Release /p:Platform=x86 | |
cd $Env:GITHUB_WORKSPACE\ | |
copy build\GDI\Simutrans_GDI.exe simutrans\Simutrans.exe | |
- name: load translate files | |
run: | | |
Invoke-WebRequest -Uri https://simutrans-germany.com/translator_page/base_text/download.php | |
Invoke-WebRequest -Uri https://simutrans-germany.com/translator_page/base_text/data/language_pack-Base+texts.zip -OutFile language_pack.zip | |
- name: extract translate files | |
run: Expand-Archive language_pack.zip simutrans/text -Force | |
shell: pwsh | |
- name: delete ce translate files | |
run: del simutrans/text/ce.tab | |
shell: pwsh | |
- name: zip result | |
run: Compress-Archive simutrans simuwin_GDI_x86-nightly.zip | |
shell: pwsh | |
- name: Update binaries of Nightly Release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: simuwin_GDI_x86-nightly.zip | |
asset_name: simuwin_GDI_x86-nightly_r${{ needs.set-revision.outputs.output1 }}.zip | |
tag: Nightly | |
overwrite: true | |
windows_GDI_x64-nightly: | |
name: Simutrans Windows GDI x64 | |
runs-on: windows-2022 | |
needs: [set-revision] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: compile simutrans | |
run: | | |
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\" | |
.\MSBuild.exe $Env:GITHUB_WORKSPACE\Simutrans-GDI.vcxproj /p:Configuration=Release /p:Platform=x64 /p:TargetName=Simutrans_GDI_x64 | |
cd $Env:GITHUB_WORKSPACE\ | |
copy build\GDI\Simutrans_GDI_x64.exe simutrans\Simutrans.exe | |
- name: load translate files | |
run: | | |
Invoke-WebRequest -Uri https://simutrans-germany.com/translator_page/base_text/download.php | |
Invoke-WebRequest -Uri https://simutrans-germany.com/translator_page/base_text/data/language_pack-Base+texts.zip -OutFile language_pack.zip | |
- name: extract translate files | |
run: Expand-Archive language_pack.zip simutrans/text -Force | |
shell: pwsh | |
- name: delete ce translate files | |
run: del simutrans/text/ce.tab | |
shell: pwsh | |
- name: zip result | |
run: Compress-Archive simutrans simuwin_GDI_x64-nightly.zip | |
shell: pwsh | |
- name: Update binaries of Nightly Release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: simuwin_GDI_x64-nightly.zip | |
asset_name: simuwin_GDI_x64-nightly_r${{ needs.set-revision.outputs.output1 }}.zip | |
tag: Nightly | |
overwrite: true | |
windows_SDL2-nightly: | |
name: Simutrans Windows SDL2 | |
runs-on: windows-2022 | |
needs: [set-revision] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: compile simutrans | |
run: | | |
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\" | |
.\MSBuild.exe $Env:GITHUB_WORKSPACE\Simutrans-SDL2.vcxproj /p:Configuration=Release /p:Platform=x64 /p:TargetName=Simutrans_SDL2_x64 | |
cd $Env:GITHUB_WORKSPACE\ | |
copy build\SDL2\Simutrans_SDL2_x64.exe simutrans\Simutrans.exe | |
- name: load translate files | |
run: | | |
Invoke-WebRequest -Uri https://simutrans-germany.com/translator_page/base_text/download.php | |
Invoke-WebRequest -Uri https://simutrans-germany.com/translator_page/base_text/data/language_pack-Base+texts.zip -OutFile language_pack.zip | |
- name: extract translate files | |
run: Expand-Archive language_pack.zip src/simutrans/simutrans/text -Force | |
shell: pwsh | |
- name: delete ce translate files | |
run: del src/simutrans/simutrans/text/ce.tab | |
shell: pwsh | |
- name: zip result | |
run: Compress-Archive simutrans simuwin_SDL2_x64-nightly.zip | |
shell: pwsh | |
- name: Update binaries of Nightly Release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: simuwin_SDL2_x64-nightly.zip | |
asset_name: simuwin_SDL2_x64-nightly_r${{ needs.set-revision.outputs.output1 }}.zip | |
tag: Nightly | |
overwrite: true | |
windows_server-nightly: | |
name: Simutrans Windows Server | |
runs-on: windows-2022 | |
needs: [set-revision] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: compile simutrans server | |
run: | | |
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\" | |
.\MSBuild.exe $Env:GITHUB_WORKSPACE\Simutrans-Server.vcxproj /p:Configuration=Release /p:Platform=x86 | |
cd $Env:GITHUB_WORKSPACE\ | |
copy build\Server\Simutrans_Server.exe simutrans\Simutrans-Server.exe | |
- name: load translate files | |
run: | | |
Invoke-WebRequest -Uri https://simutrans-germany.com/translator_page/base_text/download.php | |
Invoke-WebRequest -Uri https://simutrans-germany.com/translator_page/base_text/data/language_pack-Base+texts.zip -OutFile language_pack.zip | |
- name: extract translate files | |
run: Expand-Archive language_pack.zip simutrans/text -Force | |
shell: pwsh | |
- name: delete ce translate files | |
run: del simutrans/text/ce.tab | |
shell: pwsh | |
- name: zip result | |
run: Compress-Archive simutrans simuwin_server_x86-nightly.zip | |
shell: pwsh | |
- name: Update binaries of Nightly Release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: simuwin_server_x86-nightly.zip | |
asset_name: simuwin_server_x86-nightly_r${{ needs.set-revision.outputs.output1 }}.zip | |
tag: Nightly | |
overwrite: true | |
windows_nettool: | |
name: Simutrans Nettool | |
runs-on: windows-2022 | |
needs: [set-revision] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: compile simutrans nettool | |
run: | | |
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\" | |
.\MSBuild.exe $Env:GITHUB_WORKSPACE\src\nettool\Nettool.vcxproj /p:Configuration=release /p:Platform=x86 | |
cd $Env:GITHUB_WORKSPACE\ | |
- name: zip result | |
run: Compress-Archive build\nettool\Nettool.exe build\nettool\nettool_windows-nightly.zip | |
shell: pwsh | |
- name: Update binaries of Nightly Release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: build/nettool/nettool_windows-nightly.zip | |
asset_name: nettool_windows-nightly_r${{ needs.set-revision.outputs.output1 }}.zip | |
tag: Nightly | |
overwrite: true |