Merge pull request #515 from LykosAI/main #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
concurrency: | |
group: build-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
if: github.repository == 'LykosAI/StabilityMatrix' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Test | |
run: dotnet test StabilityMatrix.Tests | |
- name: Build | |
run: > | |
dotnet publish ./StabilityMatrix.Avalonia/StabilityMatrix.Avalonia.csproj | |
-o out -c Release -r linux-x64 | |
--self-contained |