Squash-merge feature/gh-actions into develop (#15)

* Add .github/workflows
* Fix typo
* GITHUB_BASE_REF is only for PRs
* Compute BOOST_BRANCH
* Split into lines; fix cd
* Revert "Split into lines; fix cd"
* Fix cd
* We don't want fail-fast
* Add os to matrix
* Use bash on Windows
* Split Windows setup
* Quote if expressions
* Install GCC if needed
* sudo make me a sandwich
* Use matrix.install for the apt package
* Use GITHUB_BASE_REF on Windows as well
* Use a LIBRARY environment variable
* Rename ci.yml to posix.yml
* Split ci.yml into posix.yml and windows.yml
* Use cmd for Run tests
* Remove ./, try clang-win
* Remove clang-win, not present
This commit is contained in:
Peter Dimov authored and GitHub committed 2020-11-20 03:28:46 +02:00
1 parent 2cd99e24e8
commit a43d6569b8
2 files changed
+135

No files matched your search

+51
View File
@@ -0,0 +1,51 @@
name: Windows
on:
pull_request:
push:
branches:
- master
- develop
- feature/**
env:
LIBRARY: assert
jobs:
CI:
strategy:
fail-fast: false
matrix:
include:
- toolset: msvc-14.1
cxxstd: "14,17,latest"
os: windows-2016
- toolset: msvc-14.2
cxxstd: "14,17,latest"
os: windows-2019
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- name: Setup Boost
shell: cmd
run: |
if "%GITHUB_BASE_REF%" == "" set GITHUB_BASE_REF=%GITHUB_REF%
set BOOST_BRANCH=develop
if "%GITHUB_BASE_REF%" == "master" set BOOST_BRANCH=master
cd ..
git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
cd boost-root
xcopy /s /e /q %GITHUB_WORKSPACE% libs\%LIBRARY%\
git submodule update --init tools/boostdep
python tools/boostdep/depinst/depinst.py --git_args "--jobs 3" %LIBRARY%
cmd /c bootstrap
b2 -d0 headers
- name: Run tests
shell: cmd
run: |
cd ../boost-root
b2 -j3 libs/%LIBRARY%/test toolset=${{matrix.toolset}} cxxstd=${{matrix.cxxstd}}