Skip to content

fix dataplane and udp server builds on arm64 #183

fix dataplane and udp server builds on arm64

fix dataplane and udp server builds on arm64 #183

Workflow file for this run

name: build
on:
pull_request:
branches:
- '*'
push:
branches:
- 'main'
tags:
- '*'
workflow_dispatch: {}
jobs:
rust-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rust-src, clippy, rustfmt
override: false
- name: Install bpf-linker
run: |
cargo install bpf-linker
# TODO: Once we migrate the controller from Go to Rust,
# add the controller build step here.
- name: Build all rust crates (dataplane, test server)
run: |
make build
- name: Check formatting
run: |
make check.format
- name: Check clippy
run: |
make lint
- name: Run Tests
run: |
make test
docker-build:
name: build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c74574e6c82eeedc46366be1b0d287eff9085eb6
with:
install: true
- name: Docker build - Dataplane
uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5
with:
file: build/Containerfile.dataplane
cache-from: type=gha
cache-to: type=gha,mode=max
tags: kong/blixt-dataplane:${{ github.head_ref }}-${{ github.sha }}
outputs: type=docker,dest=/tmp/blixt-dataplane.tar
- name: Upload Image Artifact - Dataplane
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
with:
name: blixt-dataplane
path: /tmp/blixt-dataplane.tar