mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-06-24 08:01:13 +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
|
||||
|
||||
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
|
||||
|
@ -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.
|
||||
|
19
MODULE.bazel
19
MODULE.bazel
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user