Fix cross platform code issue and add auto CI test build #2
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
name: test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
test_build: | |
name: Test build on ${{ matrix.os }} .NET 8.0 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
steps: | |
- uses: actions/[email protected] | |
with: | |
dotnet-version: 8.0 | |
- uses: actions/checkout@v4 | |
- name: Restore packages | |
run: dotnet restore ProjBobcat/ProjBobcat.sln | |
- name: Build Test | |
run: dotnet build ProjBobcat/ProjBobcat.sln -c Release --no-restore |