-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
2,209 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: 'Install Boost Dependency' | ||
description: 'Install Boost Dependency using cache when possible' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Cache Boost | ||
id: cache-boost | ||
uses: actions/cache@v3 | ||
with: | ||
path: dependencies/boost_install | ||
key: boost-1.82.0-${{runner.os}}-0 | ||
|
||
- name: Checkout Boost | ||
if: steps.cache-boost.outputs.cache-hit != 'true' | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: boostorg/boost | ||
submodules: true | ||
fetch-depth: 0 | ||
path: './dependencies/boost' | ||
ref: boost-1.82.0 | ||
|
||
- name: Setup Boost | ||
if: steps.cache-boost.outputs.cache-hit != 'true' | ||
working-directory: ${{github.workspace}}/dependencies | ||
shell: bash | ||
run: | | ||
mkdir boost_build | ||
mkdir boost_install | ||
- name: Configure Boost | ||
if: steps.cache-boost.outputs.cache-hit != 'true' | ||
working-directory: ${{github.workspace}}/dependencies/boost | ||
shell: bash | ||
run: ./bootstrap.sh | ||
|
||
- name: Build Boost | ||
if: steps.cache-boost.outputs.cache-hit != 'true' | ||
working-directory: ${{github.workspace}}/dependencies/boost | ||
shell: bash | ||
run: > | ||
./b2 | ||
--prefix='../boost_install' | ||
--build-dir='../boost_build' | ||
variant='release' | ||
link=static | ||
runtime-link=shared | ||
--with-date_time | ||
--with-filesystem | ||
--with-program_options | ||
--with-regex | ||
--with-system | ||
install | ||
- name: Copy to install | ||
working-directory: ${{github.workspace}}/dependencies/boost_install | ||
shell: bash | ||
run: cp -r ./* ../install/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: 'Install TBB Dependency' | ||
description: 'Install TBB Dependency using cache when possible' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Cache TBB | ||
id: cache-tbb | ||
uses: actions/cache@v3 | ||
with: | ||
path: dependencies/tbb_install | ||
key: tbb-v2021.9.0-${{runner.os}}-2 | ||
|
||
- name: Checkout TBB | ||
if: steps.cache-tbb.outputs.cache-hit != 'true' | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: oneapi-src/oneTBB | ||
path: './dependencies/tbb' | ||
ref: v2021.9.0 | ||
|
||
- name: Setup TBB | ||
if: steps.cache-tbb.outputs.cache-hit != 'true' | ||
working-directory: ${{github.workspace}}/dependencies | ||
shell: bash | ||
run: | | ||
mkdir tbb_build | ||
mkdir tbb_install | ||
- name: Configure TBB | ||
if: steps.cache-tbb.outputs.cache-hit != 'true' | ||
working-directory: ${{github.workspace}}/dependencies/tbb_build | ||
shell: bash | ||
run: > | ||
cmake ../tbb | ||
-DBUILD_SHARED_LIBS=ON | ||
-DCMAKE_BUILD_TYPE=Release | ||
-DCMAKE_INSTALL_PREFIX:PATH=../tbb_install | ||
-DTBB_STRICT=OFF | ||
-DTBB_TEST=OFF | ||
-DTBB4PY_BUILD=OFF | ||
${{ runner.os == 'macOS' && '-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_MACOSX_RPATH=ON' || null }} | ||
${{ runner.os == 'Windows' && '-Ax64 -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL' || null }} | ||
- name: Build TBB | ||
if: steps.cache-tbb.outputs.cache-hit != 'true' | ||
working-directory: ${{github.workspace}}/dependencies/tbb_build | ||
shell: bash | ||
run: cmake --build . --parallel 2 --target install --config Release | ||
|
||
- name: Copy to install | ||
working-directory: ${{github.workspace}}/dependencies/tbb_install | ||
shell: bash | ||
run: cp -r ./* ../install/ |
Oops, something went wrong.