Add github actions (#1) #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
# 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: ZZZBotris.Net CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ ubuntu, windows, macos ] | |
runs-on: ${{matrix.os}}-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Install Dependencies | |
run: dotnet restore | |
- name: Publish | |
run: | | |
mkdir ./pub | |
dotnet publish ZZZTOJ.Botris -p:PublishSingleFile=true --self-contained false -o ./pub | |
- name: Remove pdb files | |
run: rm ./pub/*.pdb | |
- name: Upload dotnet test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ZZZBotris_${{ matrix.os }} | |
path: ./pub |