mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-08-20 08:36:47 +08:00
Compare commits
No commits in common. "1d7d84c15582f410ac1fbe995ee88db930b7ffdb" and "e185d6d47563988473c9fb4af9736862150e6286" have entirely different histories.
1d7d84c155
...
e185d6d475
68
.github/workflows/build.yaml
vendored
68
.github/workflows/build.yaml
vendored
@ -10,55 +10,8 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
test:
|
||||||
test_bazel:
|
name: "Tests"
|
||||||
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:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -102,6 +55,19 @@ jobs:
|
|||||||
gcovr: "5.0"
|
gcovr: "5.0"
|
||||||
opencppcoverage: true
|
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
|
# make sure coverage is only enabled for Debug builds, since it sets -O0
|
||||||
# to make sure coverage has meaningful results
|
# to make sure coverage has meaningful results
|
||||||
- name: "Configure CMake"
|
- name: "Configure CMake"
|
||||||
@ -169,9 +135,7 @@ jobs:
|
|||||||
|
|
||||||
# Create a release on new v* tags
|
# Create a release on new v* tags
|
||||||
release:
|
release:
|
||||||
needs:
|
needs: test
|
||||||
- test_cmake
|
|
||||||
- test_bazel
|
|
||||||
if: ${{ github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v') }}
|
if: ${{ github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v') }}
|
||||||
name: "Create release"
|
name: "Create release"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
Next release (2025-04-01)
|
Development
|
||||||
-------------------------
|
-----------
|
||||||
|
|
||||||
### Build
|
|
||||||
- Feature: Support `bazel`. See #1032. Proposed by @kcc.
|
|
||||||
|
|
||||||
### Component
|
### Component
|
||||||
- Bugfix: Fix a crash with ResizeableSplit. See #1023.
|
- Bugfix: Fix a crash with ResizeableSplit. See #1023.
|
||||||
- Clamp screen size to terminal size.
|
- Clamp screen size to terminal size.
|
||||||
|
19
MODULE.bazel
19
MODULE.bazel
@ -1,9 +1,20 @@
|
|||||||
# FTXUI Module.
|
# FTXUI Module.
|
||||||
module(name = "ftxui", version = "6.0.3")
|
module(
|
||||||
|
name = "ftxui",
|
||||||
|
version = "6.0.3",
|
||||||
|
)
|
||||||
|
|
||||||
# Build deps.
|
# Build deps.
|
||||||
bazel_dep(name = "rules_cc", version = "0.1.1")
|
bazel_dep(name = "rules_cc", version = "0.0.17")
|
||||||
bazel_dep(name = "platforms", version = "0.0.11")
|
bazel_dep(name = "platforms", version = "0.0.10")
|
||||||
|
bazel_dep(name = "bazel_skylib", version = "1.7.1")
|
||||||
|
|
||||||
# Test deps.
|
# Test deps.
|
||||||
bazel_dep(name = "googletest", version = "1.16.0.bcr.1")
|
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user