mirror of
https://github.com/Manu098vm/Switch-Gift-Data-Manager.git
synced 2026-03-21 17:34:31 -05:00
55 lines
1.3 KiB
YAML
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 |