Skip to content

Some fixes

Some fixes #10

Workflow file for this run

name: Release
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# todo: calculate version automatically
jobs:
build:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
include:
- os: macos-latest
runtime: osx-arm64
artifact: xb360
- os: windows-latest
runtime: win-x64
artifact: xb360.exe
- os: ubuntu-latest
runtime: linux-x64
artifact: xb360
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
- name: Publish binary
run: dotnet publish ./xb360.csproj -c Release -r ${{ matrix.runtime }} -o ./${{ matrix.runtime }}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.runtime }} # todo: include version number
path: ./${{ matrix.runtime }}/${{ matrix.artifact }}