Skip to content

[bazel][ci-minor-increase] Make new CI workflow: faster and aligned with Bazel ideas#39

Merged
HyperWinX merged 7 commits intomasterfrom
support-musl
Aug 25, 2025
Merged

[bazel][ci-minor-increase] Make new CI workflow: faster and aligned with Bazel ideas#39
HyperWinX merged 7 commits intomasterfrom
support-musl

Conversation

@AshFungor
Copy link
Contributor

@AshFungor AshFungor commented Aug 23, 2025

This started out as support for distros musl-libc compiled binaries, but turned out to be a full workflow refactor.

Key changes:

  • remove conan. Quite useless, since we mostly consume google libs - they ship with bazel. Except for eternal, which is header-only so no trouble here.
  • use single CI docker image, then build and cross-compile everywhere. Much easier to support, much easier to setup.
  • binaries are packed into tars and deployed for testing (arch, debian, fedora)
  • formatting is mandatory
  • linting is optional, but it is recommended to search their outputs

There is still work to document new dev workflows, I'll work on that a couple of weeks later.

@mentatbot
Copy link

mentatbot bot commented Aug 23, 2025

You are out of Mentat credits. You can view and refresh your credits here.

To disable this message on pr open, disable Always Review on my settings page

Comment on lines +15 to +18
needs: prepare
uses: ./.github/workflows/mainline-compile.yml

format:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Comment on lines +19 to +22
needs: prepare
uses: ./.github/workflows/mainline-format.yml

lint:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Comment on lines 12 to 40
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: Debian
image: debian:stable
- name: Fedora
image: fedora:latest
- name: Arch Linux
image: archlinux:base-devel

container:
image: ${{ matrix.image }}

steps:
- name: Download tarball artifacts
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact_name }}
path: artifacts

- name: Extract and run tarballs
run: |
for archive in artifacts/*.tar.gz; do
tar -xzf "$archive" -C / --no-same-owner --no-same-permissions
for test in /opt/hcpu/tests/*; do ./$test; done
done

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Comment on lines +23 to +26
needs: prepare
uses: ./.github/workflows/mainline-lint.yml

tests:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Comment on lines +27 to +28
needs: package
uses: ./.github/workflows/mainline-test.yml No newline at end of file

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
@AshFungor AshFungor requested a review from HyperWinX August 24, 2025 18:16
@AshFungor AshFungor self-assigned this Aug 24, 2025
@AshFungor AshFungor changed the title [bazel] Make new CI workflow: faster and aligned with Bazel ideas [bazel][ci-minor-increase] Make new CI workflow: faster and aligned with Bazel ideas Aug 24, 2025
Copy link
Member

@HyperWinX HyperWinX left a comment

Choose a reason for hiding this comment

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

Perfect.

@HyperWinX HyperWinX merged commit 1380e07 into master Aug 25, 2025
11 checks passed
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