mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-08-02 03:16:37 +08:00
Compare commits
8 Commits
e185d6d475
...
1d7d84c155
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1d7d84c155 | ||
![]() |
fd5e5c77e5 | ||
![]() |
c8a14f5d70 | ||
![]() |
321c308a98 | ||
![]() |
8feac77d8c | ||
![]() |
dad4a67fcb | ||
![]() |
d6006d3475 | ||
![]() |
f69adb605a |
68
.github/workflows/build.yaml
vendored
68
.github/workflows/build.yaml
vendored
@ -10,8 +10,55 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
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:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -55,19 +102,6 @@ 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"
|
||||||
@ -135,7 +169,9 @@ jobs:
|
|||||||
|
|
||||||
# Create a release on new v* tags
|
# Create a release on new v* tags
|
||||||
release:
|
release:
|
||||||
needs: test
|
needs:
|
||||||
|
- 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,8 +1,12 @@
|
|||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
Development
|
Next release (2025-04-01)
|
||||||
-----------
|
-------------------------
|
||||||
|
|
||||||
|
### 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,20 +1,9 @@
|
|||||||
# FTXUI Module.
|
# FTXUI Module.
|
||||||
module(
|
module(name = "ftxui", version = "6.0.3")
|
||||||
name = "ftxui",
|
|
||||||
version = "6.0.3",
|
|
||||||
)
|
|
||||||
|
|
||||||
# Build deps.
|
# Build deps.
|
||||||
bazel_dep(name = "rules_cc", version = "0.0.17")
|
bazel_dep(name = "rules_cc", version = "0.1.1")
|
||||||
bazel_dep(name = "platforms", version = "0.0.10")
|
bazel_dep(name = "platforms", version = "0.0.11")
|
||||||
bazel_dep(name = "bazel_skylib", version = "1.7.1")
|
|
||||||
|
|
||||||
# Test deps.
|
# Test deps.
|
||||||
bazel_dep(name = "googletest", version = "1.15.2")
|
bazel_dep(name = "googletest", version = "1.16.0.bcr.1")
|
||||||
|
|
||||||
# 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