From d656c923627edbd6fda25681fcb99ab23cf447ae Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Thu, 4 May 2023 15:09:07 +0200 Subject: [PATCH] new(ci): added an arm64 musl build. Signed-off-by: Federico Di Pierro --- .github/workflows/reusable_build_packages.yaml | 10 ++++------ .github/workflows/reusable_publish_packages.yaml | 11 +++++++++-- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/reusable_build_packages.yaml b/.github/workflows/reusable_build_packages.yaml index 958e824e2b3..96cb7d094a6 100644 --- a/.github/workflows/reusable_build_packages.yaml +++ b/.github/workflows/reusable_build_packages.yaml @@ -119,9 +119,7 @@ jobs: ${{ github.workspace }}/build/falco-*.rpm build-musl-package: - # x86_64 only for now - if: ${{ inputs.arch == 'x86_64' }} - runs-on: ubuntu-latest + runs-on: ${{ (inputs.arch == 'aarch64' && fromJSON('[ "self-hosted", "linux", "ARM64" ]')) || 'ubuntu-latest' }} container: alpine:3.17 steps: # Always install deps before invoking checkout action, to properly perform a full clone. @@ -152,14 +150,14 @@ jobs: - name: Rename static package run: | cd build - mv falco-${{ inputs.version }}-x86_64.tar.gz falco-${{ inputs.version }}-static-x86_64.tar.gz + mv falco-${{ inputs.version }}-${{ inputs.arch }}.tar.gz falco-${{ inputs.version }}-static-${{ inputs.arch }}.tar.gz - name: Upload Falco static package uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 with: - name: falco-${{ inputs.version }}-static-x86_64.tar.gz + name: falco-${{ inputs.version }}-static-${{ inputs.arch }}.tar.gz path: | - ${{ github.workspace }}/build/falco-${{ inputs.version }}-static-x86_64.tar.gz + ${{ github.workspace }}/build/falco-${{ inputs.version }}-static-${{ inputs.arch }}.tar.gz build-wasm-package: if: ${{ inputs.arch == 'x86_64' }} diff --git a/.github/workflows/reusable_publish_packages.yaml b/.github/workflows/reusable_publish_packages.yaml index 8e5896234c3..9817fff2f57 100644 --- a/.github/workflows/reusable_publish_packages.yaml +++ b/.github/workflows/reusable_publish_packages.yaml @@ -70,8 +70,14 @@ jobs: with: name: falco-${{ inputs.version }}-static-x86_64.tar.gz path: /tmp/falco-build-bin-static - - - name: Import gpg key + + - name: Download static binary aarch64 + uses: actions/download-artifact@v3 + with: + name: falco-${{ inputs.version }}-static-aarch64.tar.gz + path: /tmp/falco-build-bin-static + + - name: Import gpg key env: GPG_KEY: ${{ secrets.GPG_KEY }} run: printenv GPG_KEY | gpg --import - @@ -93,6 +99,7 @@ jobs: - name: Publish static run: | ./scripts/publish-bin -f /tmp/falco-build-bin-static/falco-${{ inputs.version }}-static-x86_64.tar.gz -r bin${{ inputs.bucket_suffix }} -a x86_64 + ./scripts/publish-bin -f /tmp/falco-build-bin-static/falco-${{ inputs.version }}-static-aarch64.tar.gz -r bin${{ inputs.bucket_suffix }} -a aarch64 publish-packages-deb: runs-on: ubuntu-latest