Skip to content

Build linux binary

Build linux binary #1

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: build-artifacts
path: ghosts-client-linux-v8.0.0.zip