forked from goatcorp/XIVLauncher.Core
-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (40 loc) · 1.39 KB
/
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
41
42
43
44
45
46
47
48
49
name: "Build XLCore"
on:
push:
branches: [cn]
pull_request:
branches: [cn]
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src/XIVLauncher.Core/
concurrency:
group: "${{ github.ref }}"
cancel-in-progress: true
env:
GITHUB_REPOSITORY: ${{ github.repository }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Dotnet Restore
run: dotnet restore
- name: Dotnet Build (Default)
run: dotnet publish -r linux-x64 --sc --configuration Release --no-restore -o ./dist/XIVLauncher.Core
- name: Dotnet Build (Arch)
run: dotnet publish -r linux-x64 --sc --configuration Release -p:DefineConstants=WINE_XIV_ARCH_LINUX --no-restore -o ./dist/XIVLauncher.Core-arch
- name: Dotnet Build (Fedora)
run: dotnet publish -r linux-x64 --sc --configuration Release -p:DefineConstants=WINE_XIV_FEDORA_LINUX --no-restore -o ./dist/XIVLauncher.Core-fedora
- name: Dotnet Build (Windows)
run: dotnet publish -r win-x64 --sc --configuration Release -o ./dist/XIVLauncher.Core-win10x64
- name: Dotnet Test
run: dotnet test --no-build --verbosity normal