3 Commits

Author SHA1 Message Date
Arthur Sonzogni
bf851dea47 Merge f917f7bcc8 into 4604adb502 2025-05-05 23:56:22 +08:00
Jacob Shing
4604adb502 Adds example project using FTXUI (#1044)
Some checks failed
Build / Bazel, ${{ matrix.compiler }}, ${{ matrix.os }} (cl, windows-latest) (push) Has been cancelled
Build / Bazel, ${{ matrix.compiler }}, ${{ matrix.os }} (gcc, macos-latest) (push) Has been cancelled
Build / Bazel, ${{ matrix.compiler }}, ${{ matrix.os }} (gcc, ubuntu-latest) (push) Has been cancelled
Build / Bazel, ${{ matrix.compiler }}, ${{ matrix.os }} (llvm, macos-latest) (push) Has been cancelled
Build / Bazel, ${{ matrix.compiler }}, ${{ matrix.os }} (llvm, ubuntu-latest) (push) Has been cancelled
Build / CMake, ${{ matrix.compiler }}, ${{ matrix.os }} (cl, Windows MSVC, windows-latest) (push) Has been cancelled
Build / CMake, ${{ matrix.compiler }}, ${{ matrix.os }} (gcc, Linux GCC, ubuntu-latest) (push) Has been cancelled
Build / CMake, ${{ matrix.compiler }}, ${{ matrix.os }} (llvm, llvm-cov gcov, Linux Clang, ubuntu-latest) (push) Has been cancelled
Build / CMake, ${{ matrix.compiler }}, ${{ matrix.os }} (llvm, llvm-cov gcov, MacOS clang, macos-latest) (push) Has been cancelled
Documentation / documentation (push) Has been cancelled
2025-05-05 17:44:13 +02:00
ArthurSonzogni
f917f7bcc8 Address @robinlinden comments. 2025-05-05 17:38:01 +02:00
5 changed files with 21 additions and 15 deletions

View File

@@ -1 +1,2 @@
build --features=layering_check
build --enable_bzlmod

View File

@@ -3,7 +3,7 @@ matrix:
# instead of --std=c++20
platform:
- debian11
- ubuntu2024
- ubuntu2204
- macos
- macos-arm64
- windows

View File

@@ -14,25 +14,30 @@ on:
jobs:
test_bazel:
name: "Bazel, ${{ matrix.compiler }}, ${{ matrix.os }}"
name: "Bazel, ${{ matrix.cxx }}, ${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
compiler: g++
cxx: g++
cc: gcc
- os: ubuntu-latest
compiler: clang++
cxx: clang++
cc: clang
- os: macos-latest
compiler: g++
cxx: g++
cc: gcc
- os: macos-latest
compiler: clang++
cxx: clang++
cc: clang
- os: windows-latest
compiler: cl
cxx: cl
cc: cl
runs-on: ${{ matrix.os }}
steps:
@@ -41,12 +46,14 @@ jobs:
- name: "Build with Bazel"
env:
CC: ${{ matrix.compiler }}
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
run: bazel build ...
- name: "Tests with Bazel"
env:
CC: ${{ matrix.compiler }}
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
run: bazel test --test_output=all ...
test_cmake:

View File

@@ -348,6 +348,7 @@ Feel free to add your projects here:
- [terminal-rain](https://github.com/Oakamoore/terminal-rain)
- [keywords](https://github.com/Oakamoore/keywords) ([Play web version :heart:](https://oakamoore.itch.io/keywords))
- [FTB - tertminal file browser](https://github.com/Cyxuan0311/FTB)
- [SHOOT!](https://github.com/ShingZhanho/ENGG1340-Project-25Spring)
### [cpp-best-practices/game_jam](https://github.com/cpp-best-practices/game_jam)

View File

@@ -5,12 +5,9 @@
# -------
# - Version >= 7 are supported
# - Version <= 6 fail with the error:
# ERROR: Analysis of target '//:component' failed; build aborted: no such
# package '@rules_cc//cc/compiler': BUILD file not found in directory
# 'cc/compiler' of external repository @rules_cc. Add a BUILD file to a
# directory to mark it as a package.
#
# Error:
# external/googletest~1.14.0.bcr.1/googletest/include/gtest/internal/gtest-port.h:279:2:
# error: #error C++ versions less than C++14 are not supported.
for ver in \
"7.0.0" \
"8.0.0"