Skip to content

Commit

Permalink
ci: build riscv64 image
Browse files Browse the repository at this point in the history
  • Loading branch information
odrling committed Feb 25, 2024
1 parent 2110d1c commit 019d050
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
platform: linux/amd64
- arch: aarch64
platform: linux/arm64
- arch: riscv64
platform: linux/riscv64

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -102,7 +104,9 @@ jobs:
podman manifest create $image_base
podman pull ${{ env.REGISTRY }}/$image_base_sha-x86_64
podman pull ${{ env.REGISTRY }}/$image_base_sha-aarch64
podman pull ${{ env.REGISTRY }}/$image_base_sha-riscv64
podman manifest add $image_base ${{ env.REGISTRY }}/$image_base_sha-x86_64
podman manifest add $image_base ${{ env.REGISTRY }}/$image_base_sha-aarch64
podman manifest add $image_base ${{ env.REGISTRY }}/$image_base_sha-riscv64
podman manifest push $image_base ${{ env.REGISTRY }}/$image_base_sha
podman manifest push $image_base ${{ env.REGISTRY }}/$image_base:${{ github.ref_name }}
12 changes: 12 additions & 0 deletions ci/riscv64-chimera-linux-musl.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[binaries]
c = 'riscv64-chimera-linux-musl-clang'
ld = 'ld.lld'
objcopy = 'llvm-objcopy'
strip = 'llvm-strip'

[host_machine]
system = 'linux'
cpu_family = 'riscv64'
cpu = 'riscv64'
endian = 'little'

0 comments on commit 019d050

Please sign in to comment.