Bump actions/checkout from 4.1.6 to 4.1.7 #1117
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: CI/CD - BUILD | |
on: | |
pull_request: | |
workflow_dispatch: | |
push: | |
branches: master | |
permissions: | |
contents: write | |
actions: write | |
checks: write | |
pull-requests: write | |
discussions: write | |
issues: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-linux: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.7 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y build-essential wget cmake libegl1-mesa-dev libwayland-dev libxkbcommon-dev wayland-protocols libvulkan-dev libssl-dev libvpx-dev gcc-11 libgl1-mesa-glx libgl1-mesa-dev libglew-dev ninja-build python3-pip libx11-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev xtrans-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev xkb-data libxcb-dri3-dev uuid-dev libxcb-util-dev | |
- name: Cache c++ | |
uses: hendrikmuhs/ccache-action@v1.2.13 | |
with: | |
append-timestamp: false | |
restore-keys: host-${{ runner.os }}-${{ hashFiles('./CMakeLists.txt', './rawrbox.assimp/CMakeLists.txt', './rawrbox.bass/CMakeLists.txt', './rawrbox.engine/CMakeLists.txt', './rawrbox.math/CMakeLists.txt', './rawrbox.network/CMakeLists.txt', './rawrbox.physics_2d/CMakeLists.txt', './rawrbox.physics_3d/CMakeLists.txt', './rawrbox.render/CMakeLists.txt', './rawrbox.resources/CMakeLists.txt', './rawrbox.scripting/CMakeLists.txt', './rawrbox.ui/CMakeLists.txt', './rawrbox.utils/CMakeLists.txt', './rawrbox.webm/CMakeLists.txt') }}- | |
key: host-${{ runner.os }}-${{ hashFiles('./CMakeLists.txt', './rawrbox.assimp/CMakeLists.txt', './rawrbox.bass/CMakeLists.txt', './rawrbox.engine/CMakeLists.txt', './rawrbox.math/CMakeLists.txt', './rawrbox.network/CMakeLists.txt', './rawrbox.physics_2d/CMakeLists.txt', './rawrbox.physics_3d/CMakeLists.txt', './rawrbox.render/CMakeLists.txt', './rawrbox.resources/CMakeLists.txt', './rawrbox.scripting/CMakeLists.txt', './rawrbox.ui/CMakeLists.txt', './rawrbox.utils/CMakeLists.txt', './rawrbox.webm/CMakeLists.txt') }} | |
- name: CMAKE Setup | |
id: setup | |
run: | | |
mkdir -p build && cd build | |
CXX=g++ cmake .. -G Ninja -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_EXPORT_COMPILE_COMMANDS="ON" -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DRAWRBOX_DEV_MODE:BOOL="ON" | |
cd ../ | |
- name: Build | |
id: build | |
run: cd build && ninja | |
- name: Run tests | |
if: contains(github.event.pull_request.labels.*.name, '⚠️ SKIP_TESTS ⚠️') != true | |
run: | | |
cd build | |
ctest --test-dir ./rawrbox.math --output-on-failure | |
ctest --test-dir ./rawrbox.utils --output-on-failure | |
ctest --test-dir ./rawrbox.render --output-on-failure | |
ctest --test-dir ./rawrbox.engine --output-on-failure | |
ctest --test-dir ./rawrbox.resources --output-on-failure | |
ctest --test-dir ./rawrbox.scripting --output-on-failure | |
ctest --test-dir ./rawrbox.network --output-on-failure | |
- name: Run linter | |
uses: cpp-linter/cpp-linter-action@v2.11.0 | |
if: github.ref != 'refs/heads/master' && !contains(github.event.pull_request.labels.*.name, '⚠️ SKIP_LINTER ⚠️') | |
id: linter | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
style: file | |
files-changed-only: true | |
extra-args: "-std=c++23 -Wall" | |
version: "17" | |
database: "${{github.workspace}}/build/" | |
step-summary: true | |
repo-root: "${{github.workspace}}" | |
thread-comments: true | |
no-lgtm: false | |
ignore: build | _deps | .github | rawrbox.render/include/stb | rawrbox.engine/tests | rawrbox.math/tests | rawrbox.render/tests | rawrbox.resources/tests | rawrbox.utils/tests | rawrbox.scripting/tests | rawrbox.network/tests | |
- name: Upload build artifacts | |
if: github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, '⚠️ UPLOAD ⚠️') | |
uses: actions/upload-artifact@v4.3.3 | |
with: | |
name: output | |
path: bin | |
- name: Release | |
if: github.ref == 'refs/heads/master' && github.repository_owner == 'edunad' | |
uses: release-drafter/release-drafter@v6 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |