-
Notifications
You must be signed in to change notification settings - Fork 64
37 lines (28 loc) · 1.12 KB
/
create_client_linux.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
name: Build linux binary
on:
workflow_dispatch:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x' # Use 'x' to automatically get the latest patch version
- name: Restore dependencies for Ghosts.Domain
run: dotnet restore src/Ghosts.Domain/ghosts.domain.csproj
- name: Restore dependencies for ghosts.client.linux
run: dotnet restore src/ghosts.client.linux/ghosts.client.linux.csproj
- name: Build Ghosts.Domain
run: dotnet build --no-restore src/Ghosts.Domain/ghosts.domain.csproj
- name: Build ghosts.client.linux
run: dotnet build --no-restore src/ghosts.client.linux/ghosts.client.linux.csproj --configuration Release -o build_output/
- name: Zip build output
run: zip -r ghosts-client-linux-v8.0.0.zip build_output/
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: ghosts-client-linux-v8.0.0
path: ghosts-client-linux-v8.0.0.zip