aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-12-15 15:41:30 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-12-15 15:41:30 +0300
commitc6c08241e0e8a020b80d9c7e1d069460e0e3c9be (patch)
treef08d444b795daeb9e39977b19a881b2f83103aa4
parentREADME: update (diff)
downloadbuild-boost-c6c08241e0e8a020b80d9c7e1d069460e0e3c9be.tar.gz
build-boost-c6c08241e0e8a020b80d9c7e1d069460e0e3c9be.zip
workflows/test: test macOS
-rw-r--r--.github/workflows/test.yml54
1 files changed, 54 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 74eebc3..210b711 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -136,3 +136,57 @@ jobs:
with:
librarydir: '${{ steps.build.outputs.librarydir }}'
libraries: filesystem program_options system
+
+ macos:
+ strategy:
+ matrix:
+ # 1.71.0 is the earliest version to not fail with these errors:
+ #
+ # clang: error: unknown argument: '-fcoalesce-templates'
+ #
+ version: [1.71.0, 1.74.0]
+ os: [macos-10.15, macos-11]
+ toolset: [auto]
+
+ runs-on: '${{ matrix.os }}'
+
+ name: '${{ matrix.version }} / ${{ matrix.os }} / ${{ matrix.toolset }}'
+
+ defaults:
+ run:
+ shell: pwsh
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Cache Boost
+ uses: actions/cache@v2
+ with:
+ path: '${{ runner.workspace }}/boost_*.tar.gz'
+ key: 'boost-${{ matrix.version }}'
+
+ - id: build
+ name: Build Boost
+ uses: ./
+ with:
+ version: '${{ matrix.version }}'
+ toolset: '${{ matrix.toolset }}'
+ configuration: Release
+ static: 1
+ libraries: filesystem program_options system
+
+ - name: Check Boost
+ uses: ./.github/actions/check-boost
+ with:
+ # This tests that Boost is indeed in that directory, don't replace
+ # with ${{ steps.build.outputs.root }}.
+ root: '${{ runner.workspace }}/boost'
+
+ - name: Check libraries
+ uses: ./.github/actions/check-libraries
+ with:
+ toolset: '${{ matrix.toolset }}'
+ librarydir: '${{ steps.build.outputs.librarydir }}'
+ libraries: filesystem program_options system
+ static: 1