Bump actions/upload-artifact from 4.4.0 to 4.4.2 (#89) #216
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 | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- 'README.md' | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- 'README.md' | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-13, windows-latest] | |
configuration: [Release] | |
include: | |
- os: ubuntu-latest | |
COMMAND: AM2RLauncher.Gtk -p:PublishSingleFile=true -p:DebugType=embedded -r ubuntu.18.04-x64 --no-self-contained | |
ARTIFACT: AM2RLauncher/AM2RLauncher.Gtk/bin/Release/net6.0/ubuntu.18.04-x64/publish/ | |
- os: macos-13 | |
COMMAND: AM2RLauncher.Mac -o builds/macOS-latest | |
ARTIFACT: AM2RLauncher/builds/macOS-latest | |
- os: windows-latest | |
COMMAND: AM2RLauncher.Wpf -r win-x86 -o builds\win86 | |
ARTIFACT: AM2RLauncher\AM2RLauncher.Wpf\bin\Release\net48\win-x86\ | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x.x | |
- name: Install Mac workload | |
working-directory: ./AM2RLauncher | |
run: dotnet workload install macos && dotnet workload restore | |
- name: Switch XCode | |
run: sudo xcode-select -switch /Applications/Xcode_15.0.1.app/Contents/Developer | |
if: matrix.os == 'macos-13' | |
- name: Restore dependencies | |
working-directory: ./AM2RLauncher | |
run: dotnet restore | |
- name: Build | |
working-directory: ./AM2RLauncher | |
run: dotnet publish ${{ matrix.COMMAND }} -c "${{ matrix.configuration }}" |