Skip to content

Commit

Permalink
set CNAME to omega-vulkan automatically when RENDERER_DEFAULT is set …
Browse files Browse the repository at this point in the history
…to vulkan
  • Loading branch information
Bishop-333 committed Dec 3, 2023
1 parent 3b53b85 commit 45521a7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ jobs:
if: ${{ github.event_name != 'release' || matrix.btype != 'Debug' }} # skip Debug configuration in Release build
run: |
make clean ARCH=${{ matrix.arch }}
make ${{ matrix.rule }} -j 8 ARCH=${{ matrix.arch }} CC=${{ matrix.cc }} DESTDIR=bin RENDERER_DEFAULT=opengl BUILD_SERVER=0
make ${{ matrix.rule }} -j 8 ARCH=${{ matrix.arch }} CC=${{ matrix.cc }} DESTDIR=bin RENDERER_DEFAULT=opengl
make clean ARCH=${{ matrix.arch }}
make ${{ matrix.rule }} -j 8 ARCH=${{ matrix.arch }} CC=${{ matrix.cc }} DESTDIR=bin RENDERER_DEFAULT=vulkan CNAME=omega-vulkan BUILD_SERVER=0
make ${{ matrix.rule }} -j 8 ARCH=${{ matrix.arch }} CC=${{ matrix.cc }} DESTDIR=bin RENDERER_DEFAULT=vulkan
- uses: actions/upload-artifact@v3.1.1
if: matrix.cc == 'gcc' && matrix.btype == 'release'
Expand Down Expand Up @@ -122,9 +122,9 @@ jobs:
- name: Build
if: ${{ github.event_name != 'release' || matrix.btype != 'Debug' }} # skip in Release builds
run: |
make ${{ matrix.rule }} -j 8 ARCH=${{ matrix.arch }} CC=${{ matrix.cc }} DESTDIR=bin ${{ matrix.use_sdl }} RENDERER_DEFAULT=opengl BUILD_SERVER=0
make ${{ matrix.rule }} -j 8 ARCH=${{ matrix.arch }} CC=${{ matrix.cc }} DESTDIR=bin ${{ matrix.use_sdl }} RENDERER_DEFAULT=opengl
make clean ARCH=${{ matrix.arch }}
make ${{ matrix.rule }} -j 8 ARCH=${{ matrix.arch }} CC=${{ matrix.cc }} DESTDIR=bin ${{ matrix.use_sdl }} RENDERER_DEFAULT=vulkan CNAME=omega-vulkan BUILD_SERVER=0
make ${{ matrix.rule }} -j 8 ARCH=${{ matrix.arch }} CC=${{ matrix.cc }} DESTDIR=bin ${{ matrix.use_sdl }} RENDERER_DEFAULT=vulkan
- uses: actions/upload-artifact@v3.1.1
if: matrix.cc == 'gcc' && matrix.btype == 'release'
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
- name: Build
if: ${{ github.event_name != 'release' || matrix.btype != 'Debug' }} # skip Debug configuration in Release build
run: |
make ${{ matrix.rule }} -j 8 ARCH=${{ matrix.arch }} CC=${{ matrix.cc }} DESTDIR=bin INSTALL=ginstall BUILD_SERVER=0 STRIP=echo
make ${{ matrix.rule }} -j 8 ARCH=${{ matrix.arch }} CC=${{ matrix.cc }} DESTDIR=bin INSTALL=ginstall STRIP=echo
- uses: actions/upload-artifact@v3.1.1
if: matrix.cc == 'gcc' && matrix.btype == 'release'
Expand Down
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,18 @@ endif
RENDERER_DEFAULT = opengl

ifeq ($(QUAKE3),1)
CNAME = q3-omega
ifeq ($(RENDERER_DEFAULT),vulkan)
CNAME = q3-omega-vulkan
else
CNAME = q3-omega
endif
DNAME = q3-omgded
else
CNAME = omega
ifeq ($(RENDERER_DEFAULT),vulkan)
CNAME = omega-vulkan
else
CNAME = omega
endif
DNAME = omgded
endif

Expand Down

0 comments on commit 45521a7

Please sign in to comment.