From 44585c1c71ed55f15dd5e121922f97df0395d7f5 Mon Sep 17 00:00:00 2001 From: Roberto Scolaro Date: Thu, 1 Feb 2024 10:43:57 +0000 Subject: [PATCH] new(ci): add apple silicon workflow Signed-off-by: Roberto Scolaro --- .github/workflows/ci.yaml | 30 +++++++++++++++++++++++++++- .github/workflows/release-draft.yaml | 26 ++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ca59fb2811..eea18eb8f9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -232,7 +232,7 @@ jobs: name: build-sysdig-other-amd64 strategy: matrix: - os: [windows-latest, macos-latest] + os: [windows-latest, macos-latest, macos-14] include: - os: windows-latest artifact_name: win @@ -240,6 +240,9 @@ jobs: - os: macos-latest artifact_name: osx artifact_ext: dmg + - os: macos-14 + artifact_name: osx + artifact_ext: dmg runs-on: ${{ matrix.os }} steps: - name: Checkout Sysdig @@ -255,3 +258,28 @@ jobs: name: sysdig-dev-${{ matrix.artifact_name }}-x86_64.${{ matrix.artifact_ext }} path: | build/sysdig-*.${{ matrix.artifact_ext }} + + build-sysdig-others-arm64: + name: build-sysdig-other-amd64 + strategy: + matrix: + os: [macos-14] + include: + - os: macos-14 + artifact_name: osx + artifact_ext: dmg + runs-on: ${{ matrix.os }} + steps: + - name: Checkout Sysdig + uses: actions/checkout@v3 + - name: Build + run: | + mkdir -p build + cd build && cmake -Wno-dev .. + cmake --build . --target package --config Release + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: sysdig-dev-${{ matrix.artifact_name }}-arm64.${{ matrix.artifact_ext }} + path: | + build/sysdig-*.${{ matrix.artifact_ext }} diff --git a/.github/workflows/release-draft.yaml b/.github/workflows/release-draft.yaml index 31a5f9c55e..844fc3069f 100644 --- a/.github/workflows/release-draft.yaml +++ b/.github/workflows/release-draft.yaml @@ -144,6 +144,32 @@ jobs: name: sysdig-release-${{ env.BUILD_VERSION }}-${{ matrix.artifact_name }}-x86_64 path: build/sysdig-${{ env.BUILD_VERSION }}*.${{ matrix.artifact_ext }} + build-release-others-arm64: + name: build-release-others-arm64 + strategy: + matrix: + os: [macos-14] + include: + - os: macos-14 + artifact_name: osx + artifact_ext: dmg + env: + BUILD_VERSION: ${{ github.ref_name }} + runs-on: ${{ matrix.os }} + steps: + - name: Checkout Sysdig + uses: actions/checkout@v3 + - name: Build + run: | + mkdir -p build + cd build && cmake -Wno-dev -DBUILD_DRIVER=OFF -DSYSDIG_VERSION="${{ env.BUILD_VERSION }}" .. + cmake --build . --target package --config Release + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: sysdig-release-${{ env.BUILD_VERSION }}-${{ matrix.artifact_name }}-arm64 + path: build/sysdig-${{ env.BUILD_VERSION }}*.${{ matrix.artifact_ext }} + push-container-image: runs-on: ubuntu-latest needs: [build-release-linux-amd64, build-release-linux-arm64, sign-rpms, sign-debs]