mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-26 20:55:41 +00:00
new(ci): added an arm64 musl build.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
10
.github/workflows/reusable_build_packages.yaml
vendored
10
.github/workflows/reusable_build_packages.yaml
vendored
@@ -119,9 +119,7 @@ jobs:
|
|||||||
${{ github.workspace }}/build/falco-*.rpm
|
${{ github.workspace }}/build/falco-*.rpm
|
||||||
|
|
||||||
build-musl-package:
|
build-musl-package:
|
||||||
# x86_64 only for now
|
runs-on: ${{ (inputs.arch == 'aarch64' && fromJSON('[ "self-hosted", "linux", "ARM64" ]')) || 'ubuntu-latest' }}
|
||||||
if: ${{ inputs.arch == 'x86_64' }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: alpine:3.17
|
container: alpine:3.17
|
||||||
steps:
|
steps:
|
||||||
# Always install deps before invoking checkout action, to properly perform a full clone.
|
# Always install deps before invoking checkout action, to properly perform a full clone.
|
||||||
@@ -152,14 +150,14 @@ jobs:
|
|||||||
- name: Rename static package
|
- name: Rename static package
|
||||||
run: |
|
run: |
|
||||||
cd build
|
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
|
- name: Upload Falco static package
|
||||||
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
|
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
|
||||||
with:
|
with:
|
||||||
name: falco-${{ inputs.version }}-static-x86_64.tar.gz
|
name: falco-${{ inputs.version }}-static-${{ inputs.arch }}.tar.gz
|
||||||
path: |
|
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:
|
build-wasm-package:
|
||||||
if: ${{ inputs.arch == 'x86_64' }}
|
if: ${{ inputs.arch == 'x86_64' }}
|
||||||
|
@@ -71,6 +71,12 @@ jobs:
|
|||||||
name: falco-${{ inputs.version }}-static-x86_64.tar.gz
|
name: falco-${{ inputs.version }}-static-x86_64.tar.gz
|
||||||
path: /tmp/falco-build-bin-static
|
path: /tmp/falco-build-bin-static
|
||||||
|
|
||||||
|
- 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
|
- name: Import gpg key
|
||||||
env:
|
env:
|
||||||
GPG_KEY: ${{ secrets.GPG_KEY }}
|
GPG_KEY: ${{ secrets.GPG_KEY }}
|
||||||
@@ -93,6 +99,7 @@ jobs:
|
|||||||
- name: Publish static
|
- name: Publish static
|
||||||
run: |
|
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-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:
|
publish-packages-deb:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Reference in New Issue
Block a user