Browse Source

Merge pull request from tenacityteam/emabrey/ci-build-split

Add CI build skipping/cancelling logic

Signed-off-by: Emily Mabrey <emabrey@tenacityaudio.org>
Reference-to: https://github.com/tenacityteam/tenacity/pull/605
emabrey/wix-cpack
Emily Mabrey 1 year ago
committed by GitHub
parent
commit
f87b03744a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 31
      .github/workflows/cmake_build.yml
  2. 3
      .github/workflows/flatpak.yml

31
.github/workflows/cmake_build.yml

@ -12,7 +12,38 @@ defaults:
shell: bash
jobs:
skip_test:
name: "CI Build Skipping Logic"
runs-on: ubuntu-latest
permissions:
actions: write
checks: read
contents: read
deployments: read
issues: read
discussions: read
packages: read
pull-requests: read
repository-projects: read
security-events: read
statuses: read
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
paths: '[]'
paths_ignore: '["**/**.md", "**/**.dox2", "**/**.dox", "**/**.dox.in", "**/LICENSE.txt", "/.builds/**", "/.github/ISSUE_TEMPLATE/**", "/.github/funding.yml", "/.vscode/**"]'
do_not_skip: '["workflow_dispatch", "schedule"]'
cancel_others: 'true'
skip_after_successful_duplicate: 'true'
concurrent_skipping: 'same_content_newer'
build:
needs: skip_test
if: ${{ needs.skip_test.outputs.should_skip != 'true' }}
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:

3
.github/workflows/flatpak.yml

@ -2,7 +2,8 @@ name: Packaging
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
jobs:
flatpak:
name: "Flatpak"

Loading…
Cancel
Save