mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-28 13:28:43 +08:00
100 lines
1.9 KiB
YAML
100 lines
1.9 KiB
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches: [ feature/github-actions-for-windows-compilers ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
|
|
Windows:
|
|
name: build-windows-vs2019
|
|
runs-on: [windows]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Installing vcpkg
|
|
run: |
|
|
cd ..
|
|
git clone https://github.com/Microsoft/vcpkg.git
|
|
cd vcpkg
|
|
git checkout --force 2020.01
|
|
.\bootstrap-vcpkg.bat
|
|
.\vcpkg.exe install cppzmq:x64-windows
|
|
|
|
- name: Build and run
|
|
run: |
|
|
cd ${{ github.workspace }}
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}
|
|
/../vcpkg/scripts/buildsystems/vcpkg.cmake
|
|
cd build
|
|
MSBuild.exe etl.sln /property:Configuration=Debug
|
|
|
|
- name: Run tests
|
|
run: ./test/etl_tests
|
|
|
|
build-gcc-linux:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-18.04, ubuntu-20.04]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build and run
|
|
run: |
|
|
cmake -DBUILD_TESTS=ON ./
|
|
gcc --version
|
|
make
|
|
|
|
- name: Run tests
|
|
run: ./test/etl_tests
|
|
|
|
build-clang-9-linux:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-18.04]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build and run
|
|
run: |
|
|
export CC=clang-9
|
|
export CXX=clang++-9
|
|
cmake -D BUILD_TESTS=ON ./
|
|
clang --version
|
|
make
|
|
|
|
- name: Run tests
|
|
run: ./test/etl_tests
|
|
|
|
build-clang-10-osx:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macos-10.15]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build and run
|
|
run: |
|
|
export CC=clang
|
|
export CXX=clang++
|
|
cmake -D BUILD_TESTS=ON ./
|
|
clang --version
|
|
make
|
|
|
|
- name: Run tests
|
|
run: ./test/etl_tests
|
|
|