mac try building boost with github action

This commit is contained in:
2024-07-02 11:54:53 -06:00
parent b0dd719502
commit dbd456af54
2 changed files with 15 additions and 4 deletions

View File

@@ -50,15 +50,26 @@
{ {
name: checkout, name: checkout,
uses: actions/checkout@v2, 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, name: install dependencies,
run: brew install scons SFML Boost run: brew install scons SFML
}, },
{ {
name: build and unit test, 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', name: 'Tar files',

View File

@@ -4,4 +4,4 @@ export CC="$(brew --prefix llvm)/bin/clang"
export CXX="$(brew --prefix llvm)/bin/clang++" export CXX="$(brew --prefix llvm)/bin/clang++"
export SDKROOT="$(xcrun --show-sdk-path)" 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" $@