mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-27 04:48:44 +08:00
Github actions for MSVC
This commit is contained in:
parent
e84d495109
commit
f9dbaba076
73
.github/workflows/main.yml
vendored
73
.github/workflows/main.yml
vendored
@ -1,61 +1,40 @@
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches: [ master, hotfix/clang-9 ]
|
||||
branches: [ feature/github-actions-for-windows-compilers ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-18.04, ubuntu-20.04]
|
||||
|
||||
build-visual-studio
|
||||
runs-on: [windows]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup cmake
|
||||
run: cmake -DBUILD_TESTS=ON ./
|
||||
|
||||
- name: Compile
|
||||
run: make
|
||||
|
||||
- name: Run tests
|
||||
run: ./test/etl_tests
|
||||
|
||||
- name: Save artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
name: Testfile
|
||||
path: test/etl_tests
|
||||
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: Running cmake
|
||||
run: |
|
||||
cd ${{ github.workspace }}
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}
|
||||
/../vcpkg/scripts/buildsystems/vcpkg.cmake
|
||||
|
||||
build-clang-9-Linux:
|
||||
runs-on: 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 ./
|
||||
make
|
||||
./test/etl_tests
|
||||
|
||||
- name: Save artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Testfile
|
||||
path: test/etl_tests
|
||||
|
||||
build-clang-10-osx:
|
||||
runs-on: macos-10.15
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build and run
|
||||
run: |
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
cmake -D BUILD_TESTS=ON ./
|
||||
make
|
||||
./test/etl_tests
|
||||
cd build
|
||||
MSBuild.exe etl.sln
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user