-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
258 additions
and
3 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,255 @@ | ||
name: Github Actions Build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build_gcc_ubuntu_16_04: | ||
runs-on: ubuntu-16.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
type: [Debug, Release, MinSizeRel] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Packages | ||
run: sudo apt install libqt5gui5 qtbase5-dev libboost-all-dev libxml2-dev gcc-4.8 g++-4.8 gcc-5 g++-5 | ||
|
||
- name: Create Build Environment | ||
run: cmake -E make_directory ${{runner.workspace}}/build | ||
|
||
- name: Configure CMake | ||
shell: bash | ||
working-directory: ${{runner.workspace}}/build | ||
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{matrix.type}} -DCMAKE_INSTALL_PREFIX=install -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold | ||
env: | ||
CC: gcc-5 | ||
CXX: g++-5 | ||
|
||
- name: Generate Target Project | ||
working-directory: ${{runner.workspace}}/build | ||
shell: bash | ||
run: cmake --build . | ||
env: | ||
VERBOSE: 1 | ||
|
||
- name: Create Target Project Build Directory | ||
run: cmake -E make_directory ${{runner.workspace}}/build/build.output | ||
|
||
- name: Configure Target Project | ||
shell: bash | ||
working-directory: ${{runner.workspace}}/build/build.output | ||
run: cmake ${{runner.workspace}}/build/output -DCMAKE_BUILD_TYPE=${{matrix.type}} -DCMAKE_INSTALL_PREFIX=install -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold -DOPT_BUILD_TEST=ON -DOPT_BUILD_PLUGIN=ON | ||
env: | ||
CC: gcc-4.8 | ||
CXX: g++-4.8 | ||
|
||
- name: Build Target Project | ||
working-directory: ${{runner.workspace}}/build/build.output | ||
shell: bash | ||
run: cmake --build . --target install | ||
env: | ||
VERBOSE: 1 | ||
|
||
build_gcc_ubuntu_18_04: | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
type: [Debug, Release, MinSizeRel] | ||
cc_ver: [5, 6] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Packages | ||
run: sudo apt install libqt5gui5 qtbase5-dev libboost-all-dev libxml2-dev gcc-${{matrix.cc_ver}} g++-${{matrix.cc_ver}} | ||
|
||
- name: Create Build Environment | ||
run: cmake -E make_directory ${{runner.workspace}}/build | ||
|
||
- name: Configure CMake | ||
shell: bash | ||
working-directory: ${{runner.workspace}}/build | ||
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{matrix.type}} -DCMAKE_INSTALL_PREFIX=install -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold | ||
env: | ||
CC: gcc-${{matrix.cc_ver}} | ||
CXX: g++-${{matrix.cc_ver}} | ||
|
||
- name: Generate Target Project | ||
working-directory: ${{runner.workspace}}/build | ||
shell: bash | ||
run: cmake --build . | ||
env: | ||
VERBOSE: 1 | ||
|
||
- name: Create Target Project Build Directory | ||
run: cmake -E make_directory ${{runner.workspace}}/build/build.output | ||
|
||
- name: Configure Target Project | ||
shell: bash | ||
working-directory: ${{runner.workspace}}/build/build.output | ||
run: cmake ${{runner.workspace}}/build/output -DCMAKE_BUILD_TYPE=${{matrix.type}} -DCMAKE_INSTALL_PREFIX=install -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold -DOPT_BUILD_TEST=ON -DOPT_BUILD_PLUGIN=ON | ||
env: | ||
CC: gcc-${{matrix.cc_ver}} | ||
CXX: g++-${{matrix.cc_ver}} | ||
|
||
- name: Build Target Project | ||
working-directory: ${{runner.workspace}}/build/build.output | ||
shell: bash | ||
run: cmake --build . --target install | ||
env: | ||
VERBOSE: 1 | ||
|
||
|
||
build_gcc_ubuntu_20_04: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
type: [Debug, Release, MinSizeRel] | ||
cc_ver: [7, 8, 9, 10] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Packages | ||
run: sudo apt install libqt5gui5 qtbase5-dev libboost-all-dev libxml2-dev | ||
|
||
- name: Create Build Environment | ||
run: cmake -E make_directory ${{runner.workspace}}/build | ||
|
||
- name: Configure CMake | ||
shell: bash | ||
working-directory: ${{runner.workspace}}/build | ||
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{matrix.type}} -DCMAKE_INSTALL_PREFIX=install | ||
env: | ||
CC: gcc-${{matrix.cc_ver}} | ||
CXX: g++-${{matrix.cc_ver}} | ||
|
||
- name: Generate Target Project | ||
working-directory: ${{runner.workspace}}/build | ||
shell: bash | ||
run: cmake --build . | ||
env: | ||
VERBOSE: 1 | ||
|
||
- name: Create Target Project Build Directory | ||
run: cmake -E make_directory ${{runner.workspace}}/build/build.output | ||
|
||
- name: Configure Target Project | ||
shell: bash | ||
working-directory: ${{runner.workspace}}/build/build.output | ||
run: cmake ${{runner.workspace}}/build/output -DCMAKE_BUILD_TYPE=${{matrix.type}} -DCMAKE_INSTALL_PREFIX=install -DOPT_BUILD_TEST=ON -DOPT_BUILD_PLUGIN=ON | ||
env: | ||
CC: gcc-${{matrix.cc_ver}} | ||
CXX: g++-${{matrix.cc_ver}} | ||
|
||
- name: Build Target Project | ||
working-directory: ${{runner.workspace}}/build/build.output | ||
shell: bash | ||
run: cmake --build . --target install | ||
env: | ||
VERBOSE: 1 | ||
|
||
build_clang_ubuntu_18_04: | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
type: [Debug, Release, MinSizeRel] | ||
cc_ver: ["4.0", "5.0", "6.0", 7, 8, 9] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Packages | ||
run: sudo apt install libqt5gui5 qtbase5-dev libboost-all-dev libxml2-dev clang-${{matrix.cc_ver}} | ||
|
||
- name: Create Build Environment | ||
run: cmake -E make_directory ${{runner.workspace}}/build | ||
|
||
- name: Configure CMake | ||
shell: bash | ||
working-directory: ${{runner.workspace}}/build | ||
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{matrix.type}} -DCMAKE_INSTALL_PREFIX=install | ||
env: | ||
CC: clang-${{matrix.cc_ver}} | ||
CXX: clang++-${{matrix.cc_ver}} | ||
|
||
- name: Generate Target Project | ||
working-directory: ${{runner.workspace}}/build | ||
shell: bash | ||
run: cmake --build . | ||
env: | ||
VERBOSE: 1 | ||
|
||
- name: Create Target Project Build Directory | ||
run: cmake -E make_directory ${{runner.workspace}}/build/build.output | ||
|
||
- name: Configure Target Project | ||
shell: bash | ||
working-directory: ${{runner.workspace}}/build/build.output | ||
run: cmake ${{runner.workspace}}/build/output -DCMAKE_BUILD_TYPE=${{matrix.type}} -DCMAKE_INSTALL_PREFIX=install -DOPT_BUILD_TEST=ON -DOPT_BUILD_PLUGIN=ON | ||
env: | ||
CC: clang-${{matrix.cc_ver}} | ||
CXX: clang++-${{matrix.cc_ver}} | ||
|
||
- name: Build Target Project | ||
working-directory: ${{runner.workspace}}/build/build.output | ||
shell: bash | ||
run: cmake --build . --target install | ||
env: | ||
VERBOSE: 1 | ||
|
||
build_clang_ubuntu_20_04: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
type: [Debug, Release, MinSizeRel] | ||
cc_ver: [10] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Packages | ||
run: sudo apt install libqt5gui5 qtbase5-dev libboost-all-dev libxml2-dev clang-${{matrix.cc_ver}} | ||
|
||
- name: Create Build Environment | ||
run: cmake -E make_directory ${{runner.workspace}}/build | ||
|
||
- name: Configure CMake | ||
shell: bash | ||
working-directory: ${{runner.workspace}}/build | ||
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{matrix.type}} -DCMAKE_INSTALL_PREFIX=install | ||
env: | ||
CC: clang-${{matrix.cc_ver}} | ||
CXX: clang++-${{matrix.cc_ver}} | ||
|
||
- name: Generate Target Project | ||
working-directory: ${{runner.workspace}}/build | ||
shell: bash | ||
run: cmake --build . | ||
env: | ||
VERBOSE: 1 | ||
|
||
- name: Create Target Project Build Directory | ||
run: cmake -E make_directory ${{runner.workspace}}/build/build.output | ||
|
||
- name: Configure Target Project | ||
shell: bash | ||
working-directory: ${{runner.workspace}}/build/build.output | ||
run: cmake ${{runner.workspace}}/build/output -DCMAKE_BUILD_TYPE=${{matrix.type}} -DCMAKE_INSTALL_PREFIX=install -DOPT_BUILD_TEST=ON -DOPT_BUILD_PLUGIN=ON | ||
env: | ||
CC: clang-${{matrix.cc_ver}} | ||
CXX: clang++-${{matrix.cc_ver}} | ||
|
||
- name: Build Target Project | ||
working-directory: ${{runner.workspace}}/build/build.output | ||
shell: bash | ||
run: cmake --build . --target install | ||
env: | ||
VERBOSE: 1 | ||
|
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