Skip to content

Commit 120c2da

Browse files
author
Janis Erdmanis
committed
fix arm build
1 parent 059c671 commit 120c2da

2 files changed

Lines changed: 19 additions & 25 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
podman push ${{ env.REGISTRY }}/${{ steps.repo.outputs.name }}:${{ env.SHORT_SHA }}-amd64
5959
6060
arm64_build:
61-
runs-on: ubuntu-24.04-arm64
61+
runs-on: ubuntu-24.04-arm
6262
name: ARM64 Build
6363
permissions:
6464
contents: read

examples/integration/Containerfile

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,24 @@ COPY . ./
1414
# Precompile for faster startup
1515
# ENV JULIA_CPU_TARGET="generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)"
1616

17-
18-
# Auto-detect architecture and set CPU target
19-
# Set CPU target and precompile within Julia
20-
RUN julia --project=. <<'EOF'
21-
arch = Sys.ARCH
22-
23-
cpu_target = if arch == :x86_64
24-
"generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)"
25-
elseif arch == :aarch64
26-
"generic;apple-m1"
27-
else
28-
"generic"
29-
end
30-
31-
println("Detected Julia architecture: $arch")
32-
println("Using JULIA_CPU_TARGET: $cpu_target")
33-
34-
using Pkg
35-
withenv("JULIA_CPU_TARGET" => cpu_target) do
36-
Pkg.precompile()
37-
end
38-
39-
println("Precompilation completed with optimized target!")
40-
EOF
17+
# Auto-detect architecture and set CPU target, then precompile
18+
RUN julia --project=. -e ' \
19+
arch = Sys.ARCH; \
20+
cpu_target = if arch == :x86_64; \
21+
"generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)"; \
22+
elseif arch == :aarch64; \
23+
"generic;apple-m1"; \
24+
else; \
25+
"generic"; \
26+
end; \
27+
println("Detected Julia architecture: $arch"); \
28+
println("Using JULIA_CPU_TARGET: $cpu_target"); \
29+
using Pkg; \
30+
withenv("JULIA_CPU_TARGET" => cpu_target) do; \
31+
Pkg.precompile(); \
32+
end; \
33+
println("Precompilation completed with optimized target!"); \
34+
'
4135

4236
# Create home directory structure
4337
RUN mkdir -p /home/registrar

0 commit comments

Comments
 (0)