forked from TrinityCore/WowPacketParser
-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (31 loc) · 923 Bytes
/
gh-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: WPP
on:
push:
pull_request:
env:
DOTNET_VERSION: '9.0.x'
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-14]
configuration: [Debug, Release]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration ${{ matrix.configuration }} --no-restore
- name: Execute unit tests
run: dotnet test --configuration ${{ matrix.configuration }} --no-build
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: WPP-${{ matrix.os }}-${{ matrix.configuration }}
path: WowPacketParser/bin/${{ matrix.configuration }}/