@@ -13,59 +13,25 @@ jobs:
1313 steps :
1414 - uses : actions/checkout@v4
1515
16- - name : Checkout GKlib
17- uses : actions/checkout@v4
16+ # 2. Set up caching for vcpkg
17+ - name : Cache vcpkg
18+ uses : actions/cache@v3
1819 with :
19- repository : KarypisLab/GKlib
20- ref : master
21- path : GKlib
20+ path : |
21+ ./vcpkg/installed
22+ ./vcpkg/downloads
23+ key : vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }}
24+ restore-keys : |
25+ vcpkg-${{ runner.os }}-
2226
23- - name : Checkout METIS
24- uses : actions/checkout@v4
25- with :
26- repository : KarypisLab/METIS
27- ref : master
28- path : METIS
29-
30- - name : Create installs dir
31- working-directory : ${{runner.workspace}}
32- shell : bash
33- run : |
34- mkdir installs
35- ls
36-
37- - name : Install GKLIB
38- working-directory : ${{runner.workspace}}
39- shell : bash
40- run : |
41- cd GKlib
42- cmake -S. -B build -DCMAKE_INSTALL_PREFIX==${{runner.workspace}}/installs
43- cmake --build build --config Release
44- cmake --install build
27+ # - name: Install GKlib
28+ # run: vcpkg install gklib
4529
46- - name : Check GKlib
47- working-directory : ${{runner.workspace}}
48- run : |
49- cd installs
50- ls
51- ls Release/lib
30+ # - name: ls
31+ # run: ls C:/vcpkg/packages/gklib_x64-windows/share/gklib
5232
5333 - name : Install METIS
54- run : |
55- cd METIS
56- cmake -S. -B build -DCMAKE_INSTALL_PREFIX==${{runner.workspace}}/installs
57- cmake --build build --config Release
58- cmake --install build
59- make config prefix=${{runner.workspace}}/installs
60- make
61- make install
62-
63- - name : Check METIS
64- working-directory : ${{runner.workspace}}
65- run : |
66- cd installs
67- ls
68- ls lib
34+ run : vcpkg install metis
6935
7036 # run: ls C:/vcpkg/packages/metis_x64-windows/
7137 # run: ls C:/vcpkg/packages/metis_x64-windows/lib
8450 run : |
8551 cmake $GITHUB_WORKSPACE \
8652 -DHIPO=ON \
87- -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
53+ -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake \
54+
55+ # -DCMAKE_CXX_FLAGS="-I C:/vcpkg/packages/gklib_x64-windows/include/GKlib"
8856
8957 - name : Build
9058 shell : bash
0 commit comments