Skip to content

Commit

Permalink
chore: add build that runs on mac and ubuntu (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
sighphyre authored Oct 31, 2024
1 parent 8f3e10e commit 8d34399
Showing 1 changed file with 10 additions and 24 deletions.
34 changes: 10 additions & 24 deletions .github/workflows/prs.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
# This is a basic workflow to help you get started with Actions

name: Pull request

# Controls when the action will run.
on:
push:
pull_request:
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: windows-2022
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
- os: windows-latest
- os: macos-13
- os: macos-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Set up MSBuild in PATH for command
- name: Setup MSBuild in PATH
uses: microsoft/setup-msbuild@v1
- uses: actions/checkout@v4

- uses: actions/setup-dotnet@v3
with:
Expand All @@ -35,15 +31,5 @@ jobs:
env:
PATH: ${{ github.env.PATH }}:/home/runner/.dotnet/tools

# Get NuGet setup for restoring, packaging and pushing
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5

- name: Restore packages with NuGet
run: nuget restore Unleash.sln

- name: Build the solution
run: msbuild Unleash.sln /p:Configuration=Release

- name: Run tests
run: dotnet test tests/Unleash.Tests/Unleash.Tests.csproj --no-restore --verbosity normal

0 comments on commit 8d34399

Please sign in to comment.