Bump Roslynator.Analyzers from 4.6.2 to 4.12.0 #702
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 Packages | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'master' | |
- 'dev/rewrite' | |
tags: | |
- 'v?[0-9]+.[0-9]+.[0-9]+' | |
pull_request: | |
branches: | |
- 'main' | |
- 'master' | |
- 'dev/rewrite' | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
build-type: | |
- Debug | |
- Release | |
target-os: | |
- ubuntu-latest | |
- windows-latest | |
# - osx-latest # Requires dotnet 8 and later | |
target-arch: | |
- x64 | |
# - arm64 # /usr/bin/ld: unrecognised emulation mode: aarch64linux | |
dotnet-version: | |
- '7.0' | |
self-contained: | |
- true | |
- false | |
runs-on: ${{ matrix.target-os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Install AOT Toolchain | |
if: matrix.target-os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends clang zlib1g-dev | |
- name: Build Project | |
run: | | |
dotnet publish --configuration=${{ matrix.build-type }} --arch=${{ matrix.target-arch }} --self-contained=${{ matrix.self-contained }} | |
- name: List result on Windows | |
if: matrix.target-os == 'windows-latest' | |
run: ls -l bin\${{ matrix.build-type }}\net${{ matrix.dotnet-version }}\win-${{ matrix.target-arch }}\publish | |
- name: List result on Linux | |
if: matrix.target-os == 'ubuntu-latest' | |
run: ls -l bin/${{ matrix.build-type }}/net${{ matrix.dotnet-version }}/linux-${{ matrix.target-arch }}/publish | |
- name: Upload Artifact on Windows | |
if: matrix.target-os == 'windows-latest' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: MuseDashModToolsUI-${{ matrix.build-type }}-Windows-net${{ matrix.dotnet-version }}-${{ matrix.target-arch }}-${{ matrix.self-contained && 'self-contained' || 'runtime-required' }} | |
path: bin/${{ matrix.build-type }}/net${{ matrix.dotnet-version }}/win-${{ matrix.target-arch }}/publish/* | |
- name: Upload Artifact on Linux | |
if: matrix.target-os == 'ubuntu-latest' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: MuseDashModToolsUI-${{ matrix.build-type }}-Linux-net${{ matrix.dotnet-version }}-${{ matrix.target-arch }}-${{ matrix.self-contained && 'self-contained' || 'runtime-required' }} | |
path: bin/${{ matrix.build-type }}/net${{ matrix.dotnet-version }}/linux-${{ matrix.target-arch }}/publish/* | |