Skip to content

Commit 5a6d0f5

Browse files
authored
chore(CI): clean up gha and unused files (#825)
1 parent 8128b1f commit 5a6d0f5

File tree

7 files changed

+68
-13
lines changed

7 files changed

+68
-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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
12+
secrets: inherit

.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: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
secrets: inherit
10+
codebuild:
11+
uses: ./.github/workflows/codebuild.yml
12+
secrets: inherit
13+
osx:
14+
uses: ./.github/workflows/osx.yml
15+
secrets: inherit
16+
proof-ci:
17+
uses: ./.github/workflows/proof_ci.yaml
18+
secrets: inherit
19+
pr-ci-all-required:
20+
if: always()
21+
needs:
22+
- clang-format
23+
- codebuild
24+
- osx
25+
- proof-ci
26+
runs-on: ubuntu-22.04
27+
steps:
28+
- name: Verify all required jobs passed
29+
uses: re-actors/alls-green@release/v1
30+
with:
31+
jobs: ${{ toJSON(needs) }}

.github/workflows/push.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
secrets: inherit
11+
codebuild:
12+
uses: ./.github/workflows/codebuild.yml
13+
secrets: inherit
14+
osx:
15+
uses: ./.github/workflows/osx.yml
16+
secrets: inherit
17+
proof-ci:
18+
uses: ./.github/workflows/proof_ci.yaml
19+
secrets: inherit

0 commit comments

Comments
 (0)