Skip to content

Commit

Permalink
ci: split workflow into multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
qianxjcraig committed Oct 3, 2024
1 parent 0482ab9 commit a8605d3
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 19 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,3 @@ jobs:
env:
TESTSYS_SELFTEST_SKIP_IMAGE_BUILDS: true
TESTSYS_SELFTEST_THREADS: 1
images:
runs-on:
group: bottlerocket
labels: bottlerocket_ubuntu-latest_16-core
steps:
- uses: actions/checkout@v4
# Build local tools container in case we are working on a new tools release
- run: make tools
- run: make images
license-check:
# A small machine is OK for this independent job.
runs-on: ubuntu-latest
# If we already checked the PR, we don't need to check the actual push
if: ${{ github.event_name == 'pull_request' }}
steps:
- uses: actions/checkout@v4
- run: make cargo-deny
24 changes: 24 additions & 0 deletions .github/workflows/licenses.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Licenses
on:
pull_request:
paths-ignore:
- 'docs/**'
- '.github/dependabot.yml'
- 'bottlerocket/tests/workload/**'
- '**.md'
push:
paths-ignore:
- 'docs/**'
- '.github/dependabot.yml'
- 'bottlerocket/tests/workload/**'
- '**.md'
branches: [develop]
jobs:
cargo-deny:
# A small machine is OK for this independent job.
runs-on: ubuntu-latest
# If we already checked the PR, we don't need to check the actual push
if: ${{ github.event_name == 'pull_request' }}
steps:
- uses: actions/checkout@v4
- run: make cargo-deny
6 changes: 4 additions & 2 deletions .github/workflows/tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ on:
- 'tools/**'
branches: [develop]
jobs:
build:
images:
runs-on:
group: bottlerocket
labels: bottlerocket_ubuntu-latest_8-core
labels: bottlerocket_ubuntu-latest_16-core
steps:
- uses: actions/checkout@v4
# Build local tools container in case we are working on a new tools release
- run: make tools
- run: make images

0 comments on commit a8605d3

Please sign in to comment.