UA: Add rough check for CodeLocals' removal from FUNC in 2024.8 #1093
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: Publish PR | |
on: | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
build_gui: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest] | |
configuration: [Debug] | |
bundled: [false] | |
singlefile: [true, false] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: | | |
dotnet build UndertaleModTool --no-restore | |
dotnet build UndertaleModToolUpdater --no-restore | |
- name: Publish ${{ matrix.os }} GUI | |
run: | | |
dotnet publish UndertaleModTool -c ${{ matrix.configuration }} -r win-x64 --self-contained ${{ matrix.bundled }} -p:PublishSingleFile=${{ matrix.singlefile }} --output ${{ matrix.os }} | |
dotnet publish UndertaleModToolUpdater -c ${{ matrix.configuration }} -r win-x64 --self-contained ${{ matrix.bundled }} -p:PublishSingleFile=false --output ${{ matrix.os }}/Updater | |
- name: Copy external files | |
run: | | |
cp ./README.md ./${{ matrix.os }} | |
cp ./SCRIPTS.md ./${{ matrix.os }} | |
cp ./LICENSE.txt ./${{ matrix.os }} | |
cp -r ./UndertaleModLib/GameSpecificData/ ./${{ matrix.os }}/GameSpecificData/ | |
- name: Upload ${{ matrix.os }} GUI | |
uses: actions/upload-artifact@v4 | |
with: | |
name: GUI-${{ matrix.os }}-isBundled-${{ matrix.bundled }}-isSingleFile-${{ matrix.singlefile }} | |
path: ${{ matrix.os }} | |
publish_cli: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
configuration: [Debug] | |
bundled: [false] | |
include: | |
- os: ubuntu-latest | |
rid: linux-x64 | |
- os: macOS-latest | |
rid: osx-x64 | |
- os: windows-latest | |
rid: win-x64 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
run: dotnet restore UndertaleModCli | |
- name: Build | |
run: dotnet build UndertaleModCli --no-restore | |
- name: Publish ${{ matrix.os }} CLI | |
run: dotnet publish UndertaleModCli -c ${{ matrix.configuration }} -r ${{ matrix.rid }} --self-contained ${{ matrix.bundled }} -p:PublishSingleFile=false --output CLI-${{ matrix.os }} | |
- name: Copy external files | |
run: | | |
cp ./README.md ./CLI-${{ matrix.os }}/ | |
cp ./LICENSE.txt ./CLI-${{ matrix.os }}/ | |
cp -r ./UndertaleModLib/GameSpecificData/ ./CLI-${{ matrix.os }}/GameSpecificData/ | |
- name: Upload ${{ matrix.os }} CLI | |
uses: actions/upload-artifact@v4 | |
with: | |
name: CLI-${{ matrix.os }}-isBundled-${{ matrix.bundled }} | |
path: CLI-${{ matrix.os }} |