build and unit tests
Some checks failed
Bigfoot / build-and-test (Debug, false) (push) Failing after 1m49s
Bigfoot / build-and-test (Debug, true) (push) Failing after 10s
Bigfoot / build-and-test (RelWithDebInfo, false) (push) Failing after 10s
Bigfoot / build-and-test (RelWithDebInfo, true) (push) Failing after 9s
Bigfoot / build-and-test (Release, false) (push) Failing after 9s
Bigfoot / build-and-test (Release, true) (push) Failing after 10s
Some checks failed
Bigfoot / build-and-test (Debug, false) (push) Failing after 1m49s
Bigfoot / build-and-test (Debug, true) (push) Failing after 10s
Bigfoot / build-and-test (RelWithDebInfo, false) (push) Failing after 10s
Bigfoot / build-and-test (RelWithDebInfo, true) (push) Failing after 9s
Bigfoot / build-and-test (Release, false) (push) Failing after 9s
Bigfoot / build-and-test (Release, true) (push) Failing after 10s
This commit is contained in:
46
.gitea/workflows/ci.yml
Normal file
46
.gitea/workflows/ci.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
name: Bigfoot
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
CCACHE_BASEDIR: ${{ github.workspace }}
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
container:
|
||||
image: git.romainboullard.com/bigfootdev/linuxbigfootbuilder:main
|
||||
strategy:
|
||||
matrix:
|
||||
build_type: [Debug, RelWithDebInfo, Release]
|
||||
unity_build: [True, False]
|
||||
steps:
|
||||
- name: Install Node.js
|
||||
run: apt-get update && apt-get install -y nodejs
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Show ccache stats before
|
||||
run: ccache --zero-stats
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
conan install . --deployer=full_deploy --deployer-folder=build --remote=bigfootpackages -pr:h=clang -pr:b=clang --build=missing -s build_type=${{ matrix.build_type }} -o bigfoot/*:unity_build=${{ matrix.unity_build }} -o bigfoot/*:build_tests=True -o bigfoot/*:sample_app=True -o bigfoot/*:tracy=False -o bigfoot/*:build_tools=True -o bigfoot/*:vulkan=True -o bigfoot/*:build_benchmarks=True -o bigfoot/*:build_benchmarks_lto=True -o bigfoot/*:render_doc=True
|
||||
cmake -S . -B ./build/${{ matrix.build_type }} --toolchain ./build/${{ matrix.build_type }}/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -G "Ninja"
|
||||
cmake --build build/${{ matrix.build_type }} --parallel $(nproc)
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
cd ./build/${{ matrix.build_type }}
|
||||
xvfb-run ctest . --output-on-failure
|
||||
|
||||
- name: Show ccache stats after
|
||||
run: ccache --show-stats
|
||||
Reference in New Issue
Block a user