build(deps): bump Externals/imgui from c807192
to 6ca1556
#5168
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches-ignore: | |
- "dependabot/*" | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build-windows: | |
name: Windows ${{ matrix.Configuration }} ${{ matrix.Platform }} (msvc) | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
Configuration: [Debug, Mixed, Release, Release Master Gold] | |
Platform: [x64, x86] | |
steps: | |
- uses: actions/checkout@main | |
with: | |
submodules: recursive | |
- uses: microsoft/setup-msbuild@main | |
- uses: nuget/setup-nuget@main | |
- name: Restore NuGet packages | |
run: nuget restore src\engine.sln | |
- name: Build | |
working-directory: src | |
run: msbuild /m /p:Configuration="${{ matrix.Configuration }}" /p:Platform="${{ matrix.Platform }}" engine.sln | |
- name: Prepare artifacts | |
shell: cmd | |
run: misc/windows/xr_pack_build.cmd "${{ matrix.Configuration }}" "${{ matrix.Platform }}" | |
- name: Upload OpenXRay artifact | |
uses: actions/upload-artifact@main | |
with: | |
name: OpenXRay.${{ matrix.Configuration }} ${{ matrix.Platform }} (github-${{ github.run_number }}).7z | |
path: res/OpenXRay.*.7z | |
- name: Upload Symbols | |
uses: actions/upload-artifact@main | |
with: | |
name: Symbols.${{ matrix.Configuration }} ${{ matrix.Platform }} (github-${{ github.run_number }}).7z | |
path: res/Symbols.*.7z | |
- name: Upload Utils | |
uses: actions/upload-artifact@main | |
with: | |
name: Utils.${{ matrix.Configuration }} ${{ matrix.Platform }} (github-${{ github.run_number }}).7z | |
path: res/Utils.*.7z | |
- name: Update latest-nightly tag | |
uses: EndBug/latest-tag@latest | |
with: | |
ref: latest-nightly | |
- name: Publish latest nightly build | |
if: ${{ github.ref_name == 'dev' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: gh release upload --clobber latest-nightly (get-item res/*.*.7z) | |
build-ubuntu: | |
name: Ubuntu ${{ matrix.Configuration }} ${{ matrix.Platform }} (${{ matrix.CC }}) | |
runs-on: ubuntu-18.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
Configuration: [Debug, Release] | |
Platform: [x64, x86] | |
CC: [gcc-9, clang-9] | |
include: | |
- CC: gcc-9 | |
CXX: g++-9 | |
- CC: clang-9 | |
CXX: clang++-9 | |
steps: | |
- uses: actions/checkout@main | |
with: | |
submodules: recursive | |
- name: Deinit Crypto++ | |
run: git submodule deinit Externals/cryptopp | |
- name: Install x64 packages | |
if: ${{ matrix.Platform == 'x64' }} | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -qq -y libsdl2-dev libglew-dev liblzo2-dev libjpeg-dev && | |
sudo apt-get install -qq -y libopenal-dev libogg-dev libtheora-dev libvorbis-dev | |
- name: Install x86 packages | |
if: ${{ matrix.Platform == 'x86' }} | |
run: | | |
sudo dpkg --add-architecture i386 | |
sudo apt-get update -qq | |
sudo apt-get install -qq -y libsdl2-dev:i386 libglew-dev:i386 liblzo2-dev:i386 libjpeg-dev:i386 && | |
sudo apt-get install -qq -y libopenal-dev:i386 libogg-dev:i386 libtheora-dev:i386 libvorbis-dev:i386 | |
- name: Install GCC x64 | |
if: ${{ matrix.Platform == 'x64' && matrix.CC == 'gcc-9' }} | |
uses: egor-tensin/setup-gcc@master | |
with: | |
version: 9 | |
platform: x64 | |
- name: Install GCC x86 | |
if: ${{ matrix.Platform == 'x86' && matrix.CC == 'gcc-9' }} | |
uses: egor-tensin/setup-gcc@master | |
with: | |
version: 9 | |
platform: x86 | |
- name: Install Clang x64 | |
if: ${{ matrix.Platform == 'x64' && matrix.CC == 'clang-9' }} | |
uses: egor-tensin/setup-clang@master | |
with: | |
version: 9 | |
platform: x64 | |
- name: Install Clang x86 | |
if: ${{ matrix.Platform == 'x86' && matrix.CC == 'clang-9' }} | |
uses: egor-tensin/setup-clang@master | |
with: | |
version: 9 | |
platform: x86 | |
- name: Install libc++ for Clang x86 | |
if: ${{ matrix.Platform == 'x86' && matrix.CC == 'clang-9' }} | |
run: sudo apt-get install -qq -y libc++-9-dev:i386 libc++abi-9-dev:i386 | |
- name: Run CMake x64 | |
if: ${{ matrix.Platform == 'x64' }} | |
env: | |
CC: ${{ matrix.CC }} | |
CXX: ${{ matrix.CXX }} | |
run: CFLAGS="-w" CXXFLAGS="-w" cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.Configuration }} -DCMAKE_UNITY_BUILD=ON | |
- name: Run CMake x86 | |
if: ${{ matrix.Platform == 'x86' }} | |
env: | |
CC: ${{ matrix.CC }} | |
CXX: ${{ matrix.CXX }} | |
run: CFLAGS="-m32 -w" CXXFLAGS="-m32 -w" cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.Configuration }} -DCMAKE_UNITY_BUILD=ON -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=i386 -DCMAKE_ASM_FLAGS=-m32 | |
- name: Run CMake Build | |
id: cmake-build | |
env: | |
CC: ${{ matrix.CC }} | |
CXX: ${{ matrix.CXX }} | |
run: cmake --build build --config ${{ matrix.Configuration }} --parallel $(nproc || echo 4) | |
- name: Make package | |
if: ${{ steps.cmake-build.outcome == 'success' }} | |
id: make-package | |
working-directory: build | |
#continue-on-error: true | |
env: | |
CC: ${{ matrix.CC }} | |
CXX: ${{ matrix.CXX }} | |
run: | | |
make -j $(nproc || echo 4) package | |
file openxray_1.6.02_*.deb | |
- name: Upload OpenXRay artifact | |
if: ${{ steps.make-package.outcome == 'success' }} | |
uses: actions/upload-artifact@main | |
with: | |
name: openxray_1.6.02_${{ matrix.Configuration }}_${{ matrix.Platform }}_(github-${{ matrix.CC }}-${{ github.run_number }}).deb | |
path: build/openxray_1.6.02_*.deb | |
build-alpine: | |
name: Alpine ${{ matrix.Configuration }} ${{ matrix.Platform }} (gcc) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
Configuration: [Debug, Release] | |
Platform: [x86_64, x86] | |
steps: | |
- uses: actions/checkout@main | |
with: | |
submodules: recursive | |
- name: Deinit Crypto++ | |
run: | | |
git submodule deinit Externals/cryptopp | |
- name: Install latest stable Alpine Linux | |
uses: jirutka/setup-alpine@master | |
with: | |
arch: ${{ matrix.Platform }} | |
branch: 'latest-stable' | |
packages: build-base cmake mold sdl2-dev glew-dev lzo-dev libjpeg-turbo-dev openal-soft-dev libogg-dev libtheora-dev libvorbis-dev | |
- name: Run CMake x64 | |
if: ${{ matrix.Platform == 'x86_64' }} | |
shell: alpine.sh {0} | |
run: CFLAGS="-w" CXXFLAGS="-w" cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.Configuration }} -DCMAKE_UNITY_BUILD=ON -DXRAY_LINKER=mold | |
- name: Run CMake x86 | |
if: ${{ matrix.Platform == 'x86' }} | |
shell: alpine.sh {0} | |
run: CFLAGS="-m32 -w" CXXFLAGS="-m32 -w" cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.Configuration }} -DCMAKE_ASM_FLAGS=-m32 -DCMAKE_UNITY_BUILD=ON -DXRAY_LINKER=mold | |
- name: Run CMake Build | |
shell: alpine.sh {0} | |
run: cmake --build build --config ${{ matrix.Configuration }} --parallel $(nproc || echo 4) | |
build-macos: | |
name: macOS ${{ matrix.Configuration }} ${{ matrix.Platform }} | |
runs-on: macos-11 | |
strategy: | |
fail-fast: false | |
matrix: | |
Configuration: [Debug, Release] | |
steps: | |
- uses: actions/checkout@main | |
with: | |
submodules: recursive | |
- name: Deinit Crypto++ | |
run: git submodule deinit Externals/cryptopp | |
- name: Install packages | |
run: | | |
brew update | |
brew install sdl2 glew lzo jpeg openal-soft libogg libvorbis theora | |
- name: Run CMake | |
run: CFLAGS="-w" CXXFLAGS="-w" cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.Configuration }} -DCMAKE_UNITY_BUILD=ON | |
- name: Run CMake Build | |
run: cmake --build build --config ${{ matrix.Configuration }} --parallel $(sysctl -n hw.ncpu || echo 4) |