Skip to content

Commit

Permalink
upd - Updated build workflows to use build matrix
Browse files Browse the repository at this point in the history
---

Type: upd
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Mar 10, 2024
1 parent a85f831 commit f4cfe88
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 166 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/build-linux.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/build-macos-rel.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/build-macos.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Project (Linux, Release)
name: Build Project (Release)

on:
push:
Expand All @@ -10,16 +10,17 @@ on:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
runs-on: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.runs-on }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: 'true'
ref: ${{ github.ref }}
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Solution Compilation
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/build-win-rel.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/build-win.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build Project (Debug)

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
strategy:
matrix:
runs-on: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.runs-on }}

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Solution Compilation
run: dotnet build --configuration Debug
- name: Testing
run: dotnet test --no-build --configuration Debug

0 comments on commit f4cfe88

Please sign in to comment.