diff options
author | Kenneth Heafield <github@kheafield.com> | 2020-09-17 17:32:14 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2020-09-17 17:32:14 +0300 |
commit | c93d7cb3df3206c680e4691208b6d57ed45396b0 (patch) | |
tree | 820b74a1be1fc6da799fee84747e44b2cb1e1182 | |
parent | 9d799c99e2cac44d693c53a560c1af77a6d48010 (diff) |
brew?
-rw-r--r-- | .github/workflows/mac.yml | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 7df0e5b..a825339 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -19,34 +19,15 @@ jobs: path: boost_1_74_0/installdir key: ${{ runner.os }}-boost_1_74_0 - name: Install Boost - if: steps.cache-boost.outputs.cache-hit != 'true' - run: | - PREFIX=$HOME/usr - LIBDIR=$PREFIX/lib - wget https://dl.bintray.com/boostorg/release/1.74.0/source/boost_1_74_0.tar.bz2 - tar xjf boost_1_74_0.tar.bz2 - cd boost_1_74_0 - ./bootstrap.sh - ./b2 --prefix=$PREFIX --libdir=$LIBDIR --layout=tagged link=static,shared threading=multi,single --with-program_options --with-test --with-system --with-thread + brew install boost - name: cmake run: | - PREFIX=$HOME/usr - LIBDIR=$PREFIX/lib - export CPATH=$PREFIX/include${CPATH:+:$CPATH} - export LIBRARY_PATH=$LIBDIR${LIBRARY_PATH:+:$LIBRARY_PATH} - export DYLD_LIBRARY_PATH=$LIBDIR${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH} cmake -E make_directory build cd build cmake .. - name: Compile working-directory: build - run: | - PREFIX=$HOME/usr - LIBDIR=$PREFIX/lib - export CPATH=$PREFIX/include${CPATH:+:$CPATH} - export LIBRARY_PATH=$LIBDIR${LIBRARY_PATH:+:$LIBRARY_PATH} - export DYLD_LIBRARY_PATH=$LIBDIR${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH} - cmake --build . -j2 + run: cmake --build . -j2 - name: Test working-directory: build run: ctest -j2 |