Skip to content

Commit

Permalink
Add github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Morilli committed Jun 1, 2024
1 parent 07ee33b commit 72c1ebc
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on: [push, pull_request, workflow_dispatch]
name: Build and test main solution

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
analyzer-build:
name: Build solution with analyzers
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8"

- name: Debug build with analyzers
run: dotnet build -p:RunAnalyzersDuringBuild=true -c Debug -warnaserror BizHawk.sln

- name: Release build with analyzers
run: dotnet build -p:RunAnalyzersDuringBuild=true -c Release -warnaserror BizHawk.sln

test:
name: Test
runs-on: ${{matrix.os.fullname}}
strategy:
fail-fast: false
matrix:
os:
- { prettyname: Windows, fullname: windows-latest }
- { prettyname: Linux, fullname: ubuntu-latest }
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8"

- name: Test
run: dotnet test BizHawk.sln
shell: pwsh

1 comment on commit 72c1ebc

@vadosnaprimer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YAY

Please sign in to comment.