Skip to content

Remove macOS staging directory requirement, and update to .NET 8.0 (#41) #82

Remove macOS staging directory requirement, and update to .NET 8.0 (#41)

Remove macOS staging directory requirement, and update to .NET 8.0 (#41) #82

Workflow file for this run

on: [ push ]
name: Continuous Integration
# Inspired by Lighthouse's CI
# https://github.com/LBPUnion/project-lighthouse/blob/main/.github/workflows/ci.yml
jobs:
test:
name: Build for ${{ matrix.os.prettyName }}
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ${{ matrix.os.platform }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os:
- { prettyName: Windows, platform: windows-latest, configurationName: Windows, extraArgs: "", buildPath: "Release/net8.0-windows/publish"}
- { prettyName: Linux, platform: ubuntu-latest, configurationName: Linux, extraArgs: "", buildPath: "Release/net8.0/publish"}
# - { prettyName: MacOS, platform: ubuntu-latest, configurationName: Release, platform: osx-x64 }
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install .NET 8.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: "8.0.x"
- name: Compile for ${{ matrix.os.prettyName }}
run: dotnet publish -c ${{ matrix.os.configurationName }} ${{ matrix.os.extraArgs }}
- uses: actions/upload-artifact@v2
with:
name: UnionPatcher-${{ matrix.os.prettyName }}
path: ${{ github.workspace }}/UnionPatcher.Gui.${{ matrix.os.prettyName }}/bin/${{ matrix.os.buildPath }}