Skip to content

Commit 7cc1e9e

Browse files
committed
chore(CI): clean up gha and unused files
1 parent 8128b1f commit 7cc1e9e

File tree

7 files changed

+59
-13
lines changed

7 files changed

+59
-13
lines changed

.github/workflows/clang-format.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: test-clang-format
22

3-
on: ["pull_request", "push"]
3+
on:
4+
workflow_call:
45

56
jobs:
67
build:

.github/workflows/codebuild.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
name: AWS CodeBuild Batch Workflow
22

33
on:
4-
pull_request:
5-
push:
6-
# Run daily
7-
schedule:
8-
- cron: "0 0 * * *"
4+
workflow_call:
95

106
permissions:
117
id-token: write

.github/workflows/daily_ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This workflow runs every weekday at 15:00 UTC (8AM PDT)
2+
name: Daily CI
3+
4+
on:
5+
schedule:
6+
- cron: "00 15 * * 1-5"
7+
8+
jobs:
9+
codebuild:
10+
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
11+
uses: ./.github/workflows/codebuild.yml

.github/workflows/osx.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
name: macOS build and test AWS Encryption SDK for C
33

4-
on: ["pull_request", "push"]
4+
on:
5+
workflow_call:
56

67

78
jobs:

.github/workflows/proof_ci.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,8 @@
33
# CBMC starter kit 2.9
44
name: Run CBMC proofs
55
on:
6-
push:
7-
branches-ignore:
8-
- gh-pages
9-
pull_request:
10-
branches-ignore:
11-
- gh-pages
126
workflow_dispatch:
7+
workflow_call:
138

149
# USAGE
1510
#

.github/workflows/pull.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Pull Request Workflow
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
clang-format:
8+
uses: ./.github/workflows/clang-format.yml
9+
codebuild:
10+
uses: ./.github/workflows/codebuild.yml
11+
osx:
12+
uses: ./.github/workflows/osx.yml
13+
proof-ci:
14+
uses: ./.github/workflows/proof_ci.yaml
15+
pr-ci-all-required:
16+
if: always()
17+
needs:
18+
- clang-format
19+
- codebuild
20+
- osx
21+
- proof-ci
22+
runs-on: ubuntu-22.04
23+
steps:
24+
- name: Verify all required jobs passed
25+
uses: re-actors/alls-green@release/v1
26+
with:
27+
jobs: ${{ toJSON(needs) }}

.github/workflows/push.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Push Workflow
2+
3+
on:
4+
push:
5+
branches: master
6+
7+
jobs:
8+
clang-format:
9+
uses: ./.github/workflows/clang-format.yml
10+
codebuild:
11+
uses: ./.github/workflows/codebuild.yml
12+
osx:
13+
uses: ./.github/workflows/osx.yml
14+
proof-ci:
15+
uses: ./.github/workflows/proof_ci.yaml

0 commit comments

Comments
 (0)