Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

docs: mark the repository as archived #623

docs: mark the repository as archived

docs: mark the repository as archived #623

Workflow file for this run

name: build
on:
pull_request:
branches:
- "*"
push:
branches:
- "main"
tags:
- "*"
workflow_dispatch: {}
jobs:
rust-build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- 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
- 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
image-builds-integration-tests:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
sources:
- Cargo.lock
- Cargo.toml
- 'controlplane/**'
- 'dataplane/**'
- 'build/Containerfile.*'
- name: Build controlplane Container Image
if: steps.filter.outputs.sources
run: |
mkdir -p target/ &&
podman build \
--userns=host \
--file build/Containerfile.controlplane \
--volume "$(pwd):/workspace" \
--volume "$(pwd)/target:$(pwd)/target/" \
--build-arg BUILD_TIMESTAMP="$(date +%s%3N)" \
--build-arg UID="0" \
--build-arg GID="0" \
--build-arg WORK_DIR="$(pwd)" \
--tag localhost/blixt-controlplane:pr-${{ github.event.pull_request.number }}-${{ github.sha }}
- name: Build dataplane Container Image
run: |
podman build \
--userns=host \
--file build/Containerfile.dataplane \
--volume "$(pwd):/workspace" \
--volume "$(pwd)/target:$(pwd)/target/" \
--build-arg BUILD_TIMESTAMP="$(date +%s%3N)" \
--build-arg UID="0" \
--build-arg GID="0" \
--build-arg WORK_DIR="$(pwd)" \
--tag localhost/blixt-dataplane:pr-${{ github.event.pull_request.number }}-${{ github.sha }}
- name: Build udp-test-server Container Image
run: |
podman build \
--userns=host \
--file build/Containerfile.udp-test-server \
--volume "$(pwd):/workspace" \
--volume "$(pwd)/target:$(pwd)/target/" \
--build-arg BUILD_TIMESTAMP="$(date +%s%3N)" \
--build-arg UID="0" \
--build-arg GID="0" \
--build-arg WORK_DIR="$(pwd)" \
--tag localhost/blixt-udp-test-server:pr-${{ github.event.pull_request.number }}-${{ github.sha }}
- name: Install kind and kubectl
uses: helm/kind-action@b72c923563e6e80ea66e8e8c810798cc73e97e5e # current main, includes cloud-provider-kind support
if: steps.filter.outputs.sources
with:
install_only: true
cloud_provider: false
kubectl_version: 'v1.33.3'
- name: Install Rust
if: steps.filter.outputs.sources
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
with:
toolchain: stable
- name: Run Integration Tests
if: steps.filter.outputs.sources
run: |
# kind load broken for podman https://github.com/kubernetes-sigs/kind/issues/3945
export REGISTRY="localhost"
export TAG="pr-${{ github.event.pull_request.number }}-${{ github.sha }}"
sudo chown -R "$(id -u):$(id -g)" target/
make test.integration.reuse