-
Notifications
You must be signed in to change notification settings - Fork 37
ci: Add openbsd #195
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
ci: Add openbsd #195
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,34 @@ on: | |
| pull_request: | ||
|
|
||
| jobs: | ||
| build-openbsd: | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| shell: openbsd {0} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
maflcko marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - name: Start OpenBSD VM | ||
| uses: vmactions/openbsd-vm@v1 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess this needs to be added, like #184 (comment). (I can't vouch for this action, but I guess it should be fine to enable, even if backdoored?) |
||
| with: | ||
| prepare: | | ||
| pkg_add -v cmake ninja git python bash | ||
| run: | | ||
| git clone --depth=1 https://codeberg.org/OpenBSD/ports.git /usr/ports | ||
| sync: 'rsync' | ||
| copyback: false | ||
|
|
||
| - name: Install capnproto | ||
| run: | | ||
| cd /usr/ports/devel/capnproto/ | ||
| make install | ||
|
|
||
| - name: Run CI script | ||
| run: | | ||
| cd ${{ github.workspace }} | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In commit "ci: Add openbsd" (98414e7) Seems like this line might redundant according to https://github.com/vmactions/openbsd-vm "you will have the same directory". Would be nice if if it could be dropped to be simpler and consistent with the other job
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When |
||
| CI_CONFIG="ci/configs/openbsd.bash" bash ci/scripts/ci.sh | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In commit "ci: Add openbsd" (98414e7) Note: It seems to be necessary to set CI_CONFIG this way instead of with |
||
|
|
||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| CI_DESC="CI config for OpenBSD" | ||
| CI_DIR=build-openbsd | ||
| export CXXFLAGS="-Werror -Wall -Wextra -Wpedantic -Wno-unused-parameter" | ||
| CMAKE_ARGS=(-G Ninja) | ||
| BUILD_ARGS=(-k 0) | ||
maflcko marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Uh oh!
There was an error while loading. Please reload this page.