mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-22 18:59:59 +08:00
Add workflow creating releases.
This commit is contained in:
parent
66cdf9b2a5
commit
0a5e9f2a2f
39
.github/workflows/release.yaml
vendored
Normal file
39
.github/workflows/release.yaml
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
create:
|
||||||
|
tags:
|
||||||
|
-v*
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- uses: seanmiddleditch/gha-setup-ninja@master
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: >
|
||||||
|
mkdir build;
|
||||||
|
cd build;
|
||||||
|
cmake ..
|
||||||
|
-DCMAKE_CXX_COMPILER=clang++
|
||||||
|
-DFTXUI_BUILD_DOCS=OFF
|
||||||
|
-DFTXUI_BUILD_EXAMPLES=OFF
|
||||||
|
-DFTXUI_BUILD_TESTS=OFF
|
||||||
|
-DFTXUI_BUILD_TESTS_FUZZER=OFF
|
||||||
|
-DFTXUI_ENABLE_INSTALL=ON;
|
||||||
|
cmake --build . --config Release;
|
||||||
|
make package;
|
||||||
|
|
||||||
|
- name: Upload
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: build/ftxui-*
|
||||||
|
draft: false
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
## Current
|
## Current
|
||||||
|
|
||||||
|
## 0.10 (2021-09-30)
|
||||||
|
|
||||||
|
## Bug
|
||||||
|
- Fix the automated merge of borders.
|
||||||
|
|
||||||
### Dom
|
### Dom
|
||||||
- `vscroll_indicator`. Show a scrollback indicator on the right.
|
- `vscroll_indicator`. Show a scrollbar indicator on the right.
|
||||||
|
|
||||||
### Component
|
### Component
|
||||||
- `Maybe`: Display an component conditionnally based on a boolean.
|
- `Maybe`: Display an component conditionnally based on a boolean.
|
||||||
|
@ -4,7 +4,7 @@ include(cmake/ftxui_git_version.cmake)
|
|||||||
|
|
||||||
project(ftxui
|
project(ftxui
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
VERSION 0.9.${git_version}
|
VERSION 0.10.${git_version}
|
||||||
)
|
)
|
||||||
|
|
||||||
option(FTXUI_BUILD_DOCS "Set to ON to build tests" ON)
|
option(FTXUI_BUILD_DOCS "Set to ON to build tests" ON)
|
||||||
@ -123,10 +123,6 @@ if (FTXUI_BUILD_TESTS AND ${CMAKE_VERSION} VERSION_GREATER "3.11.4")
|
|||||||
include(cmake/ftxui_test.cmake)
|
include(cmake/ftxui_test.cmake)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(FTXUI_ENABLE_INSTALL)
|
|
||||||
include(cmake/ftxui_install.cmake)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(FTXUI_BUILD_EXAMPLES)
|
if(FTXUI_BUILD_EXAMPLES)
|
||||||
add_subdirectory(examples)
|
add_subdirectory(examples)
|
||||||
endif()
|
endif()
|
||||||
@ -137,3 +133,9 @@ endif()
|
|||||||
|
|
||||||
include(cmake/iwyu.cmake)
|
include(cmake/iwyu.cmake)
|
||||||
include(cmake/ftxui_export.cmake)
|
include(cmake/ftxui_export.cmake)
|
||||||
|
|
||||||
|
if(FTXUI_ENABLE_INSTALL)
|
||||||
|
include(cmake/ftxui_install.cmake)
|
||||||
|
include(cmake/ftxui_package.cmake)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
16
cmake/ftxui_package.cmake
Normal file
16
cmake/ftxui_package.cmake
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
set(CPACK_GENERATOR "DEB;External;RPM;STGZ;TBZ2;TGZ;TXZ;TZ;TZST;ZIP")
|
||||||
|
set(CPACK_DEBIAN_PACKAGE_DEPENDS " ")
|
||||||
|
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE_URL "https://github.com/ArthurSonzogni/FTXUI/")
|
||||||
|
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Arthur Sonzogni")
|
||||||
|
set(CPACK_DEBIAN_PACKAGE_VERSION ${PROJECT_VERSION})
|
||||||
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A simple C++ Terminal UI library")
|
||||||
|
set(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/ArthurSonzogni/FTXUI/")
|
||||||
|
set(CPACK_PACKAGE_NAME "ftxui")
|
||||||
|
set(CPACK_PACKAGE_VENDOR "Arthur Sonzogni")
|
||||||
|
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
|
||||||
|
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
|
||||||
|
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
|
||||||
|
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
|
||||||
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
|
||||||
|
|
||||||
|
include(CPack)
|
Loading…
Reference in New Issue
Block a user