Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Check `arch` for podman build
Merged did:key:z6MkkfM3...sVz5 opened 1 year ago

Usually going with Darwin -> aarch64 and the rest fallback to amd64 isn’t a bad choice, but I think we can do better by checking arch so a device like a Raspberry which has an ARM CPU is able to run the build script.

check check-visual check-unit-test check-http-client-unit-test check-radicle-httpd check-e2e check-build check-http

πŸ‘‰ Preview πŸ‘‰ Workflow runs πŸ‘‰ Branch on GitHub

1 file changed +4 -2 cf995c09 β†’ 3d652d54
modified radicle-httpd/build/build
@@ -10,6 +10,8 @@ main() {
  export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)
  # Define user OS for podman
  export OS=$(uname)
+
  # Define architecture for podman
+
  export ARCH=$(arch)

  if ! command -v rad >/dev/null; then
    echo "fatal: rad is not installed" >&2
@@ -54,7 +56,7 @@ main() {
      --build-arg LC_ALL \
      --build-arg RADICLE_VERSION=$version \
      --build-arg GIT_HEAD=$rev \
-
      --arch aarch64 --tag $image -f ./build/Dockerfile - <$gitarchive
+
      --arch $ARCH --tag $image -f ./build/Dockerfile - <$gitarchive

    echo "Creating container (radicle-build-container).."
    podman create --ulimit=host --replace --name radicle-build-container $image
@@ -65,7 +67,7 @@ main() {
      --build-arg TZ \
      --build-arg LC_ALL \
      --build-arg RADICLE_VERSION=$version \
-
      --arch amd64 --tag $image -f ./build/Dockerfile - <$gitarchive
+
      --arch $ARCH --tag $image -f ./build/Dockerfile - <$gitarchive

    echo "Creating container (radicle-build-container).."
    podman --cgroup-manager=cgroupfs create --ulimit=host --replace --name radicle-build-container $image