File tree Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,39 @@ jobs:
1515 steps :
1616 - uses : actions/checkout@v3
1717
18+ - name : Cache externals
19+ id : cache-externals
20+ uses : actions/cache@v3
21+ with :
22+ path : ${{runner.temp}}/boost_1_88_0
23+ key : cache-externals
24+
1825 - name : Get externals
26+ if : steps.cache-externals.outputs.cache-hit != 'true'
27+ working-directory : ${{runner.temp}}
1928 run : |
20- sudo apt-get install g++-10 libboost-all-dev
29+ sudo apt-get install g++-10
2130 pip3 install pyOpenSSL
31+ # Download Boost.
32+ wget https://archives.boost.io/release/1.88.0/source/boost_1_88_0.tar.gz
33+ # Extract.
34+ tar -xvzf boost_1_88_0.tar.gz
35+ # Build.
36+ cd boost_1_88_0
37+ ./bootstrap.sh
38+ ./b2 link=static
2239
2340 - name : Build
41+ env :
42+ BOOST_ROOT : ${{runner.temp}}/boost_1_88_0
43+ Boost_INCLUDE_DIR : ${{runner.temp}}/boost_1_88_0/libs/headers
2444 run : |
2545 mkdir -p build/release
26- cmake -S . -B build/release -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++-10
46+ cmake -S . -B build/release `
47+ -DCMAKE_BUILD_TYPE=Release `
48+ -DCMAKE_CXX_COMPILER=g++-10 `
49+ -DBoost_USE_STATIC_LIBS=ON `
50+ -DBoost_DIR="$BOOST_ROOT/stage/lib/cmake/Boost-1.88.0"
2751 cmake --build build/release
2852
2953 - name : Test libftp
You can’t perform that action at this time.
0 commit comments