forked from GeneralsOnlineDevelopmentTeam/Services
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.23 KB
/
Copy pathLinux.yml
File metadata and controls
38 lines (32 loc) · 1.23 KB
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
name: Linux (x64 + arm64)
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
arch: [x64, arm64]
os: [linux-musl]
conf: [Debug, Release]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Build
run: dotnet build GenOnlineService/GenOnlineService.csproj --configuration ${{ matrix.conf }} --os ${{ matrix.os }} --arch ${{ matrix.arch }}
- name: Test
run: dotnet test GenOnlineService/GenOnlineService.csproj --no-build --verbosity normal --configuration ${{ matrix.conf }} --os ${{ matrix.os }} --arch ${{ matrix.arch }}
- name: Publish
run: dotnet publish GenOnlineService/GenOnlineService.csproj --configuration ${{ matrix.conf }} --os ${{ matrix.os }} --arch ${{ matrix.arch }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: GenOnlineService_${{ matrix.os }}_${{ matrix.arch }}_${{matrix.conf}}
path: /home/runner/work/Services/Services/GenOnlineService/bin/${{matrix.conf}}/net10.0/${{matrix.os}}-${{matrix.arch}}/publish/