Skip to content

Commit

Permalink
Add github actions (#1)
Browse files Browse the repository at this point in the history
Update workflow
  • Loading branch information
ThetaOmega01 authored Aug 9, 2024
1 parent bd4e84e commit 0bca53b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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

0 comments on commit 0bca53b

Please sign in to comment.