Switch-Gift-Data-Manager/.github/workflows/Mac.yml
Manu 1f23818043
Some checks failed
Linux / build (Release) (push) Has been cancelled
MacOS / build (Release) (push) Has been cancelled
Windows / build (Release) (push) Has been cancelled
Update workflows
2025-02-17 21:59:03 +01:00

55 lines
1.3 KiB
YAML

name: MacOS
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: macos-latest
env:
Solution_Name: SwitchGiftDataManager.sln
Project_Path: SwitchGiftDataManager.CommandLine/SwitchGiftDataManager.CommandLine.csproj
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Cache NuGet packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Install dependencies
run: dotnet restore ${{ env.Project_Path }}
- name: Build
run: dotnet build ${{ env.Project_Path }} --configuration ${{ matrix.configuration }} --no-restore
- name: Test
run: dotnet test ${{ env.Project_Path }} --no-restore --verbosity normal
- name: Upload MacOS CommandLine build artifacts
uses: actions/upload-artifact@v4
with:
name: MacOS.CommandLine.App
path: SwitchGiftDataManager.CommandLine/bin