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

feat: running workflows on container with reusable actions #69

Merged
merged 5 commits into from
Feb 3, 2025

Conversation

khos2ow
Copy link
Member

@khos2ow khos2ow commented Feb 2, 2025

This PR changes the workflow files to using the reusable actions and running the in containers.

Changes:

  • builder-deb-v4.yml: deprecated and removed
  • builder-deb-v5.yml: added as the next generation of debian package builder
  • publish-packages.yml: start using reusable actions on container
  • rebuild-sources.yml: start using reusable actions on container
  • test-desktop-installable2.yml: start using reusable actions on container

another major change is:

  • dropped the support for making and publishing a release after each workflow run:

    the reason is that all the changelogs, manifests change, etc are being tracked in repository anyways and we are going to use the tag and release on this repo for actual "Regolith 3.x[-beta?]" version releases.

Copy link
Member

@kgilmer kgilmer left a comment

Choose a reason for hiding this comment

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

LGTM

echo "includes=$(jq -n -c "[$(printf '%s\n' "${INCLUDES[@]}" | paste -sd,)]" '$ARGS.named')" >> $GITHUB_OUTPUT
echo "excludes=$(jq -n -c "[$(printf '%s\n' "${EXCLUDES[@]}" | paste -sd,)]" '$ARGS.named')" >> $GITHUB_OUTPUT

# build packages and sources
build:
runs-on: [self-hosted, Linux, "${{ fromJSON(needs.matrix-builder.outputs.runners)[matrix.arch] }}", "${{ matrix.codename }}"]
runs-on: ${{ fromJSON(needs.matrix-builder.outputs.runners)[matrix.arch] }}
Copy link
Member

Choose a reason for hiding this comment

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

for my understanding, is there somewhere to see what this value looks like?

Copy link
Member Author

Choose a reason for hiding this comment

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

Check the comment below.

@@ -159,15 +159,17 @@ jobs:
echo "codenames=$(jq -n -c '$ARGS.positional' --args -- "${CODENAMES[@]}")" >> $GITHUB_OUTPUT
echo "arches=$(jq -n -c '$ARGS.positional' --args -- "${ARCHES[@]}")" >> $GITHUB_OUTPUT
echo "suites=$(jq -n -c "${SUITES}" '$ARGS.named')" >> $GITHUB_OUTPUT
echo "runners=$(jq -n -c "$(jq -n -c --arg amd64 "X64" --arg arm64 "arm64" '$ARGS.named')" '$ARGS.named')" >> $GITHUB_OUTPUT
echo "runners=$(jq -n -c "$(jq -n -c --arg amd64 "ubuntu-24.04" --arg arm64 "ubuntu-24.04-arm" '$ARGS.named')" '$ARGS.named')" >> $GITHUB_OUTPUT
Copy link
Member Author

Choose a reason for hiding this comment

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

This is json values for runners for each arch

@khos2ow khos2ow merged commit 8a8677a into main Feb 3, 2025
23 checks passed
@khos2ow khos2ow deleted the builder-v5 branch February 3, 2025 14:24
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