Build GTAdhocToolchain #39
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 GTAdhocToolchain | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: '6.0.x' | |
include-prerelease: true | |
- name: Publish GTAdhocToolchain.CLI for Windows (framework dependent) | |
run: dotnet publish --configuration Release | |
working-directory: ./GTAdhocToolchain.CLI | |
continue-on-error: true | |
- name: Publish GTAdhocToolchain.CLI for Windows (self contained) | |
run: dotnet publish --configuration Release -r win-x86 -p:PublishSingleFile=true -p:PublishTrimmed=true | |
working-directory: ./GTAdhocToolchain.CLI | |
continue-on-error: true | |
- name: Publish GTAdhocToolchain.CLI for Linux (self contained) | |
run: dotnet publish --configuration Release -r linux-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true | |
working-directory: ./GTAdhocToolchain.CLI | |
continue-on-error: true | |
- name: Publish GTAdhocToolchain.CLI for Mac OSX (self contained) | |
run: dotnet publish --configuration Release -r osx-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true | |
working-directory: ./GTAdhocToolchain.CLI | |
continue-on-error: true | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: GTAdhocToolchain-win-framework | |
path: | | |
GTAdhocToolchain.CLI/bin/Release/net6.0/publish/* | |
!GTAdhocToolchain.CLI/bin/Release/net6.0/publish/*.pdb | |
if-no-files-found: error | |
continue-on-error: true | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: GTAdhocToolchain-win-x86 | |
path: | | |
GTAdhocToolchain.CLI/bin/Release/net6.0/win-x86/publish/* | |
!GTAdhocToolchain.CLI/bin/Release/net6.0/win-x86/publish/*.pdb | |
if-no-files-found: error | |
continue-on-error: true | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: GTAdhocToolchain-linux-x64 | |
path: | | |
GTAdhocToolchain.CLI/bin/Release/net6.0/linux-x64/publish/* | |
!GTAdhocToolchain.CLI/bin/Release/net6.0/linux-x64/publish/*.pdb | |
if-no-files-found: error | |
continue-on-error: true | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: GTAdhocToolchain-osx-x64 | |
path: | | |
GTAdhocToolchain.CLI/bin/Release/net6.0/osx-x64/publish/* | |
!GTAdhocToolchain.CLI/bin/Release/net6.0/osx-x64/publish/*.pdb | |
if-no-files-found: error | |
continue-on-error: true |