mac try building boost with github action
This commit is contained in:
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@@ -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',
|
||||||
|
2
.github/workflows/scripts/mac/scons-build.sh
vendored
2
.github/workflows/scripts/mac/scons-build.sh
vendored
@@ -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" $@
|
||||||
|
Reference in New Issue
Block a user