Skip to content

Update to .NET 8.0 and refactor tests #51

Update to .NET 8.0 and refactor tests

Update to .NET 8.0 and refactor tests #51

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
name: Build OpenLauncher
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu
rid: linux-x64
- os: windows
rid: win-x64
runs-on: ${{ matrix.os }}-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Test
run: dotnet test --no-restore
- name: Publish
working-directory: src/openlauncher
run: dotnet publish -c Release -r ${{ matrix.rid }} --self-contained
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: "OpenLauncher-${{ matrix.rid }}"
path: src/openlauncher/bin/Release/net8.0/${{ matrix.rid }}/publish/**/*
- name: Create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: |
src/openlauncher/bin/Release/net8.0/${{ matrix.rid }}/publish/openlauncher
src/openlauncher/bin/Release/net8.0/${{ matrix.rid }}/publish/openlauncher.exe