Skip to content

Hotfix missing model/sprite renderer in some cases #531

Hotfix missing model/sprite renderer in some cases

Hotfix missing model/sprite renderer in some cases #531

Workflow file for this run

---
name: C/C++ CI
on:
- push
- pull_request
jobs:
get_time_build:
name: TAG NAME
runs-on: ubuntu-latest
outputs:
release_tag: ${{ steps.tag.outputs.release_tag }}
steps:
- name: Generate nightly release tag
id: tag
run: >
echo "release_tag=NightBuild_$(date +"%Y.%m.%d_%H-%M")" >> $GITHUB_OUTPUT
linux_build:
name: Linux
needs: get_time_build
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
release_tag: ${{ steps.tag.outputs.release_tag }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1
with:
cmake-version: latest
- name: Download and install dependencies
run: >
sudo apt update
sudo apt install libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libglfw3-dev libglew-dev libxxf86vm-dev libfmt-dev --allow-unauthenticated --fix-missing
- name: Build release
run: |
mkdir build; cd build
cmake .. -DCMAKE_BUILD_TYPE=RELEASE
make
- name: Create Linux release archive
run: |
mkdir -p build/linux_release
cp build/bspguy build/linux_release/
cp -r resources/. build/linux_release/
cd build && zip -r newbspguy_ubuntu_release.zip linux_release/
- name: Publish nightly binaries for linux
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.get_time_build.outputs.release_tag }}
files: |
build/newbspguy_ubuntu_release.zip
window_build:
name: Windows
needs: get_time_build
runs-on: windows-latest
env:
solution: vs-project/bspguy.sln
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
with:
vs-prerelease: true
- name: Build app for release
run: >
msbuild ${{ env.solution }} -m -t:rebuild -verbosity:diag
-property:Configuration=Release
- name: Create Windows release archive
run: |
mkdir -p build\win64_release
cp vs-project\Release\bspguy.exe build\win64_release\
xcopy /I /E /Y "resources\*" "build\win64_release\"
Compress-Archive -Path "build\win64_release\*" -DestinationPath "build\newbspguy_win7_x64_release.zip"
- name: Publish nightly release binaries for windows 7+
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.get_time_build.outputs.release_tag }}
files: |
build/newbspguy_win7_x64_release.zip
- name: Build app for release WinXP 32bit
run: >
msbuild ${{ env.solution }} -m -t:rebuild -verbosity:diag
-property:Configuration=ReleaseXPx86
- name: Create Windows release WinXP archive
run: |
mkdir -p build\win32_release
cp vs-project\Release\bspguy.exe build\win32_release\
xcopy /I /E /Y "resources\*" "build\win32_release\"
Compress-Archive -Path "build\win32_release\*" -DestinationPath "build\newbspguy_winxp_x86_release.zip"
- name: Publish nightly release binaries for windows XP 32bit
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.get_time_build.outputs.release_tag }}
files: |
build/newbspguy_winxp_x86_release.zip
- name: Build app for debug
run: >
msbuild ${{ env.solution }} -m -t:rebuild -verbosity:diag
-property:Configuration=DebugGithub
- name: Create Windows debug archive
run: |
mkdir -p build\win64_debug
cp vs-project\Release\bspguy_debug.exe build\win64_debug\
xcopy /I /E /Y "resources\*" "build\win64_debug\"
Compress-Archive -Path "build\win64_debug\*" -DestinationPath "build\newbspguy_win7_x64_dbg.zip"
- name: Publish nightly debug binaries for windows 7+
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.get_time_build.outputs.release_tag }}
files: |
build/newbspguy_win7_x64_dbg.zip