Skip to content

Commit

Permalink
few more discrepencies to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Codinablack committed Nov 30, 2024
1 parent 9c4fdd5 commit 2d1e164
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 24 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/linux_build_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
matrix:
os: [ubuntu-24.04, ubuntu-22.04]
configuration:
- ReleaseDynamic
- ReleaseStatic
- DebugDynamic
- DebugStatic
- releasedynamic
- releasestatic
- debugdynamic
- debugstatic
platform:
- 64
- ARM64
- arm64

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -52,8 +52,7 @@ jobs:
- name: Build Project
run: |
make help
make -j $(nproc)
make -j $(nproc) config="${{ matrix.configuration }}_${{ matrix.platform }}"
- name: Create and Upload Artifact
if: ${{ github.event_name != 'pull_request' }}
Expand Down
25 changes: 11 additions & 14 deletions .github/workflows/windows_build_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
matrix:
os: [windows-2022]
configuration:
- ReleaseDynamic
- ReleaseStatic
- DebugDynamic
- DebugStatic
- releasedynamic
- releasestatic
- debugdynamic
- debugstatic
include:
- os: windows-2022
triplet: x64-windows
Expand All @@ -34,27 +34,24 @@ jobs:
cmd /c Bootstrap.bat
move .\bin\release\premake5.exe D:\a\BlackTek-Server\BlackTek-Server\premake5.exe
cd D:\a\BlackTek-Server\BlackTek-Server
- name: Generate Solution
run: |
D:\a\BlackTek-Server\BlackTek-Server\premake5.exe vs2022
- name: Install Dependencies
shell: pwsh
run: |
if [[ "${{ matrix.configuration }}" == *Static ]]; then
vcpkg install --triplet=x64-windows-static
else
vcpkg install
fi
if (${{ matrix.configuration }} -like '*Static') {
& "vcpkg" install --triplet=x64-windows-static
} else {
& "vcpkg" install
}
- name: Build Project
run: |
cd D:\a\BlackTek-Server\BlackTek-Server
msbuild Black-Tek-Server.sln /p:Configuration=${{ matrix.configuration }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: BlackTek-Server-${{ matrix.os }}-${{ matrix.configuration }}
path: |
Black-Tek-Server.exe
Black-Tek-Server.exe
5 changes: 2 additions & 3 deletions premake5.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
workspace "Black-Tek-Server"
-- Configurations now include dynamic variants
configurations {
"Debug", "Release",
"DebugStatic", "ReleaseStatic",
"DebugDynamic", "ReleaseDynamic"
}
Expand Down Expand Up @@ -32,7 +31,7 @@ workspace "Black-Tek-Server"
end

-- Debug configurations
filter ("configurations:Debug", "configurations:DebugStatic", "configurations:DebugDynamic")
filter ("configurations:DebugStatic", "configurations:DebugDynamic")
defines { "DEBUG" }
runtime "Debug"
symbols "On"
Expand All @@ -42,7 +41,7 @@ workspace "Black-Tek-Server"
filter {}

-- Release configurations
filter ("configurations:Release", "configurations:ReleaseStatic", "configurations:ReleaseDynamic")
filter ("configurations:ReleaseStatic", "configurations:ReleaseDynamic")
defines { "NDEBUG" }
runtime "Release"
symbols "Off"
Expand Down

0 comments on commit 2d1e164

Please sign in to comment.