Working on new resource manager #333
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 pipeline | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: [master, opengl] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE_DEBUG: Debug | |
BUILD_TYPE_RELEASE: Release | |
jobs: | |
windows-build: | |
runs-on: windows-latest | |
name: Build on Windows | |
# Run both builds in parallel and don't cancel if one fails | |
strategy: | |
matrix: | |
build-type: [Debug, Release] | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Vcpkg | |
uses: friendlyanon/setup-vcpkg@v1 | |
# Committish: The commit sha of the vcpkg repo, same as in vcpkg.json | |
with: | |
committish: 93895b28ea7bc8cda10f156c5d336f3fc070f8b1 | |
- name: Setup Microsoft Visual C++ CLI | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Setup Ninja | |
uses: ashutoshvarma/setup-ninja@master | |
with: | |
# ninja version to download. Default: 1.10.0 | |
version: 1.10.0 | |
- name: Prepare Vulkan SDK | |
uses: humbletim/setup-vulkan-sdk@v1.2.0 | |
with: | |
vulkan-query-version: 1.3.204.0 | |
vulkan-components: Vulkan-Headers, Vulkan-Loader | |
vulkan-use-cache: true | |
- name: Run scripts | |
shell: pwsh | |
# Add additional scripting steps here | |
run: | | |
cd ${{ github.workspace }} | |
${{ github.workspace }}/vcpkg/vcpkg install --clean-after-build --triplet=x64-windows | |
Remove-Item –path vcpkg_installed –recurse | |
- name: Build ${{ matrix.build-type }} configuration with CMake | |
uses: ashutoshvarma/action-cmake-build@master | |
with: | |
build-dir: ${{ github.workspace }}/build/${{ matrix.build-type }} | |
source-dir: ${{ github.workspace }} | |
cc: "cl" | |
cxx: "cl" | |
configure-options: -DCMAKE_TOOLCHAIN_FILE='${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake' | |
-DATLAS_DEMO=ON -G Ninja | |
parallel: 16 | |
build-type: ${{ matrix.build-type }} | |
- name: Upload artifact | |
if: ${{ matrix.build-type == 'Release' }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Atlas Engine Demo Windows ${{ matrix.build-type }} | |
path: | | |
data | |
README.md | |
LICENSE.md | |
THIRDPARTY.md | |
${{ github.workspace }}/bin/**/AtlasEngineDemo.exe | |
${{ github.workspace }}/bin/**/*.dll | |
!**/CMakeFiles | |
linux-build: | |
runs-on: ubuntu-latest | |
name: Build on Linux | |
# Run both builds in parallel and don't cancel if one fails | |
strategy: | |
matrix: | |
build-type: [Debug, Release] | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Vcpkg | |
uses: friendlyanon/setup-vcpkg@v1 | |
# Committish: The commit sha of the vcpkg repo, same as in vcpkg.json | |
with: | |
committish: 93895b28ea7bc8cda10f156c5d336f3fc070f8b1 | |
- name: Setup Ninja | |
uses: ashutoshvarma/setup-ninja@master | |
with: | |
# ninja version to download. Default: 1.10.0 | |
version: 1.10.0 | |
- name: Prepare Vulkan SDK | |
uses: humbletim/setup-vulkan-sdk@v1.2.0 | |
with: | |
vulkan-query-version: 1.3.204.0 | |
vulkan-components: Vulkan-Headers, Vulkan-Loader | |
vulkan-use-cache: true | |
- name: Run scripts | |
shell: bash | |
# Add additional scripting steps here | |
run: | | |
sudo apt-get update | |
sudo apt-get install libgl1-mesa-dev | |
cd ${{ github.workspace }} | |
${{ github.workspace }}/vcpkg/vcpkg install --clean-after-build --triplet=x64-linux | |
rm -r vcpkg_installed | |
# https://github.com/marketplace/actions/setup-ninja | |
- name: Build ${{ matrix.build-type }} configuration with CMake | |
uses: ashutoshvarma/action-cmake-build@master | |
with: | |
build-dir: ${{ github.workspace }}/build/${{ matrix.build-type }} | |
source-dir: ${{ github.workspace }} | |
cc: "gcc" | |
cxx: "g++" | |
configure-options: -DCMAKE_TOOLCHAIN_FILE='${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake' | |
-DATLAS_DEMO=ON -DATLAS_DEMO=ON -G Ninja | |
parallel: 16 | |
build-type: ${{ matrix.build-type }} | |
- name: Upload artifact | |
if: ${{ matrix.build-type == 'Release' }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Atlas Engine Demo Linux ${{ matrix.build-type }} | |
path: | | |
data | |
README.md | |
LICENSE.md | |
THIRDPARTY.md | |
${{ github.workspace }}/bin/**/AtlasEngineDemo | |
${{ github.workspace }}/bin/**/*.so* | |
!**/CMakeFiles | |
macos-build: | |
runs-on: macos-12 | |
name: Build on MacOS | |
# Run both builds in parallel and don't cancel if one fails | |
strategy: | |
matrix: | |
build-type: [Debug, Release] | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Vcpkg | |
uses: friendlyanon/setup-vcpkg@v1 | |
# Committish: The commit sha of the vcpkg repo, same as in vcpkg.json | |
with: | |
committish: 93895b28ea7bc8cda10f156c5d336f3fc070f8b1 | |
- name: Setup Ninja | |
uses: ashutoshvarma/setup-ninja@master | |
with: | |
# ninja version to download. Default: 1.10.0 | |
version: 1.10.0 | |
- name: Prepare Vulkan SDK | |
uses: humbletim/setup-vulkan-sdk@v1.2.0 | |
with: | |
vulkan-query-version: 1.3.204.0 | |
vulkan-components: Vulkan-Headers, Vulkan-Loader | |
vulkan-use-cache: true | |
- name: Run scripts | |
shell: bash | |
# Add additional scripting steps here | |
run: | | |
cd ${{ github.workspace }} | |
brew install pkg-config | |
${{ github.workspace }}/vcpkg/vcpkg install --clean-after-build --triplet=x64-osx | |
rm -r vcpkg_installed | |
# https://github.com/marketplace/actions/setup-ninja | |
- name: Build ${{ matrix.build-type }} configuration with CMake | |
uses: ashutoshvarma/action-cmake-build@master | |
with: | |
build-dir: ${{ github.workspace }}/build/${{ matrix.build-type }} | |
source-dir: ${{ github.workspace }} | |
cc: "clang" | |
cxx: "clang++" | |
configure-options: -DCMAKE_TOOLCHAIN_FILE='${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake' | |
-DATLAS_DEMO=ON -G Ninja | |
parallel: 16 | |
build-type: ${{ matrix.build-type }} |