Skip to content

Commit

Permalink
tests: build arm64 tarball for e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Djalal Harouni <tixxdz@gmail.com>
  • Loading branch information
tixxdz committed Sep 18, 2023
1 parent d16ac6d commit 17ddbbe
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/packages-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ jobs:
strategy:
matrix:
include:
# We use the native arch build
- os: ubuntu-22.04
arch: amd64
match_arch: x86-64
- os: buildjet-2vcpu-ubuntu-2204-arm
arch: arm64
match_arch: arm64

steps:
# https://github.com/docker/setup-buildx-action
Expand Down Expand Up @@ -54,6 +59,8 @@ jobs:
retry_wait_seconds: 5
retry_on: error
command: |
# Ensure that default native builds work
file /usr/local/bin/tetragon | grep ${{ matrix.match_arch }} -
sudo systemctl is-active tetragon
sudo tetra status
Expand All @@ -71,3 +78,30 @@ jobs:
run: |
sudo ./tetragon-${{ steps.tag.outputs.tag }}-${{ matrix.arch }}/uninstall.sh
working-directory: ./build/${{ matrix.arch }}/linux-tarball/

- name: Generate Tetragon Tarball
run: make tarball-release

- name: Save Tetragon Tarball
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: tetragon-${{ steps.tag.outputs.tag }}-${{ matrix.arch }}
path: release/
retention-days: 1

check-release:
name: Check Release
if: github.repository == 'cilium/tetragon'
environment: release
runs-on: ubuntu-20.04
steps:
- name: Retrieve tetragon-${{ steps.tag.outputs.tag }}-amd64
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: tetragon-${{ steps.tag.outputs.tag }}-amd64
path: release

- name: Display structure of downloaded files
run: ls -lha
working-directory: release

0 comments on commit 17ddbbe

Please sign in to comment.