Skip to content

Commit

Permalink
Update build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMeepso committed Nov 9, 2024
1 parent b16e1dc commit 02dc8ab
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
# Windows Build Job
windows-build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./WFServer

steps:
# Step 1: Checkout the code
Expand All @@ -23,22 +26,18 @@ jobs:

# Step 3: Restore dependencies
- name: Restore dependencies
working-directory: ./WFServer
run: dotnet restore

# Step 4: Publish the project as a single file for Windows 64-bit
- name: Publish the application (Windows)
working-directory: ./WFServer
run: dotnet publish -c Release -r win-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true -o ./publish

# Step 5: Zip the Windows publish folder
- name: Zip the Windows publish folder
working-directory: ./WFServer
run: zip -r ./publish/win64.zip ./publish

# Step 6: Upload the Windows build as an artifact to be used in release
- name: Upload Windows Build Artifact
working-directory: ./WFServer
uses: actions/upload-artifact@v3
with:
name: win64
Expand All @@ -61,27 +60,22 @@ jobs:

# Step 3: Restore dependencies
- name: Restore dependencies
working-directory: ./WFServer
run: dotnet restore

# Step 4: Publish the project as a single file for Linux 64-bit
- name: Publish the application (Linux)
working-directory: ./WFServer
run: dotnet publish -c Release -r linux-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true -o ./publish

# Step 5: Copy the native library
- name: Copy libsteam_api.so to publish folder
working-directory: ./WFServer
run: cp ./NativeLibraries/linux64/libsteam_api.so ./publish/

# Step 6: Zip the Linux publish folder
- name: Zip the Linux publish folder
working-directory: ./WFServer
run: zip -r ./publish/linux64.zip ./publish

# Step 7: Upload the Linux build as an artifact to be used in release
- name: Upload Linux Build Artifact
working-directory: ./WFServer
uses: actions/upload-artifact@v3
with:
name: linux64
Expand Down

0 comments on commit 02dc8ab

Please sign in to comment.