-
Notifications
You must be signed in to change notification settings - Fork 8
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
Testing workflows #164
base: main
Are you sure you want to change the base?
Testing workflows #164
Conversation
64abd5b
to
804cbaf
Compare
27f70dd
to
9b757b6
Compare
9b757b6
to
7914fe4
Compare
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# TODO: move this setup into a reusable docker image; |
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.
The tests should run on Windows and MacOS too; instead of a docker image it seems to me we rather make a matrix?
Command::cargo_bin(common::REVIVE_LLVM)? | ||
.current_dir(test_dir.path()) | ||
.arg("build") | ||
.arg("--llvm-projects") | ||
.arg("clang") | ||
.arg("--llvm-projects") | ||
.arg("lld") | ||
.assert() | ||
.success(); |
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.
Marking it here but can you remove the builtins
command below as a drive-by? The builtins are built anyways during the build
command.
Command::cargo_bin(common::REVIVE_LLVM)? | ||
.current_dir(test_dir.path()) | ||
.arg("build") | ||
.arg("--llvm-projects") | ||
.arg("clang") | ||
.arg("--llvm-projects") | ||
.arg("lld") | ||
.assert() | ||
.success(); | ||
|
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.
Shouldn't this and the below command be merged? This here builds LLVM, clang and LLD. Below builds LLVM with tests and coverage.
@@ -116,6 +136,16 @@ fn build_with_sanitizers() -> anyhow::Result<()> { | |||
.assert() | |||
.success(); | |||
|
|||
Command::cargo_bin(common::REVIVE_LLVM)? |
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.
Same as above
.arg("--llvm-projects") | ||
.arg("clang") |
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.
.arg("--llvm-projects") | |
.arg("clang") |
We should only need LLD; this will make the test consume less resources.
|
||
jobs: | ||
test: | ||
runs-on: parity-large |
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.
We will release on Windows and MacOS too, so this probably should be a matrix test with those platforms to avoid any problems during releasing.
Okay, taking this PR back to draft, let's see how win & mac will run the tests |
No description provided.