Skip to content

Commit

Permalink
ci: publish arm64 artifacts
Browse files Browse the repository at this point in the history
Publishing arm64 artifacts to the project's GHCR using cross-compilation.
This is an interim step. The native compilation will be introduced
when arm runner is set up for CI.

Signed-off-by: Seunguk Shin <seunguk.shin@arm.com>
  • Loading branch information
Seunguk Shin authored and huoqifeng committed Dec 13, 2024
1 parent 0562e63 commit b5027e7
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/publish-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ jobs:
strategy:
matrix:
platform: [
{ tee: none, arch: x86_64, libc: musl },
{ tee: none, arch: s390x, libc: gnu },
{ tee: amd, arch: x86_64, libc: musl },
{ tee: az-cvm-vtpm, arch: x86_64, libc: gnu },
{ tee: tdx, arch: x86_64, libc: gnu },
{ tee: cca, arch: x86_64, libc: musl },
{ tee: se, arch: s390x, libc: gnu },
{ tee: none, arch: x86_64, libc: musl },
{ tee: none, arch: s390x, libc: gnu },
{ tee: none, arch: aarch64, libc: gnu },
{ tee: amd, arch: x86_64, libc: musl },
{ tee: az-cvm-vtpm, arch: x86_64, libc: gnu },
{ tee: tdx, arch: x86_64, libc: gnu },
{ tee: cca, arch: x86_64, libc: musl },
{ tee: cca, arch: aarch64, libc: gnu },
{ tee: se, arch: s390x, libc: gnu },
]
runs-on: ${{ matrix.platform.arch == 's390x' && 's390x' || 'ubuntu-24.04' }}
env:
Expand Down Expand Up @@ -68,12 +70,14 @@ jobs:
- uses: actions/checkout@v4

- name: Build
env:
ARCH: ${{ matrix.platform.arch }}
run: make ./target/${{ env.RUST_TARGET }}/release/attestation-agent

- name: Publish with ORAS
id: publish
env:
OCI_ARCH: ${{ matrix.platform.arch == 'x86_64' && 'amd64' || matrix.platform.arch }}
OCI_ARCH: ${{ matrix.platform.arch == 'x86_64' && 'amd64' || matrix.platform.arch == 'aarch64' && 'arm64' || matrix.platform.arch }}
run: |
mkdir oras
cd oras
Expand Down Expand Up @@ -110,11 +114,14 @@ jobs:
arch:
- x86_64
- s390x
- aarch64
include:
- arch: x86_64
libc: musl
- arch: s390x
libc: gnu
- arch: aarch64
libc: gnu
runs-on: ${{ matrix.arch == 's390x' && 's390x' || 'ubuntu-24.04' }}
env:
LIBC: ${{ matrix.libc }}
Expand Down Expand Up @@ -150,9 +157,13 @@ jobs:
- uses: actions/checkout@v4

- name: Build CDH
env:
ARCH: ${{ matrix.arch }}
run: make ./target/${{ env.RUST_TARGET }}/release/confidential-data-hub

- name: Build ASR
env:
ARCH: ${{ matrix.arch }}
run: make ./target/${{ env.RUST_TARGET }}/release/api-server-rest

- name: Publish CDH + ASR with ORAS
Expand Down

0 comments on commit b5027e7

Please sign in to comment.