Skip to content

Commit

Permalink
Merge pull request #3239 from guilherme-gm/ci-updates-2
Browse files Browse the repository at this point in the history
Actions fixes and using "controller" for PRs
  • Loading branch information
MishimaHaruna authored Nov 19, 2023
2 parents b097666 + e0de07d commit 7e62e65
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: build

on: [workflow_call, pull_request]
on: workflow_call

env:
MYSQL_DATABASE: 'ragnarok'
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:
# github.head_ref will stop previous runs in the same PR (if in a PR)
# github.run_id is a fallback when outside a PR (e.g. every merge in master will run, and previous won't stop)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ matrix.CC }}-${{ matrix.RENEWAL }}-${{ matrix.CLIENT_TYPE }}-${{ matrix.HTTPLIB }}-${{ matrix.SANITIZER }}-${{ matrix.PACKET_VERSION}}-${{ matrix.LTO }}
group: build-${{ github.head_ref || github.run_id }}_${{ matrix.CC }}_${{ matrix.RENEWAL }}_${{ matrix.CLIENT_TYPE }}_${{ matrix.HTTPLIB }}_${{ matrix.SANITIZER }}_${{ matrix.PACKET_VERSION}}_${{ matrix.LTO }}
cancel-in-progress: true

container:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/clang15_test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: clang15_test

on: [workflow_call, pull_request]
on: workflow_call

env:
MYSQL_DATABASE: 'ragnarok'
Expand Down Expand Up @@ -28,7 +28,7 @@ jobs:
# github.head_ref will stop previous runs in the same PR (if in a PR)
# github.run_id is a fallback when outside a PR (e.g. every merge in master will run, and previous won't stop)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ matrix.CC }}-${{ matrix.RENEWAL }}-${{ matrix.CLIENT_TYPE }}-${{ matrix.HTTPLIB }}-${{ matrix.SANITIZER }}-${{ matrix.PACKET_VERSION}}
group: clang-15-${{ github.head_ref || github.run_id }}_${{ matrix.CC }}_${{ matrix.RENEWAL }}_${{ matrix.CLIENT_TYPE }}_${{ matrix.HTTPLIB }}_${{ matrix.SANITIZER }}_${{ matrix.PACKET_VERSION}}
cancel-in-progress: true

container:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "CodeQL"

on: [workflow_call, pull_request]
on: workflow_call

jobs:
analyze:
Expand All @@ -15,7 +15,7 @@ jobs:
# github.head_ref will stop previous runs in the same PR (if in a PR)
# github.run_id is a fallback when outside a PR (e.g. every merge in master will run, and previous won't stop)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ matrix.language }}
group: codeql-${{ github.head_ref || github.run_id }}_${{ matrix.language }}
cancel-in-progress: true

permissions:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/controller.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: controller

on:
push:
on: [push, pull_request]

jobs:
hwsapibot:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gcc_test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: gcc_test

on: [workflow_call, pull_request]
on: workflow_call

env:
MYSQL_DATABASE: 'ragnarok'
Expand Down Expand Up @@ -28,7 +28,7 @@ jobs:
# github.head_ref will stop previous runs in the same PR (if in a PR)
# github.run_id is a fallback when outside a PR (e.g. every merge in master will run, and previous won't stop)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ matrix.CC }}-${{ matrix.RENEWAL }}-${{ matrix.CLIENT_TYPE }}-${{ matrix.HTTPLIB }}-${{ matrix.SANITIZER }}-${{ matrix.PACKET_VERSION}}
group: gcc_test-${{ github.head_ref || github.run_id }}_${{ matrix.CC }}_${{ matrix.RENEWAL }}_${{ matrix.CLIENT_TYPE }}_${{ matrix.HTTPLIB }}_${{ matrix.SANITIZER }}_${{ matrix.PACKET_VERSION}}
cancel-in-progress: true

container:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gccold1.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: gcc_old1

on: [workflow_call, pull_request]
on: workflow_call

env:
MYSQL_DATABASE: 'ragnarok'
Expand Down Expand Up @@ -29,7 +29,7 @@ jobs:
# github.head_ref will stop previous runs in the same PR (if in a PR)
# github.run_id is a fallback when outside a PR (e.g. every merge in master will run, and previous won't stop)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ matrix.CC }}-${{ matrix.RENEWAL }}-${{ matrix.CLIENT_TYPE }}-${{ matrix.HTTPLIB }}-${{ matrix.SANITIZER }}-${{ matrix.PACKET_VERSION}}-${{ matrix.LTO }}
group: gccold1-${{ github.head_ref || github.run_id }}_${{ matrix.CC }}_${{ matrix.RENEWAL }}_${{ matrix.CLIENT_TYPE }}_${{ matrix.HTTPLIB }}_${{ matrix.SANITIZER }}_${{ matrix.PACKET_VERSION}}_${{ matrix.LTO }}
cancel-in-progress: true

container:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gccold2.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: gcc_old2

on: [workflow_call, pull_request]
on: workflow_call

env:
MYSQL_DATABASE: 'ragnarok'
Expand Down Expand Up @@ -29,7 +29,7 @@ jobs:
# github.head_ref will stop previous runs in the same PR (if in a PR)
# github.run_id is a fallback when outside a PR (e.g. every merge in master will run, and previous won't stop)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ matrix.CC }}-${{ matrix.RENEWAL }}-${{ matrix.CLIENT_TYPE }}-${{ matrix.HTTPLIB }}-${{ matrix.SANITIZER }}-${{ matrix.PACKET_VERSION}}-${{ matrix.LTO }}
group: gccold2-${{ github.head_ref || github.run_id }}_${{ matrix.CC }}_${{ matrix.RENEWAL }}_${{ matrix.CLIENT_TYPE }}_${{ matrix.HTTPLIB }}_${{ matrix.SANITIZER }}_${{ matrix.PACKET_VERSION}}_${{ matrix.LTO }}
cancel-in-progress: true

container:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gccold3.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: gcc_old3

on: [workflow_call, pull_request]
on: workflow_call

env:
MYSQL_DATABASE: 'ragnarok'
Expand Down Expand Up @@ -30,7 +30,7 @@ jobs:
# github.head_ref will stop previous runs in the same PR (if in a PR)
# github.run_id is a fallback when outside a PR (e.g. every merge in master will run, and previous won't stop)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ matrix.CC }}-${{ matrix.RENEWAL }}-${{ matrix.CLIENT_TYPE }}-${{ matrix.HTTPLIB }}-${{ matrix.SANITIZER }}-${{ matrix.PACKET_VERSION}}-${{ matrix.LTO }}
group: gccold3-${{ github.head_ref || github.run_id }}_${{ matrix.CC }}_${{ matrix.RENEWAL }}_${{ matrix.CLIENT_TYPE }}_${{ matrix.HTTPLIB }}_${{ matrix.SANITIZER }}_${{ matrix.PACKET_VERSION}}_${{ matrix.LTO }}
cancel-in-progress: true

container:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gccsnapshot_test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: gccsnapshot_test

on: [workflow_call, pull_request]
on: workflow_call

env:
MYSQL_DATABASE: 'ragnarok'
Expand Down Expand Up @@ -28,7 +28,7 @@ jobs:
# github.head_ref will stop previous runs in the same PR (if in a PR)
# github.run_id is a fallback when outside a PR (e.g. every merge in master will run, and previous won't stop)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ matrix.CC }}-${{ matrix.RENEWAL }}-${{ matrix.CLIENT_TYPE }}-${{ matrix.HTTPLIB }}-${{ matrix.SANITIZER }}-${{ matrix.PACKET_VERSION}}
group: gccsnapshot_test-${{ github.head_ref || github.run_id }}_${{ matrix.CC }}_${{ matrix.RENEWAL }}_${{ matrix.CLIENT_TYPE }}_${{ matrix.HTTPLIB }}_${{ matrix.SANITIZER }}_${{ matrix.PACKET_VERSION}}
cancel-in-progress: true

container:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mariadb.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: mariadb

on: [workflow_call, pull_request]
on: workflow_call

env:
MYSQL_DATABASE: 'ragnarok'
Expand All @@ -26,7 +26,7 @@ jobs:
# github.head_ref will stop previous runs in the same PR (if in a PR)
# github.run_id is a fallback when outside a PR (e.g. every merge in master will run, and previous won't stop)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ matrix.CC }}-${{ matrix.RENEWAL }}-${{ matrix.CLIENT_TYPE }}-${{ matrix.HTTPLIB }}-${{ matrix.SANITIZER }}-${{ matrix.PACKET_VERSION}}-${{ matrix.MYSQL }}
group: mariadb-${{ github.head_ref || github.run_id }}_${{ matrix.CC }}_${{ matrix.RENEWAL }}_${{ matrix.CLIENT_TYPE }}_${{ matrix.HTTPLIB }}_${{ matrix.SANITIZER }}_${{ matrix.PACKET_VERSION}}_${{ matrix.MYSQL }}
cancel-in-progress: true

container:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: mysql

on: [workflow_call, pull_request]
on: workflow_call

env:
MYSQL_DATABASE: 'ragnarok'
Expand All @@ -26,7 +26,7 @@ jobs:
# github.head_ref will stop previous runs in the same PR (if in a PR)
# github.run_id is a fallback when outside a PR (e.g. every merge in master will run, and previous won't stop)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ matrix.CC }}-${{ matrix.RENEWAL }}-${{ matrix.CLIENT_TYPE }}-${{ matrix.HTTPLIB }}-${{ matrix.SANITIZER }}-${{ matrix.PACKET_VERSION}}-${{ matrix.MYSQL }}
group: mysql-${{ github.head_ref || github.run_id }}_${{ matrix.CC }}_${{ matrix.RENEWAL }}_${{ matrix.CLIENT_TYPE }}_${{ matrix.HTTPLIB }}_${{ matrix.SANITIZER }}_${{ matrix.PACKET_VERSION}}_${{ matrix.MYSQL }}
cancel-in-progress: true

container:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tools.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: tools

on: [workflow_call, pull_request]
on: workflow_call

env:
MYSQL_DATABASE: 'ragnarok'
Expand All @@ -16,7 +16,7 @@ jobs:
# github.head_ref will stop previous runs in the same PR (if in a PR)
# github.run_id is a fallback when outside a PR (e.g. every merge in master will run, and previous won't stop)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
group: tools-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

container:
Expand Down

0 comments on commit 7e62e65

Please sign in to comment.