mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-25 20:27:31 +08:00
Improve workflow and badges. (#78)
This commit is contained in:
parent
3a0b2520eb
commit
83fe939332
3
.github/workflows/linux-clang.yaml
vendored
3
.github/workflows/linux-clang.yaml
vendored
@ -1,7 +1,8 @@
|
||||
name: Linux Clang - Build & tests
|
||||
name: Linux Clang
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
3
.github/workflows/linux-emscripten.yaml
vendored
3
.github/workflows/linux-emscripten.yaml
vendored
@ -1,7 +1,8 @@
|
||||
name: Linux Emscripten - Build
|
||||
name: Linux Emscripten
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
3
.github/workflows/linux-gcc.yaml
vendored
3
.github/workflows/linux-gcc.yaml
vendored
@ -1,7 +1,8 @@
|
||||
name: Linux GCC - Build & tests
|
||||
name: Linux GCC
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
27
.github/workflows/mac-clang.yaml
vendored
Normal file
27
.github/workflows/mac-clang.yaml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: MacOS Clang
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: MacOS Clang
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: seanmiddleditch/gha-setup-ninja@master
|
||||
- name: Build
|
||||
run: >
|
||||
mkdir build;
|
||||
cd build;
|
||||
cmake ..
|
||||
-DCMAKE_CXX_COMPILER=clang++
|
||||
-DFTXUI_BUILD_TESTS=ON;
|
||||
cmake --build . --config Release;
|
||||
|
||||
- name: Tests
|
||||
if: ${{ matrix.config.test }}
|
||||
run: >
|
||||
cd build;
|
||||
./tests
|
27
.github/workflows/windows-msvc.yaml
vendored
Normal file
27
.github/workflows/windows-msvc.yaml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: Windows MSVC
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Windows MSVC
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: seanmiddleditch/gha-setup-ninja@master
|
||||
- uses: ilammy/msvc-dev-cmd@v1
|
||||
- name: Build
|
||||
run: >
|
||||
mkdir build;
|
||||
cd build;
|
||||
cmake ..
|
||||
-DCMAKE_CXX_COMPILER="cl"
|
||||
-DFTXUI_BUILD_TESTS=ON;
|
||||
cmake --build . --config Release;
|
||||
|
||||
- name: Tests
|
||||
if: ${{ matrix.config.test }}
|
||||
run: >
|
||||
cd build;
|
||||
./tests.exe
|
24
README.md
24
README.md
@ -1,15 +1,13 @@
|
||||
# FTXUI
|
||||
|
||||
[![continuous-integration][badge.continuous-integration]][continuous-integration]
|
||||
[![issues][badge.issues]][issues]
|
||||
[![license][badge.license]][license]
|
||||
[![contributors][badge.contributors]][contributors]
|
||||
|
||||
[badge.continuous-integration]: https://github.com/ArthurSonzogni/FTXUI/actions/workflows/continuous-integration.yaml/badge.svg
|
||||
[badge.issues]: https://img.shields.io/github/issues-raw/arthursonzogni/FTXUI
|
||||
[badge.license]: https://img.shields.io/github/license/arthursonzogni/FTXUI?color=black
|
||||
[badge.contributors]: https://img.shields.io/github/contributors/arthursonzogni/FTXUI?color=blue
|
||||
[continuous-integration]: https://github.com/ArthurSonzogni/FTXUI/actions/workflows/continuous-integration.yaml
|
||||
|
||||
[issues]: https://github.com/ArthurSonzogni/FTXUI/issues
|
||||
[license]: http://opensource.org/licenses/MIT
|
||||
[contributors]: https://github.com/ArthurSonzogni/FTXUI/graphs/contributors
|
||||
@ -18,7 +16,6 @@
|
||||
|
||||
A simple C++ library for terminal based user interface.
|
||||
|
||||
|
||||
## Demo:
|
||||
![Demo image](./examples/component/homescreen.gif)
|
||||
|
||||
@ -31,6 +28,25 @@ A simple C++ library for terminal based user interface.
|
||||
* No dependencies.
|
||||
* Cross platform (mostly). Linux (main target), Windows (experimental), Mac.
|
||||
|
||||
## Operating systems
|
||||
- [![linux-gcc][badge.linux-gcc]][link.linux-gcc]
|
||||
- [![linux-clang][badge.linux-clang]][link.linux-clang]
|
||||
- [![linux-emscripten][badge.linux-emscripten]][link.linux-emscripten]
|
||||
- [![windows-msvc][badge.windows-msvc]][link.windows-msvc]
|
||||
- [![mac-clang][badge.mac-clang]][link.mac-clang]
|
||||
|
||||
[badge.linux-gcc]: https://github.com/ArthurSonzogni/FTXUI/actions/workflows/linux-gcc.yaml/badge.svg?branch=master
|
||||
[badge.linux-clang]: https://github.com/ArthurSonzogni/FTXUI/actions/workflows/linux-clang.yaml/badge.svg?branch=master
|
||||
[badge.linux-emscripten]: https://github.com/ArthurSonzogni/FTXUI/actions/workflows/linux-emscripten.yaml/badge.svg?branch=master
|
||||
[badge.windows-msvc]: https://github.com/ArthurSonzogni/FTXUI/actions/workflows/windows-msvc.yaml/badge.svg?branch=master
|
||||
[badge.mac-clang]: https://github.com/ArthurSonzogni/FTXUI/actions/workflows/mac-clang.yaml/badge.svg?branch=master
|
||||
|
||||
[link.linux-gcc]: https://github.com/ArthurSonzogni/FTXUI/actions/workflows/linux-gcc.yaml
|
||||
[link.linux-clang]: https://github.com/ArthurSonzogni/FTXUI/actions/workflows/linux-clang.yaml
|
||||
[link.linux-emscripten]: https://github.com/ArthurSonzogni/FTXUI/actions/workflows/linux-emscripten.yaml
|
||||
[link.windows-msvc]: https://github.com/ArthurSonzogni/FTXUI/actions/workflows/windows-msvc.yaml
|
||||
[link.mac-clang]: https://github.com/ArthurSonzogni/FTXUI/actions/workflows/mac-clang.yaml
|
||||
|
||||
## Example:
|
||||
~~~cpp
|
||||
vbox({
|
||||
|
Loading…
Reference in New Issue
Block a user