Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,39 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
- run: make UBUNTU=${{ matrix.ubuntu-version }} push
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}

build-ds:
name: Build Driver Station
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: make update/ds
- run: make build/ds
- name: Log in to docker
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
- run: make push/ds
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}

build-arm-ds:
name: Build Driver Station Arm
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- run: make update/armds
- run: make build/armds
- name: Log in to docker
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
- run: make push/armds
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}

build-arm:
name: Build ARM
Expand All @@ -46,7 +78,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
- run: make UBUNTU=${{ matrix.debian-version }} push/arm-base
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}

build-minimal:
name: Build Minimal
Expand Down
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ UBUNTU?=22.04
OPENSDK_UBUNTU?=20.04
DEBIAN?=bookworm

DS?=trixie

DOCKER_USER?=wpilib

.PHONY: usage update update/arm push build \
Expand Down Expand Up @@ -93,3 +95,23 @@ save/minimal-cross:
docker save ${DOCKER_USER}/raspbian-cross-ubuntu-minimal:bookworm-${UBUNTU} | zstd > raspbian.tar.zst

include cross-ubuntu-py/py.mk

update/ds:
docker pull docker.io/debian:${DS}

build/ds:
cd driverstation-base && \
docker build -t ${DOCKER_USER}/driverstation-base:x64 -f Dockerfile.x64 .

push/ds:
docker push ${DOCKER_USER}/driverstation-base:x64

update/armds:
docker pull docker.io/arm64v8/debian:${DS}

build/armds:
cd driverstation-base && \
docker build -t ${DOCKER_USER}/driverstation-base:arm64 -f Dockerfile.arm64 .

push/armds:
docker push ${DOCKER_USER}/driverstation-base:arm64
31 changes: 31 additions & 0 deletions driverstation-base/Dockerfile.arm64
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM arm64v8/debian:trixie

RUN apt-get update && apt-get install -y apt-transport-https \
ca-certificates \
gnupg \
tzdata \
build-essential \
ca-certificates \
cmake \
curl \
fakeroot \
g++ --no-install-recommends \
gcc \
gdb \
gfortran \
git \
libc6-dev \
make \
sudo \
unzip \
wget \
zip \
ninja-build \
libusb-1.0-0-dev \
libudev-dev \
libinput-dev \
libavahi-client-dev \
libavahi-common-dev \
libicu-dev

WORKDIR /
31 changes: 31 additions & 0 deletions driverstation-base/Dockerfile.x64
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM debian:trixie

RUN apt-get update && apt-get install -y apt-transport-https \
ca-certificates \
gnupg \
tzdata \
build-essential \
ca-certificates \
cmake \
curl \
fakeroot \
g++ --no-install-recommends \
gcc \
gdb \
gfortran \
git \
libc6-dev \
make \
sudo \
unzip \
wget \
zip \
ninja-build \
libusb-1.0-0-dev \
libudev-dev \
libinput-dev \
libavahi-client-dev \
libavahi-common-dev \
libicu-dev

WORKDIR /
Loading