Skip to content

Commit f300954

Browse files
committed
update
1 parent 7d350c2 commit f300954

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

.github/workflows/windows.yml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,27 @@ jobs:
2222
echo $SOFA_ROOT >> $GITHUB_PATH
2323
echo $EIGEN_ROOT >> $GITHUB_PATH
2424
echo $PYBIND11_ROOT >> $GITHUB_PATH
25+
echo $BOOST_ROOT_1_72_0 >> $GITHUB_PATH
2526
26-
# - name: Checkout source code
27-
# uses: actions/checkout@v2
28-
#
29-
# - name: Set up Python 3.7
30-
# uses: actions/setup-python@v2
31-
# with:
32-
# python-version: '3.7'
27+
- name: Checkout source code
28+
uses: actions/checkout@v2
29+
30+
- name: Set up Python 3.7
31+
uses: actions/setup-python@v2
32+
with:
33+
python-version: '3.7'
34+
35+
- name: Cache dependencies
36+
id: cache-dependencies
37+
uses: actions/cache@v2
38+
with:
39+
path: |
40+
${{ github.workspace }}/eigen
41+
${{ github.workspace }}/pybind11
42+
key: ${{ runner.os }}-dependencies
3343

3444
- name: Install Eigen 3
45+
if: steps.cache-dependencies.outputs.cache-hit != 'true'
3546
shell: bash
3647
run: |
3748
export BOOST_ROOT=$BOOST_ROOT_1_72_0
@@ -42,17 +53,14 @@ jobs:
4253
cmake --build . --target install --config Release
4354
4455
- name: Install pybind11
56+
if: steps.cache-dependencies.outputs.cache-hit != 'true'
4557
shell: bash
4658
run: |
4759
git clone --depth 1 https://github.com/pybind/pybind11.git pybind11_src
4860
cd pybind11_src && mkdir build && cd build
4961
cmake -DPYBIND11_TEST=OFF -DCMAKE_INSTALL_PREFIX=$PYBIND11_ROOT ..
5062
cmake --build . --target install --config Release
5163
52-
- name: Display the path
53-
shell: pwsh
54-
run: |
55-
echo ${env:PATH}
5664
5765
- name: Download SOFA nightly build
5866
shell: pwsh
@@ -67,4 +75,9 @@ jobs:
6775
unzip temp/Windows/`ls temp/Windows/` -d temp
6876
rm -rf temp/Windows
6977
mv temp/`ls temp` ${SOFA_ROOT}
70-
rm -rf temp
78+
rm -rf temp
79+
80+
- name: Build
81+
run: |
82+
cmake .
83+
make --build . --config Release

0 commit comments

Comments
 (0)