Improve workflow and badges. (#78)

This commit is contained in:
Arthur Sonzogni
2021-03-21 14:08:09 +01:00
committed by GitHub
parent 3a0b2520eb
commit 83fe939332
6 changed files with 80 additions and 7 deletions

View File

@@ -1,7 +1,8 @@
name: Linux Clang - Build & tests
name: Linux Clang
on:
- pull_request
- push
jobs:
build:

View File

@@ -1,7 +1,8 @@
name: Linux Emscripten - Build
name: Linux Emscripten
on:
- pull_request
- push
jobs:
build:

View File

@@ -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
View 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
View 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