You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
795 B
36 lines
795 B
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: '7.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
|
|
|