-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
automatically build library with cmake
and test with ctest
#390
Conversation
Thanks for trying this. I authorized and triggered the workflows. They all fail. https://github.com/google/s2geometry/actions/runs/11724915532/job/32662569678?pr=390 Getting action download info
Error: Unable to resolve action `actions/checkout@v5`, unable to find version `v5` Doesn't this also need to do something to install the dependencies like abseil-cpp? |
oof, I always forget it only has
oh yes, I forgot about abseil |
Can you use I triggered it again for another batch of failures. |
it's better to use a commit hash for security, because if someone takes control of the upstream action repo they could theoretically retag an existing tag to point to malicious code It's not a pressing issue though, so we could just change it to |
98f17dd
to
63942fa
Compare
thank you for being so patient as I iterate on this workflow! I'm attempting to make it easier to obtain wheels for |
I ran it again. |
I'm able to run actions on my fork: https://github.com/zacharyburnett/s2geometry/actions I'll try to get this running |
Install the project...
-- Install configuration: ""
CMake Error at absl/base/cmake_install.cmake:46 (file):
file cannot create directory: /usr/local/lib/pkgconfig. Maybe need
administrative privileges.
Call Stack (most recent call first):
absl/cmake_install.cmake:47 (include)
cmake_install.cmake:47 (include) You probably need I use Then build |
ah, thank you! I apologize, I'm not familiar with building C++ at all, so I appreciate your help |
dc548fd
to
fe3b53a
Compare
How do you make https://github.com/google/s2geometry/actions/runs/11747466338/job/32729571493?pr=390 |
https://github.com/google/s2geometry/actions/runs/11747466338/job/32729571493?pr=390#step:4:505 The something happened to https://github.com/google/s2geometry/actions/runs/11747466338/job/32729571493?pr=390#step:4:473 |
|
ed5b5e7
to
9614d07
Compare
@jmr Thank you for being so patient as I figured this out. As you can see in the test run at https://github.com/zacharyburnett/s2geometry/actions/runs/11782372194, I was able to get the wheels to build and upload as artifacts to the run. It turns out that the reason why We could also set the workflow to upload wheels to PyPI if triggered by a release; however, currently the - if: (github.event_name == 'release') && (github.event.action == 'released')
uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc # v1.12.2 Then you can add |
09eae89
to
edd019c
Compare
so I've been QUITE dumb 😅 All this time I've been trying to recreate |
ac53057
to
6322abf
Compare
taking this back into draft until I can figure out the magic config for |
Ok, thanks for working so hard on this. |
I think getting some automated test running would still be a great improvement. Could you just take out/disable the failing macOS parts? That could be a separate PR when it's ready. |
6322abf
to
0c173d8
Compare
cmake
and test with ctest
runs-on: ${{ matrix.runs-on }} | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: zacharyburnett/setup-abseil-cpp@de39f445295c887839e30c864ffbbb1c0231bc83 # 1.0.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering, what's the difference between setup-abseil-cpp
and using vcpkg
or homebrew
to install abseil-cpp
? I see both vcpkg
and homebrew
are installed on the runner images.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a while ago, but I think I remember that the homebrew
recipe was not configured such that it could link properly, which is why I resorted to building it manually; I did not try vcpkg
though
Thanks! |
macos-latest times out: https://github.com/google/s2geometry/actions/runs/13091503445/job/36528655440 This should not take 30 minutes, the other runners are much faster. |
run
cmake
andmake install
in GitHub Actions to test the build