Skip to content

Commit

Permalink
new(ci): added an arm64 musl build.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed May 4, 2023
1 parent f25c057 commit 3bb6155
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/reusable_build_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ jobs:
build-musl-package:
needs: fetch-version
# 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.
Expand All @@ -164,8 +162,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Prepare project
run: |
Expand All @@ -185,11 +181,11 @@ jobs:
- name: Rename static package
run: |
cd build
mv falco-${{ needs.fetch-version.outputs.version }}-x86_64.tar.gz falco-${{ needs.fetch-version.outputs.version }}-static-x86_64.tar.gz
mv falco-${{ needs.fetch-version.outputs.version }}-${{ inputs.arch }}.tar.gz falco-${{ needs.fetch-version.outputs.version }}-static-${{ inputs.arch }}.tar.gz
- name: Upload Falco static package
uses: actions/upload-artifact@v3
with:
name: falco-${{ needs.fetch-version.outputs.version }}-static-x86_64.tar.gz
name: falco-${{ needs.fetch-version.outputs.version }}-static-${{ inputs.arch }}.tar.gz
path: |
${{ github.workspace }}/build/falco-${{ needs.fetch-version.outputs.version }}-static-x86_64.tar.gz
${{ github.workspace }}/build/falco-${{ needs.fetch-version.outputs.version }}-static-${{ inputs.arch }}.tar.gz
7 changes: 7 additions & 0 deletions .github/workflows/reusable_publish_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ jobs:
with:
name: falco-${{ inputs.version }}-static-x86_64.tar.gz
path: /tmp/falco-bin-static

- name: Download static binary aarch64
uses: actions/download-artifact@v3
with:
name: falco-${{ inputs.version }}-static-aarch64.tar.gz
path: /tmp/falco-bin-static

- name: Import gpg key
env:
Expand Down Expand Up @@ -106,6 +112,7 @@ jobs:
- name: Publish static
run: |
./scripts/publish-bin -f /tmp/falco-bin-static/falco-${{ inputs.version }}-static-x86_64.tar.gz -r bin${{ inputs.bucket_suffix }} -a x86_64
./scripts/publish-bin -f /tmp/falco-bin-static/falco-${{ inputs.version }}-static-aarch64.tar.gz -r bin${{ inputs.bucket_suffix }} -a aarch64
publish-packages-deb:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3bb6155

Please sign in to comment.