Skip to content

Commit

Permalink
build: Switch from from-scratch builds to using AWS-vendored build im…
Browse files Browse the repository at this point in the history
…age to work around `aws-lc-rs` target allowlist

Signed-off-by: Felicitas Pojtinger <felicitas@pojtinger.com>
  • Loading branch information
pojntfx committed Nov 28, 2024
1 parent cf7c0f6 commit 072bd40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/hydrun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
# Binaries
- id: rust.x86_64
src: .
os: alpine:edge
os: public.ecr.aws/firecracker/fcuvm:v75
flags: ""
cmd: ./Hydrunfile rust x86_64
dst: out/*
runner: depot-ubuntu-22.04-32
- id: rust.aarch64
src: .
os: alpine:edge
os: public.ecr.aws/firecracker/fcuvm:v75
flags: ""
cmd: ./Hydrunfile rust aarch64
dst: out/*
Expand Down
6 changes: 1 addition & 5 deletions Hydrunfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@ set -e

# Rust
if [ "$1" = "rust" ]; then
# Install native dependencies
apk add rust cargo clang-dev cmake linux-headers make git

# Configure Git
git config --global --add safe.directory '*'

# Build
cp "resources/seccomp/$2-unknown-linux-musl.json" "resources/seccomp/$2-alpine-linux-musl.json"
export RUSTFLAGS='-C target-feature=+crt-static'
cargo build --package firecracker --package jailer --package seccompiler --package rebase-snap --package cpu-template-helper --target "$2-alpine-linux-musl" --all-features --release
cargo build --package firecracker --package jailer --package seccompiler --package rebase-snap --package cpu-template-helper --target "$2-unknown-linux-musl" --all-features --release

# Stage binaries
mkdir -p out
Expand Down

0 comments on commit 072bd40

Please sign in to comment.