Skip to content

Commit 63942fa

Browse files
attempt to build and install abseil-cpp in the runner workflow
1 parent 878a26e commit 63942fa

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,24 @@ jobs:
2222
- windows-latest
2323
runs-on: ${{ matrix.runs-on }}
2424
steps:
25+
- uses: jwlawson/actions-setup-cmake@802fa1a2c4e212495c05bf94dba2704a92a472be # v2.0.2
26+
with:
27+
cmake-version: ${{ inputs.cmake-version }}
28+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29+
with:
30+
repository: abseil/abseil-cpp
31+
path: ./_abseil-cpp/
32+
- run: mkdir ./_abseil-cpp/build/
33+
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
34+
with:
35+
path: ./_abseil-cpp/build/
36+
key: abseil-cpp-${{ runner.os }}-${{ runner.arch }}
37+
- run: |
38+
cmake -DCMAKE_CXX_STANDARD=${{ inputs.cmake-cxx-standard }} ..
39+
cmake --build . --target install
40+
cmake --install .
41+
working-directory: ./_abseil-cpp/build/
42+
- run: rm -rf ./_abseil-cpp/
2543
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2644
- uses: pypa/cibuildwheel@7940a4c0e76eb2030e473a5f864f291f63ee879b # v2.21.3
2745
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3

0 commit comments

Comments
 (0)