diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32f64f0c..23f53cb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,15 +50,26 @@ { name: checkout, uses: actions/checkout@v2, - with: { submodules: true } + with: { submodules: true } + }, + { + name: Build Boost, + id: boost, + uses: egor-tensin/build-boost@v1, + with: { + version: 1.85.0, + libraries: filesystem system, + platform: x64, + configuration: Release + } }, { name: install dependencies, - run: brew install scons SFML Boost + run: brew install scons SFML }, { name: build and unit test, - run: ./.github/workflows/scripts/mac/scons-build.sh + run: './.github/workflows/scripts/mac/scons-build.sh INCLUDEPATH="${{ steps.boost.outputs.root }}/include" LIBPATH="${{ steps.boost.outputs.librarydir }}"', }, { name: 'Tar files', diff --git a/.github/workflows/scripts/mac/scons-build.sh b/.github/workflows/scripts/mac/scons-build.sh index 10ee22d2..4cdf6d32 100755 --- a/.github/workflows/scripts/mac/scons-build.sh +++ b/.github/workflows/scripts/mac/scons-build.sh @@ -4,4 +4,4 @@ export CC="$(brew --prefix llvm)/bin/clang" export CXX="$(brew --prefix llvm)/bin/clang++" export SDKROOT="$(xcrun --show-sdk-path)" -scons CXXFLAGS="-I/usr/local/opt/zlib/include" LINKFLAGS="-L/usr/local/opt/zlib/lib" +scons CXXFLAGS="-I/usr/local/opt/zlib/include" LINKFLAGS="-L/usr/local/opt/zlib/lib" $@