Compare commits

...

2 Commits
bb2 ... apple

Author SHA1 Message Date
a9a9b410b7 script invocation 2025-11-08 12:39:16 -08:00
3f7ae1fa8b add apple build
The build fails due to using an outdated compiler.  Odd considering it was updated recently.
2025-11-08 12:39:16 -08:00
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
FROM docker.io/joseluisq/rust-linux-darwin-builder:2.0.0-beta.1-amd64 as build
COPY .cargo/config.toml .cargo/config.toml
COPY . .
RUN cargo build --bin strafe-client --release --target aarch64-apple-darwin
# RUN cargo build --release --target x86_64-apple-darwin
# isolate the binary
FROM scratch
COPY --from=build /root/src/target/aarch64-apple-darwin/release/strafe-client /
ENTRYPOINT ["/strafe-client"]

1
docker/build-apple.sh Executable file
View File

@@ -0,0 +1 @@
docker build -f docker/aarch64-apple-darwin.Dockerfile . -o target/aarch64-apple-darwin/release/