Skip to content

Add github actions (#1) #1

Add github actions (#1)

Add github actions (#1) #1

Workflow file for this run

# 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