Skip to content

Commit

Permalink
github: rework issue templates and action workflows for kit
Browse files Browse the repository at this point in the history
Signed-off-by: Arnaldo Garcia Rincon <[email protected]>
  • Loading branch information
arnaldo2792 committed Jun 14, 2024
1 parent bb664da commit cac7f0c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 159 deletions.
26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/metal_driver.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Bug report - Bottlerocket image
name: Bug report - Bottlerocket package
about: Let us know about a problem with Bottlerocket
labels: status/needs-triage, type/bug
---
Expand All @@ -11,7 +11,7 @@ Tips:
- Please include any error messages you received, with any required context.
-->

**Image I'm using:**
**Package I'm using:**



Expand Down
24 changes: 0 additions & 24 deletions .github/actions/list-variants/action.yml

This file was deleted.

45 changes: 7 additions & 38 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,41 +17,22 @@ on:
- '**.tpl'
# Sample config files and OpenAPI docs
- '**.yaml'
# Other files that don't affect the build
- 'packages/os/eni-max-pods'

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
list-variants:
# This needs to be its own job since the build job needs its output before
# it can initialize
if: github.repository == 'bottlerocket-os/bottlerocket'
name: "Determine variants"
runs-on: ubuntu-latest
outputs:
variants: ${{ steps.get-variants.outputs.variants }}
aarch-enemies: ${{ steps.get-variants.outputs.aarch-enemies }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/list-variants
id: get-variants

build:
needs: list-variants
runs-on:
group: bottlerocket
labels: bottlerocket_ubuntu-latest_32-core
continue-on-error: true
strategy:
matrix:
variant: ${{ fromJson(needs.list-variants.outputs.variants) }}
arch: [x86_64, aarch64]
exclude: ${{ fromJson(needs.list-variants.outputs.aarch-enemies) }}
fail-fast: false
name: "Build ${{ matrix.variant }}-${{ matrix.arch }}"
name: "Build ${{ matrix.arch }}"
steps:
- name: Random delay
run: |
Expand All @@ -61,23 +42,11 @@ jobs:
- uses: actions/checkout@v4
- name: Preflight step to set up the runner
uses: ./.github/actions/setup-node
- if: contains(matrix.variant, 'nvidia')
run: |
cat <<-EOF > Licenses.toml
[nvidia]
spdx-id = "LICENSE-LicenseRef-NVIDIA-Customer"
licenses = [
{ path = "NVIDIA", license-url = "https://www.nvidia.com/en-us/drivers/nvidia-license/" }
]
EOF
- run: rustup component add rustfmt
- run: cargo make -e BUILDSYS_VARIANT=${{ matrix.variant }} unit-tests
- run: cargo make -e BUILDSYS_VARIANT=${{ matrix.variant }} check-fmt
- run: make twoliter unit-tests
# TODO: fixme please!
# - run: make twoliter check-fmt
# Avoid running Go lint check via `cargo make check-lints` since there's a separate golangci-lint workflow
- run: cargo make -e BUILDSYS_VARIANT=${{ matrix.variant }} check-clippy
- run: cargo make -e BUILDSYS_VARIANT=${{ matrix.variant }} check-shell
- run: |
cargo make -e BUILDSYS_VARIANT=${{ matrix.variant }} \
-e BUILDSYS_ARCH=${{ matrix.arch }} \
-e BUILDSYS_JOBS=12 \
-e BUILDSYS_UPSTREAM_LICENSE_FETCH="${{ contains(matrix.variant, 'nvidia') }}"
- run: make twoliter check-clippy
- run: make twoliter check-shell
- run: make ARCH="${{ matrix.arch }}"
8 changes: 4 additions & 4 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ on:
paths:
- '.github/**'
- 'sources/Cargo.lock'
- 'tools/pubsys*/**'
- '!tools/pubsys/policies/**'
- '!tools/pubsys/**.example'
- 'Twoliter.toml'
- 'Twoliter.lock'
- 'Makefile'
jobs:
cache:
if: github.repository == 'bottlerocket-os/bottlerocket'
if: github.repository == 'bottlerocket-os/bottlerocket-core-kit'
runs-on:
group: bottlerocket
labels: bottlerocket_ubuntu-latest_8-core
Expand Down
65 changes: 0 additions & 65 deletions .github/workflows/weekly.yml

This file was deleted.

0 comments on commit cac7f0c

Please sign in to comment.