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

build linux artifacts in containers. re-use cmake workflow. #525

Merged
merged 2 commits into from
Oct 18, 2022

Conversation

scareything
Copy link
Member

Use containers when building linux artifacts. this lets us use any version of any distro that we want for builds, without needing to "upgrade" when GitHub deprecates linux runners.

For now the runner is pinned at ubuntu-20.04 to ensure the oldest possible kernel. I left the build os at ubuntu-18.04, so that the builds are effectively unchanged from what we were getting before this PR. Of course we can now easily go back to an older distro if we want.

The release workflow also re-uses the cmake workflow instead of copying/pasting it. I'm sure we can use similar tricks to fold some of the cpack workflow, but this seems like a worthwhile improvement for now.

@scareything scareything requested a review from a team as a code owner October 18, 2022 14:34
container: ubuntu:18.04
name: Linux arm
install: crossbuild-essential-armhf libsystemd-dev
install: $common_ubuntu_deps crossbuild-essential-armhf
toolchain: Linux-arm.cmake
cmake_opts: -DCMAKE_BUILD_TYPE=Release
Copy link
Member Author

Choose a reason for hiding this comment

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

I noticed that we had not been building our release binaries with openssl. Should we? @ekoby?

Copy link
Member

Choose a reason for hiding this comment

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

it is separate discussion

git config --global --add safe.directory $GITHUB_WORKSPACE
git --version

- name: install contemporary cmake
Copy link
Member

Choose a reason for hiding this comment

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

there is an action for it: lukka/get-cmake
you get benefit of caching

@qrkourier
Copy link
Member

Loving the callable workflow keeping things DRY.

@scareything scareything merged commit 0d2f246 into main Oct 18, 2022
@scareything scareything deleted the build.in.container branch October 18, 2022 17:01
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.

3 participants