Compare commits

...

8 Commits

Author SHA1 Message Date
ArthurSonzogni
1d7d84c155
Update workflow 2025-04-24 15:07:17 +02:00
ArthurSonzogni
fd5e5c77e5
Update bazel workflow. 2025-04-24 14:48:55 +02:00
ArthurSonzogni
c8a14f5d70
Update workflow. 2025-04-24 14:43:35 +02:00
ArthurSonzogni
321c308a98
Update workflow file. 2025-04-24 14:41:44 +02:00
ArthurSonzogni
8feac77d8c
Update workflow file. 2025-04-24 14:39:15 +02:00
ArthurSonzogni
dad4a67fcb
Update workflow 2025-04-24 14:34:13 +02:00
ArthurSonzogni
d6006d3475
Update workflow. 2025-04-24 14:29:21 +02:00
ArthurSonzogni
f69adb605a
Update workflow 2025-04-24 14:23:23 +02:00
3 changed files with 62 additions and 33 deletions

View File

@ -10,8 +10,55 @@ on:
- main
jobs:
test:
name: "Tests"
test_bazel:
name: "Test Bazel"
strategy:
fail-fast: false
matrix:
include:
- name: Linux GCC
os: ubuntu-latest
compiler: gcc
- name: Linux Clang
os: ubuntu-latest
compiler: llvm
- name: MacOS clang
os: macos-latest
compiler: llvm
- name: Windows MSVC
os: windows-latest
compiler: cl
runs-on: ${{ matrix.os }}
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- name: "Setup Cpp"
uses: aminya/setup-cpp@v1
with:
compiler: ${{ matrix.compiler }}
vcvarsall: ${{ contains(matrix.os, 'windows' )}}
- name: "Install Bazel"
uses: bazel-contrib/setup-bazel@0.14.0
# Need on macos. See https://github.com/bazelbuild/bazel/issues/21718
- name: Clean Bazel cache
run: bazel clean --expunge
- name: "Build with Bazel"
run: bazel build ...
- name: "Tests with Bazel"
run: bazel run tests
test_cmake:
name: "Tests CMake"
strategy:
fail-fast: false
matrix:
@ -55,19 +102,6 @@ jobs:
gcovr: "5.0"
opencppcoverage: true
- name: "Install Bazel"
uses: bazel-contrib/setup-bazel@0.14.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: "Build with Bazel"
run: bazel build ...
- name: "Tests with Bazel"
run: bazel run tests
# make sure coverage is only enabled for Debug builds, since it sets -O0
# to make sure coverage has meaningful results
- name: "Configure CMake"
@ -135,7 +169,9 @@ jobs:
# Create a release on new v* tags
release:
needs: test
needs:
- test_cmake
- test_bazel
if: ${{ github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v') }}
name: "Create release"
runs-on: ubuntu-latest

View File

@ -1,8 +1,12 @@
Changelog
=========
Development
-----------
Next release (2025-04-01)
-------------------------
### Build
- Feature: Support `bazel`. See #1032. Proposed by @kcc.
### Component
- Bugfix: Fix a crash with ResizeableSplit. See #1023.
- Clamp screen size to terminal size.

View File

@ -1,20 +1,9 @@
# FTXUI Module.
module(
name = "ftxui",
version = "6.0.3",
)
module(name = "ftxui", version = "6.0.3")
# Build deps.
bazel_dep(name = "rules_cc", version = "0.0.17")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "rules_cc", version = "0.1.1")
bazel_dep(name = "platforms", version = "0.0.11")
# Test deps.
bazel_dep(name = "googletest", version = "1.15.2")
# Toolchain deps.
#cc_configure = use_extension(
#"@rules_cc//bzlmod:extensions.bzl",
#"cc_configure",
#)
#use_repo(cc_configure, "local_config_cc_toolchains")
bazel_dep(name = "googletest", version = "1.16.0.bcr.1")