Skip to content

Commit

Permalink
initial extension for RK3588 and kernel modules
Browse files Browse the repository at this point in the history
  • Loading branch information
nberlee committed Mar 21, 2024
1 parent cb5292f commit 7f5a6b9
Show file tree
Hide file tree
Showing 12 changed files with 114 additions and 268 deletions.
62 changes: 7 additions & 55 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ jobs:
issues: read
packages: write
pull-requests: read
runs-on:
- self-hosted
- pkgs
runs-on: ubuntu-latest
if: (!startsWith(github.head_ref, 'renovate/') && !startsWith(github.head_ref, 'dependabot/'))
outputs:
labels: ${{ steps.retrieve-pr-labels.outputs.result }}
Expand All @@ -43,23 +41,15 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
- name: Unshallow
run: |
git fetch --prune --unshallow
with:
# need history for `git describe` to work for Talos `Makefile`
fetch-depth: 0
fetch-tags: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
append: |
- endpoint: tcp://buildkit-arm64.ci.svc.cluster.local:1234
platforms: linux/arm64
driver: remote
endpoint: tcp://127.0.0.1:1234
- name: Build
run: |
make
- name: Build nonfree
run: |
make nonfree
- name: Login to registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
Expand All @@ -73,11 +63,7 @@ jobs:
USERNAME: ${{ github.repository_owner }}
CI_ARGS: --provenance=true
run: |
make PUSH=true
- name: Push nonfree
if: github.event_name != 'pull_request'
run: |
make nonfree PUSH=true
make PUSH=true
- name: Retrieve PR labels
id: retrieve-pr-labels
uses: actions/github-script@v7
Expand All @@ -99,8 +85,7 @@ jobs:
USERNAME: ${{ github.repository_owner }}
PUSH: "true"
run: |
curl -sL "https://github.com/google/go-containerregistry/releases/download/v0.18.0/go-containerregistry_Linux_x86_64.tar.gz" > go-containerregistry.tar.gz
tar -zxvf go-containerregistry.tar.gz -C /usr/local/bin/ crane
curl -sL "https://github.com/google/go-containerregistry/releases/download/v0.19.0/go-containerregistry_Linux_x86_64.tar.gz" | tar -zxv -C /usr/local/bin/ crane
make extensions
- name: release-notes
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -112,36 +97,3 @@ jobs:
with:
body_path: _out/RELEASE_NOTES.md
draft: "true"
reproducibility:
runs-on:
- self-hosted
- pkgs
if: contains(fromJSON(needs.default.outputs.labels), 'integration/reproducibility')
needs:
- default
services:
buildkitd:
image: moby/buildkit:v0.12.5
options: --privileged
ports:
- 1234:1234
volumes:
- /var/lib/buildkit/${{ github.repository }}:/var/lib/buildkit
- /usr/etc/buildkit/buildkitd.toml:/etc/buildkit/buildkitd.toml
steps:
- name: checkout
uses: actions/checkout@v4
- name: Unshallow
run: |
git fetch --prune --unshallow
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
append: |
- endpoint: tcp://buildkit-arm64.ci.svc.cluster.local:1234
platforms: linux/arm64
driver: remote
endpoint: tcp://127.0.0.1:1234
- name: reproducibility-test
run: |
make reproducibility-test
93 changes: 0 additions & 93 deletions .github/workflows/slack-notify.yaml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/weekly.yaml

This file was deleted.

40 changes: 6 additions & 34 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ifeq ($(GOARCH),x86_64)
GOARCH := amd64
endif
REGISTRY ?= ghcr.io
USERNAME ?= siderolabs
USERNAME ?= nberlee
REGISTRY_AND_USERNAME ?= $(REGISTRY)/$(USERNAME)
KRES_IMAGE ?= ghcr.io/siderolabs/kres:latest
CONFORMANCE_IMAGE ?= ghcr.io/siderolabs/conform:latest
Expand All @@ -35,7 +35,7 @@ BLDR := docker run --rm --user $(shell id -u):$(shell id -g) --volume $(PWD):/sr
# docker build settings

BUILD := docker buildx build
PLATFORM ?= linux/amd64,linux/arm64
PLATFORM ?= linux/arm64
PROGRESS ?= auto
PUSH ?= false
CI_ARGS ?=
Expand All @@ -46,47 +46,19 @@ COMMON_ARGS += --platform=$(PLATFORM)
COMMON_ARGS += --build-arg=SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH)
COMMON_ARGS += --build-arg=TAG="$(TAG)"
COMMON_ARGS += --build-arg=PKGS="$(PKGS)"
COMMON_ARGS += --build-arg=PKG_KERNEL="$(PKG_KERNEL)"

# targets defines all the available targets

TARGETS = amdgpu-firmware
TARGETS += amd-ucode
TARGETS += binfmt-misc
TARGETS += bnx2-bnx2x
TARGETS += btrfs
TARGETS += chelsio-drivers
TARGETS += chelsio-firmware
TARGETS += drbd
TARGETS += ecr-credential-provider
TARGETS += fuse3
TARGETS += gasket-driver
TARGETS += gvisor
TARGETS += hello-world-service
TARGETS += i915-ucode
TARGETS += intel-ice-firmware
TARGETS += intel-ucode
TARGETS += iscsi-tools
TARGETS += mdadm
TARGETS += nut-client
TARGETS += nvidia-container-toolkit
TARGETS += nvidia-fabricmanager
TARGETS += nvidia-open-gpu-kernel-modules
TARGETS += qemu-guest-agent
TARGETS += qlogic-firmware
TARGETS += realtek-firmware
TARGETS += stargz-snapshotter
TARGETS += tailscale
TARGETS += thunderbolt
TARGETS = binfmt-misc
TARGETS += rk3588
TARGETS += usb-modem-drivers
TARGETS += util-linux-tools
TARGETS += xe-guest-utilities
TARGETS += zfs
NONFREE_TARGETS = nonfree-kmod-nvidia

# extra variables

EXTENSIONS_IMAGE_REF ?= $(REGISTRY_AND_USERNAME)/extensions:$(TAG)
PKGS ?= v1.6.0-27-gdf44f94
PKG_KERNEL ?= ghcr.io/nberlee/kernel:v1.6.0-29-g7be6f52

# help menu

Expand Down
Loading

0 comments on commit 7f5a6b9

Please sign in to comment.