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 Jan 17, 2024
1 parent c7fa3ab commit a73a663
Show file tree
Hide file tree
Showing 12 changed files with 111 additions and 262 deletions.
59 changes: 6 additions & 53 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://localhost: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 @@ -70,11 +60,7 @@ jobs:
- name: Push to registry
if: github.event_name != 'pull_request'
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 Down Expand Up @@ -106,36 +92,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.4
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://localhost: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.

38 changes: 6 additions & 32 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,45 +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 += 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-12-g0078a66
PKG_KERNEL ?= ghcr.io/nberlee/kernel:v1.6.0-14-g1f06402

# help menu

Expand Down
Loading

0 comments on commit a73a663

Please sign in to comment.