This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
God damn i'm stupid #16
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
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: Build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build-linux: | |
name: Build Linux | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Repository | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: Linux Executable | |
path: XaiSharp/bin/ | |
retention-days: 30 | |
build-windows: | |
name: Build Windows | |
runs-on: windows-latest | |
steps: | |
- name: Setup Repository | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: Windows Executable | |
path: XaiSharp/bin | |
retention-days: 30 |