remember to update workflows challenge #26
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: Linux | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
env: | |
CC: gcc-13 | |
CXX: g++-13 | |
steps: | |
- name: Install Vulkan SDK | |
uses: humbletim/install-vulkan-sdk@v1.1.1 | |
with: { version: latest, cache: true } | |
- name: Install GLFW Dependencies | |
run: | | |
sudo apt update | |
sudo apt install libwayland-dev libxkbcommon-dev xorg-dev | |
- name: Checkout GLFW | |
uses: actions/checkout@v3 | |
with: { path: glfw, repository: glfw/glfw, ref: 3.4 } | |
- name: Configure and Build GLFW | |
working-directory: glfw | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_SHARED_LIBS=OFF -DGLFW_BUILD_DOCS=OFF -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=build | |
cmake --build build --target install | |
- name: Checkout SQEE | |
uses: actions/checkout@v3 | |
with: { path: sqee, repository: jagoly/sqee, submodules: recursive } | |
- name: Configure and Build SQEE | |
working-directory: sqee | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_PREFIX_PATH=../glfw/build -DSQEE_STATIC_LIB=ON | |
cmake --build build --target sqee | |
- name: Checkout SuperTuxSmash | |
uses: actions/checkout@v3 | |
with: { path: sts } | |
- name: Configure and Build SuperTuxSmash | |
working-directory: sts | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=DEBUG -DSQEE_BUILD_ROOT=../sqee/build | |
cmake --build build | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: { name: sts-linux-debug, path: sts/build/out } |