From 901552b6cb9a856cd0d96a62c095852b2cf162ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Chlup?= Date: Thu, 4 Jul 2024 10:41:46 +0200 Subject: [PATCH 1/2] ci: Add workaround on required tasks when CI is skipped --- .github/workflows/ci-ignored-workaround.yml | 45 +++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/ci-ignored-workaround.yml diff --git a/.github/workflows/ci-ignored-workaround.yml b/.github/workflows/ci-ignored-workaround.yml new file mode 100644 index 00000000..ae12867b --- /dev/null +++ b/.github/workflows/ci-ignored-workaround.yml @@ -0,0 +1,45 @@ +name: Skip CI on ignored paths +on: + push: + branches: + - '*' + paths: + - '.gitignore' + - '**.md' + - 'LICENSE' + pull_request: + branches: + - '*' + paths: + - '.gitignore' + - '**.md' + - 'LICENSE' + +jobs: + cmake-fedora-latest: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + compiler: [ gcc, clang ] + steps: + - name: Skip + run: echo "Skipping the job" + + clang-format-style-check: + runs-on: ubuntu-latest + steps: + - name: Skip + run: echo "Skipping the job" + + make-fedora-latest: + runs-on: ubuntu-latest + steps: + - name: Skip + run: echo "Skipping the job" + + tests: + runs-on: ubuntu-latest + steps: + - name: Skip + run: echo "Skipping the job" From 2fff3fb23f69231498ad07bb10a44a4f7bdc44ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Chlup?= Date: Thu, 4 Jul 2024 10:48:55 +0200 Subject: [PATCH 2/2] ci: Remove outdated comment --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f2c5d0d..2327479c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,7 +81,7 @@ jobs: podman build -f ./podmanfile clang-format-style-check: - # The ubuntu-latest has an old version of clang-format, let's just use the latest installed via brew. + # The ubuntu-latest has an old version of clang-format, let's use ubuntu-24.04 which is in Beta runs-on: ubuntu-24.04 steps: - name: Checkout