-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github actions CI inspired by travis/appveyor scripts
- Loading branch information
1 parent
83e99cd
commit f9c065b
Showing
1 changed file
with
83 additions
and
0 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,83 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
#clang-format: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: DoozyX/clang-format-lint-action@v0.12 | ||
# with: | ||
# exclude: './thirdparty' | ||
# clangFormatVersion: 12 | ||
|
||
build-ubuntu: | ||
runs-on: ubuntu-latest | ||
env: | ||
dashboard_model: Experimental | ||
build_type: Release | ||
NUMBER_OF_PROCESSORS: 2 | ||
CXX: ${{ matrix.CXX }} | ||
name: ${{ matrix.name }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: build-ubuntu-gcc9 | ||
CXX: g++-9 | ||
- name: build-ubuntu-gcc10 | ||
CXX: g++-10 | ||
- name: build-ubuntu-clang10 | ||
CXX: clang++-10 | ||
- name: build-ubuntu-clang11 | ||
CXX: clang++-11 | ||
INSTALL_EXTRA: clang-11 | ||
- name: build-ubuntu-icpc | ||
CXX: icpc | ||
INSTALL_ONEAPI: true | ||
- name: build-ubuntu-icpx | ||
CXX: icpx | ||
INSTALL_ONEAPI: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: install OneAPI | ||
if: ${{ matrix.INSTALL_ONEAPI }} | ||
run: | | ||
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | ||
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | ||
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main" | ||
sudo apt update | ||
sudo apt install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic | ||
- name: install extras | ||
if: ${{ matrix.INSTALL_EXTRA }} | ||
run: | | ||
sudo apt update | ||
sudo apt install ${{ matrix.INSTALL_EXTRA }} | ||
- name: ctest | ||
run: | | ||
if [ ${{ matrix.INSTALL_ONEAPI }} ]; then source /opt/intel/oneapi/setvars.sh; fi | ||
ctest -V -S test.cmake | ||
build-windows: | ||
runs-on: windows-latest | ||
env: | ||
configuration: Release | ||
subset: ${{ matrix.subset }} | ||
name: ${{ matrix.name }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: build-windows-sse | ||
subset: sse | ||
- name: build-windows-avx | ||
subset: avx | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: ctest | ||
run: | | ||
ctest -V -S test.cmake |