Bump jidicula/clang-format-action from 4.13.0 to 4.14.0 #16
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: Build, test and publish | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build_test_and_publish: | |
name: Build, test and publish local | |
if: github.repository_owner == 'ParadoxGameConverters' | |
runs-on: [self-hosted, windows] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: "Get previous tag" | |
if: ${{ github.event_name == 'push' }} | |
id: previoustag | |
uses: "WyriHaximus/github-action-get-previous-tag@v1" | |
- name: "Build degrader" | |
run: | | |
cd "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\" | |
.\MSBuild.exe -m -p:Configuration=Release $Env:GITHUB_WORKSPACE\MapDegrader.sln -target:MapDegrader | |
- name: "Build tests" | |
run: | | |
cd "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\" | |
.\MSBuild.exe -m -p:Configuration=Release $Env:GITHUB_WORKSPACE\MapDegrader.sln -target:MapDegraderTests | |
- name: "Run tests" | |
run: | | |
cd $Env:GITHUB_WORKSPACE\MapDegraderTests\Release\ | |
.\MapDegraderTests.exe | |
- name: "Prepare release" | |
if: ${{ github.event_name == 'push' }} | |
run: | | |
cd "C:\Program Files\7-Zip\" | |
.\7z.exe a $Env:GITHUB_WORKSPACE\MapDegrader.zip $Env:GITHUB_WORKSPACE\Release\* | |
- name: "Upload binaries to release" | |
if: ${{ github.event_name == 'push' }} | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.previoustag.outputs.tag }} | |
allowUpdates: true | |
omitBodyDuringUpdate: true | |
omitNameDuringUpdate: true | |
artifacts: MapDegrader.zip | |
token: ${{ secrets.API_TOKEN_GITHUB }} | |
- name: "Cleanup" | |
if: always() | |
run: | | |
Get-ChildItem -Path $Env:GITHUB_WORKSPACE -Recurse -Force | Remove-Item -force -recurse | |
build_test: | |
name: Build and test foreign | |
if: github.repository_owner != 'ParadoxGameConverters' | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: "Build converter" | |
run: | | |
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\" | |
.\MSBuild.exe -m -p:Configuration=Release $Env:GITHUB_WORKSPACE\MapDegrader.sln -target:MapDegrader | |
- name: "Build tests" | |
run: | | |
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\" | |
.\MSBuild.exe -m -p:Configuration=Release $Env:GITHUB_WORKSPACE\MapDegrader.sln -target:MapDegraderTests | |
- name: "Run tests" | |
run: | | |
cd $Env:GITHUB_WORKSPACE\MapDegraderTests\Release\ | |
.\MapDegraderTests.exe |