Skip to content

Commit

Permalink
temporarily disable arm builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Callisto13 committed Dec 12, 2022
1 parent 8c1dd86 commit 4d99a1c
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 66 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,39 +25,39 @@ jobs:
name: firecracker-binaries
path: bin/*
retention-days: 1
build-aarch64:
name: build firecracker (aarch64)
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "Build"
uses: uraimo/[email protected]
with:
arch: aarch64
distro: ubuntu20.04
run: |
bash ./tools/github-build-aarch64.sh
- name: "Post Build: Prepare artifacts"
run: |
mkdir -p bin
cp -v \
build/cargo_target/aarch64-unknown-linux-musl/debug/firecracker \
bin/firecracker-aarch64
cp -v \
build/cargo_target/aarch64-unknown-linux-musl/debug/jailer \
bin/jailer-aarch64
- name: "Post build: Store firecracker binaries"
uses: actions/upload-artifact@v2
with:
name: firecracker-binaries
path: bin/*
retention-days: 1
# build-aarch64:
# name: build firecracker (aarch64)
# runs-on: ubuntu-latest
# steps:
# - name: "Checkout"
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: "Build"
# uses: uraimo/[email protected]
# with:
# arch: aarch64
# distro: ubuntu20.04
# run: |
# bash ./tools/github-build-aarch64.sh
# - name: "Post Build: Prepare artifacts"
# run: |
# mkdir -p bin
# cp -v \
# build/cargo_target/aarch64-unknown-linux-musl/debug/firecracker \
# bin/firecracker-aarch64
# cp -v \
# build/cargo_target/aarch64-unknown-linux-musl/debug/jailer \
# bin/jailer-aarch64
# - name: "Post build: Store firecracker binaries"
# uses: actions/upload-artifact@v2
# with:
# name: firecracker-binaries
# path: bin/*
# retention-days: 1
results:
runs-on: ubuntu-latest
needs: [build-x86_64, build-aarch64]
needs: [build-x86_64] #, build-aarch64]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
62 changes: 31 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,39 +27,39 @@ jobs:
name: firecracker-binaries
path: bin/*
retention-days: 1
build-aarch64:
name: build firecracker (aarch64)
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "Build"
uses: uraimo/[email protected]
with:
arch: aarch64
distro: ubuntu20.04
run: |
bash ./tools/github-build-aarch64.sh
- name: "Post Build: Prepare artifacts"
run: |
mkdir -p bin
cp -v \
build/cargo_target/aarch64-unknown-linux-musl/debug/firecracker \
bin/firecracker-aarch64
cp -v \
build/cargo_target/aarch64-unknown-linux-musl/debug/jailer \
bin/jailer-aarch64
- name: "Post build: Store firecracker binaries"
uses: actions/upload-artifact@v2
with:
name: firecracker-binaries
path: bin/*
retention-days: 1
# build-aarch64:
# name: build firecracker (aarch64)
# runs-on: ubuntu-latest
# steps:
# - name: "Checkout"
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: "Build"
# uses: uraimo/[email protected]
# with:
# arch: aarch64
# distro: ubuntu20.04
# run: |
# bash ./tools/github-build-aarch64.sh
# - name: "Post Build: Prepare artifacts"
# run: |
# mkdir -p bin
# cp -v \
# build/cargo_target/aarch64-unknown-linux-musl/debug/firecracker \
# bin/firecracker-aarch64
# cp -v \
# build/cargo_target/aarch64-unknown-linux-musl/debug/jailer \
# bin/jailer-aarch64
# - name: "Post build: Store firecracker binaries"
# uses: actions/upload-artifact@v2
# with:
# name: firecracker-binaries
# path: bin/*
# retention-days: 1
release:
runs-on: ubuntu-latest
needs: [build-aarch64, build-x86_64]
needs: [build-x86_64]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
10 changes: 6 additions & 4 deletions tools/github-build-aarch64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,32 @@ apt-get --quiet --yes install \
librust-kvm-bindings-dev curl file git lsof openssh-client
echo "::endgroup::"

target=aarch64-unknown-linux-musl

echo "::group::Set up Rust"
curl https://sh.rustup.rs -sSf \
| sh -s -- -y --default-toolchain "1.52.1"
source $HOME/.cargo/env
rustup target add aarch64-unknown-linux-musl
rustup target add "$target"
echo "::endgroup::"

echo "::group::Build seccompiler"
cargo build \
-p seccompiler \
--bin seccompiler-bin \
--target-dir ../build/seccompiler \
--target aarch64-unknown-linux-musl
--target "$target"
echo "::endgroup::"

echo "::group::Build firecracker"
cargo build \
--target-dir ../build/cargo_target \
--target aarch64-unknown-linux-musl
--target "$target"
echo "::endgroup::"

echo "::group::Build jailer"
cargo build \
-p jailer \
--target-dir ../build/cargo_target \
--target aarch64-unknown-linux-musl
--target "$target"
echo "::endgroup::"

0 comments on commit 4d99a1c

Please sign in to comment.