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

Freebsd CI #1460

Merged
merged 11 commits into from
Jun 24, 2024
Merged

Freebsd CI #1460

merged 11 commits into from
Jun 24, 2024

Conversation

tigercosmos
Copy link
Collaborator

No description provided.

@tigercosmos tigercosmos marked this pull request as ready for review June 23, 2024 09:41
@tigercosmos tigercosmos requested a review from seladb as a code owner June 23, 2024 09:41
cmake -S . -B Dist
cmake --build Dist -j$(sysctl -n hw.ncpu)

echo "Setting up the network interface for the tests"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

since we cannot split the commands when we already in a run, just echoing the names.

note that we cannot have multiple runs, because the each run will init a new VM.

Copy link
Owner

Choose a reason for hiding this comment

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

note that we cannot have multiple runs, because the each run will init a new VM.

Why can't we split it into multiple runs? As far as I know, all run commands share the same environment.
One thing they might not share is the interface_name variable, but I think you can calculate it once and store it in $GITHUB_ENV: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#environment-files

I'd suggest splitting into multiple steps according to the echo commands you used

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

since a "run" here actually go into the VM environment, so we must to stay in the same "run"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Owner

Choose a reason for hiding this comment

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

since a "run" here actually go into the VM environment, so we must to stay in the same "run"

Yes you're right! this step sets up a FreeBSD VM so if we use it in multiple steps, multiple VMs will be created

@tigercosmos
Copy link
Collaborator Author

@seladb please check.

.github/workflows/build_and_test.yml Show resolved Hide resolved
cmake -S . -B Dist
cmake --build Dist -j$(sysctl -n hw.ncpu)

echo "Setting up the network interface for the tests"
Copy link
Owner

Choose a reason for hiding this comment

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

note that we cannot have multiple runs, because the each run will init a new VM.

Why can't we split it into multiple runs? As far as I know, all run commands share the same environment.
One thing they might not share is the interface_name variable, but I think you can calculate it once and store it in $GITHUB_ENV: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#environment-files

I'd suggest splitting into multiple steps according to the echo commands you used

@tigercosmos tigercosmos requested a review from seladb June 24, 2024 02:58
@tigercosmos tigercosmos merged commit 401b5db into seladb:dev Jun 24, 2024
39 checks passed
@tigercosmos tigercosmos deleted the freebsd-ci branch June 24, 2024 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants