From 80576fa62d344c602812547a8312d0d7c12d41ee Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Mon, 9 Oct 2023 23:20:32 +0900 Subject: [PATCH] Create build-sysbox.yaml --- .github/workflows/build-sysbox.yaml | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/build-sysbox.yaml diff --git a/.github/workflows/build-sysbox.yaml b/.github/workflows/build-sysbox.yaml new file mode 100644 index 00000000..976abe16 --- /dev/null +++ b/.github/workflows/build-sysbox.yaml @@ -0,0 +1,45 @@ +name: Build Sysbox +permissions: + contents: write + +on: + workflow_dispatch: + inputs: + sha: + description: 'Sysbox SHA' + required: true + default: '' + +env: + SYSBOX_SHA: ${{ github.event.inputs.sha }} + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + with: + path: cromite + fetch-depth: 1 + + - name: Build patched sysbox + run: | + git clone --recursive https://github.com/nestybox/sysbox.git + cd sysbox + git checkout $SYSBOX_SHA + git submodule update --recursive + + cd sysbox-runc/ + git apply --ignore-whitespace ../../cromite/tools/images/sysbox/add-x86-x32-arch.patch + cd .. + + make sysbox-static TARGET_ARCH=x64 + + zip -r build.zip build + + - name: Publish + uses: actions/upload-artifact@v2 + with: + name: build.zip + path: build.zip