-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from Travis to GitHub Actions.
* WIP * Tweak things * Add gcc-10 job * Add Clang workflows * WIP * Fix Clang build * WIP * More small fixes * Migrate releases * More tweaks to Clang and deployments * Try to fix Clang 10 build * Try to debug Clang build * Ditch Travis * Include Catch more directly * Fix Clang build * Remove deployment configurations
- Loading branch information
Showing
27 changed files
with
477 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: Clang | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
CTEST_OUTPUT_ON_FAILURE: 1 | ||
|
||
jobs: | ||
|
||
clang-5: | ||
runs-on: ubuntu-18.04 | ||
|
||
strategy: | ||
matrix: | ||
config: [Debug, Release] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install | ||
run: | | ||
sudo apt install clang-5.0 | ||
sudo pip install gcovr | ||
- name: Configure | ||
run: | | ||
export CC=`which clang-5.0` | ||
export CXX=`which clang++-5.0` | ||
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.config}} . | ||
- name: Build | ||
run: > | ||
cmake --build build --config ${{matrix.config}} | ||
--target unit_test_runner -j4 | ||
cmake --build build --config ${{matrix.config}} | ||
--target single_header_tester | ||
- name: Test | ||
run: | | ||
cd build | ||
ctest --build-config ${{matrix.config}} | ||
clang-10: | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
config: [Debug, Release] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install | ||
run: | | ||
sudo pip install gcovr | ||
- name: Configure | ||
run: | | ||
export CC=`which clang-10` | ||
export CXX=`which clang++-10` | ||
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.config}} . | ||
- name: Build | ||
run: > | ||
cmake --build build --config ${{matrix.config}} | ||
--target unit_test_runner -j4 | ||
cmake --build build --config ${{matrix.config}} | ||
--target single_header_tester | ||
- name: Test | ||
run: | | ||
cd build | ||
ctest --build-config ${{matrix.config}} | ||
- name: Upload coverage report | ||
run: bash <(curl -s https://codecov.io/bash) -X gcov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: GCC | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
CTEST_OUTPUT_ON_FAILURE: 1 | ||
|
||
jobs: | ||
|
||
gcc-7: | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
config: [Debug, Release] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Configure | ||
run: | | ||
export CC=`which gcc-7` | ||
export CXX=`which g++-7` | ||
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.config}} . | ||
- name: Build | ||
run: > | ||
cmake --build build --config ${{matrix.config}} | ||
--target unit_test_runner -j4 | ||
cmake --build build --config ${{matrix.config}} | ||
--target single_header_tester | ||
- name: Test | ||
run: | | ||
cd build | ||
ctest --build-config ${{matrix.config}} | ||
gcc-10: | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
config: [Debug, Release] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install | ||
run: | | ||
sudo apt install gcc-10 | ||
- name: Configure | ||
run: | | ||
export CC=`which gcc-10` | ||
export CXX=`which g++-10` | ||
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.config}} . | ||
- name: Build | ||
run: > | ||
cmake --build build --config ${{matrix.config}} | ||
--target unit_test_runner -j4 | ||
cmake --build build --config ${{matrix.config}} | ||
--target single_header_tester | ||
- name: Test | ||
run: | | ||
cd build | ||
ctest --build-config ${{matrix.config}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Latest Deployment | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
|
||
alia-single-header: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build | ||
run: | | ||
python3 scripts/generate-distributables.py | ||
mkdir build | ||
mv alia.hpp build | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@3.7.1 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: build | ||
CLEAN: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Release Deployment | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
|
||
alia-single-header: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build | ||
run: python3 scripts/generate-distributables.py | ||
|
||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: alia.hpp | ||
tag: ${{ github.ref }} | ||
overwrite: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Test Deployment | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
|
||
alia-single-header: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build | ||
run: python3 scripts/generate-distributables.py |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.