Skip to content
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

Add tests and publish actions #5

Merged
merged 6 commits into from
Jan 14, 2024
Merged

Add tests and publish actions #5

merged 6 commits into from
Jan 14, 2024

Conversation

erikcorry
Copy link

No description provided.

Copy link
Member

@floitsch floitsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install ninja-build
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you don't need to build executables, I would avoid the ninja-part.
See https://github.com/toitlang/pkg-fs.

(cd build && ninja install-pkgs)

.PHONY: test
test: install-pkgs rebuild-cmake
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See pkg-fs for how to write this without ninja.


add_custom_target(
check
COMMAND ${CMAKE_CTEST_COMMAND} -j${NUM_CPU} -T test --output-on-failure
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See pkg-fs for how to do this without ninja.

@erikcorry erikcorry merged commit 78e6e6b into main Jan 14, 2024
3 checks passed
@erikcorry erikcorry deleted the tests branch January 14, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants