[vlc-commits] [Git][videolan/vlc][3.0.x] 5 commits: CI: Use rules instead of only/except
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Aug 11 10:08:25 UTC 2026
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
a1621c2d by Hugo Beauzée-Luyssen at 2026-08-10T10:10:54+02:00
CI: Use rules instead of only/except
rules allow finer customizations, and only/except is to be considered
deprecated according to gitlab docs
(cherry picked from commit 07f0936971627bca0bbe0e259703c0dfe099f11b)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
- - - - -
ed797f13 by Hugo Beauzée-Luyssen at 2026-08-10T10:16:05+02:00
CI: Fix rules to keep running pipelines on master
Not doing so will eventually lead to issues with prebuilt contribs when
the pipeline doesn't run in the videolan/vlc namespace
(cherry picked from commit 24d2b767a611af9c3041accc2489e48786732b88) (edited)
edited:
- detect the 3.0.x branch with CI_COMMIT_REF_NAME
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
- - - - -
57102019 by Steve Lhomme at 2026-08-10T10:21:48+02:00
CI: Use rules for tags
Similar to 07f0936971627bca0bbe0e259703c0dfe099f11b for tags.
- - - - -
d02cb1ac by Khalid Masum at 2026-08-10T10:22:36+02:00
CI: Do not start CI for Draft MRs
This can be utilized to prevent unnecessary usage of CI resources
for simple fixes like changing styles, removing whitespaces, or
code changes that is not important to check unless ready.
Those who need the checks can use the manual feature.
(cherry picked from commit 2be076408ac3ca71d2ddc693db73dc48f1c4d68f)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
- - - - -
26ce003d by Steve Lhomme at 2026-08-10T10:22:41+02:00
CI: do not interrupt nightly builds
If a Merge Request is merged while nightly builds are running, the nightly builds
are interrupted/canceled and we don't get the nightly builds.
(cherry picked from commit 2cd8705589d3b125f236d1af695c3961fdcf6ca4) (edited)
edited:
- adapted to the jobs that do nightlies in 3.0
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
- - - - -
1 changed file:
- extras/ci/gitlab-ci.yml
Changes:
=====================================
extras/ci/gitlab-ci.yml
=====================================
@@ -83,12 +83,11 @@ variables:
# Common rules
.base-template:
stage: build
- only:
- refs:
- - merge_requests
- - 3.0.x at videolan/vlc
- except:
- - schedules
+ rules:
+ - if: '$CI_MERGE_REQUEST_DRAFT == "true"'
+ when: manual
+ - if: $CI_MERGE_REQUEST_IID
+ - if: '$CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_PATH == "videolan/vlc" && $CI_COMMIT_REF_NAME == "3.0.x"'
artifacts:
paths:
- contrib/vlc-contrib-${TRIPLET}-*.tar.zst
@@ -163,14 +162,14 @@ uwparm64-libvlc-llvm:
.nightly-win-common:
extends: .win-common
- only:
- - schedules
- except:
+ rules:
+ - if: '$CI_PIPELINE_SOURCE == "schedule"'
after_script:
- mkdir nightlies
- for ext in 7z; do mv ${VLCARCH}/vlc-*-debug.${ext} nightlies/$(basename ${VLCARCH}/vlc-*-debug.${ext} | sed "s/\.${ext}/-${CI_COMMIT_SHORT_SHA}\.${ext}/"); done
- for ext in exe msi 7z zip; do mv ${VLCARCH}/vlc-*.${ext} nightlies/$(basename ${VLCARCH}/vlc-*.${ext} | sed "s/\.${ext}/-${CI_COMMIT_SHORT_SHA}\.${ext}/"); done
- cd nightlies && find . -maxdepth 1 -type f -not -name SHA512SUM | xargs shasum -a 512 | tee SHA512SUM
+ interruptible: false
artifacts:
paths:
- nightlies/*
@@ -199,8 +198,8 @@ nightly-win64-arm-llvm:
.release-win-common:
# We don't use any of the .win-common template so just use .docker-template
extends: .docker-template
- only:
- - tags
+ rules:
+ - if: '$CI_COMMIT_TAG'
tags:
- release
- amd64
@@ -233,8 +232,8 @@ nightly-win64-arm-llvm:
release-debian:
extends: .docker-template
- only:
- - tags
+ rules:
+ - if: '$CI_COMMIT_TAG'
tags:
- release
- amd64
@@ -357,10 +356,10 @@ debian-qt6:
nightly-debian:
extends: debian
- only:
- - schedules
- except:
+ rules:
+ - if: '$CI_PIPELINE_SOURCE == "schedule"'
after_script:
+ interruptible: false
artifacts:
.flatpak-common:
@@ -387,12 +386,12 @@ nightly-debian:
nightly-flatpak-x86_64:
extends: .flatpak-common
- only:
- - schedules
- except:
+ rules:
+ - if: '$CI_PIPELINE_SOURCE == "schedule"'
image:
name: $VLC_FLATPAK_IMAGE
entrypoint: [""]
+ interruptible: false
variables:
FLATPAK_BRANCH: 3.0-nightly
HOST_ARCH: x86_64
@@ -401,8 +400,8 @@ nightly-flatpak-x86_64:
.release-flatpak:
extends: .flatpak-common
- only:
- - tags
+ rules:
+ - if: '$CI_COMMIT_TAG'
variables:
FLATPAK_BRANCH: stable
@@ -420,8 +419,8 @@ release-flatpak-x86_64:
flatpak-repo:
stage: repo
extends: .docker-template
- only:
- - tags
+ rules:
+ - if: '$CI_COMMIT_TAG'
image:
name: $VLC_FLATPAK_IMAGE
entrypoint: [""]
@@ -479,13 +478,13 @@ macos-arm64:
.nightly-macos-common:
extends: .macos-common
- only:
- - schedules
- except:
+ rules:
+ - if: '$CI_PIPELINE_SOURCE == "schedule"'
after_script:
- mkdir nightlies
- mv build/vlc-*.dmg nightlies/$(basename build/vlc-*.dmg | sed "s/\.dmg/-${SHORTARCH}-${CI_COMMIT_SHORT_SHA}\.dmg/")
- cd nightlies && find . -maxdepth 1 -type f -not -name SHA512SUM | xargs shasum -a 512 | tee SHA512SUM
+ interruptible: false
artifacts:
paths:
- nightlies/*
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/1010bf3e447af606feb71d7f46d28f9df33b74f8...26ce003d05414389a5620fcb1ab8c5c4e248e563
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/1010bf3e447af606feb71d7f46d28f9df33b74f8...26ce003d05414389a5620fcb1ab8c5c4e248e563
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list