-
Notifications
You must be signed in to change notification settings - Fork 61
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
chore: remove F39 workflow and refactor matrixes #718
Conversation
strategy: | ||
fail-fast: false | ||
matrix: | ||
image_name: | ||
- base | ||
- silverblue | ||
- kinoite | ||
- sericea | ||
- onyx | ||
- lazurite | ||
- vauxite | ||
with: |
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.
Once F42 is out, we can simply duplicate this workflow and remove the images we don't wish to build.
Saves us trying to create a matrix which has different behaviour for 3 different fedora versions:
- 40 - use sericea, onyx naming etc
- 41 - switch to *-atomic naming
- 42 - remove unofficial images
include: | ||
- image_name: base | ||
source_image_name: base-atomic | ||
- image_name: onyx | ||
source_image_name: budgie-atomic | ||
- image_name: sericea | ||
source_image_name: sway-atomic | ||
- image_name: lazurite | ||
source_image_name: lxqt-atomic | ||
- image_name: vauxite | ||
source_image_name: xfce-atomic |
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.
From F42+, we can switch to the *-atomic naming wherever used upstream, so this will only be used in F41 workflows.
strategy: | ||
fail-fast: false | ||
matrix: | ||
fedora_version: | ||
- ${{ inputs.fedora_version }} | ||
image_name: | ||
- silverblue | ||
- kinoite | ||
- sericea | ||
- onyx | ||
- base | ||
- lazurite | ||
- vauxite | ||
include: | ||
- image_name: base | ||
source_image: ${{ inputs.fedora_version == '41' && 'base-atomic' || '' }} | ||
- image_name: sericea | ||
source_image: ${{ inputs.fedora_version == '41' && 'sway-atomic' || '' }} | ||
- image_name: onyx | ||
source_image: ${{ inputs.fedora_version == '41' && 'budgie-atomic' || '' }} | ||
- image_name: lazurite | ||
source_image: ${{ inputs.fedora_version == '41' && 'lxqt-atomic' || '' }} | ||
- image_name: vauxite | ||
source_image: ${{ inputs.fedora_version == '41' && 'xfce-atomic' || '' }} |
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.
All matrix logic is in the parent workflows so you don't need any conditionals here
- name: Matrix Variables | ||
shell: bash | ||
env: | ||
MATRIX_SOURCE_IMAGE: ${{ matrix.source_image }} | ||
MATRIX_IMAGE_NAME: ${{ matrix.image_name }} | ||
IMAGE_NAME: ${{ inputs.image_name }} | ||
FEDORA_VERSION: ${{ inputs.fedora_version }} | ||
SOURCE_IMAGE_NAME: ${{ inputs.source_image_name }} | ||
run: | | ||
if [[ -z $MATRIX_SOURCE_IMAGE ]]; then | ||
echo "MATRIX_SOURCE_IMAGE empty" | ||
SOURCE_IMAGE=$MATRIX_IMAGE_NAME | ||
else | ||
echo "MATRIX_SOURCE_IMAGE not empty" | ||
SOURCE_IMAGE=$MATRIX_SOURCE_IMAGE | ||
SOURCE_IMAGE=$IMAGE_NAME | ||
if [[ "$SOURCE_IMAGE_NAME" != "" ]]; then | ||
SOURCE_IMAGE=$SOURCE_IMAGE_NAME | ||
fi | ||
|
||
echo "SOURCE_ORG=fedora-ostree-desktops" >> $GITHUB_ENV | ||
echo "IMAGE_NAME=$MATRIX_IMAGE_NAME-main" >> $GITHUB_ENV | ||
echo "IMAGE_NAME=$IMAGE_NAME-main" >> $GITHUB_ENV | ||
echo "SOURCE_IMAGE=$SOURCE_IMAGE" >> $GITHUB_ENV |
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.
This can be removed when F41 is EOL'd. It's needed so we can keep the old "sericea" etc naming convention for the existing images
This was an incorrect conflict resolution
This removes the F39 workflow since it's disabled now 39 is EOL
Also refactors the matrix out of the reusable build, which makes it far easier when we come to deprecating the unofficial desktops.
Once merged, I'll make a F42 draft PR where we actually stop building for these DEs in F42+.