CI: Switch to arm-non-eabi crossbuilding
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
ci/woodpecker/tag/woodpecker Pipeline failed

This commit is contained in:
Nils Freydank 2024-01-21 17:36:00 +01:00
parent 6a865bd760
commit 34b2df99e7
Signed by: nfr
GPG Key ID: 0F1DEAB2D36AD112
2 changed files with 13 additions and 10 deletions

View File

@ -1,22 +1,19 @@
steps:
build:
image: git.holgersson.xyz/nfr/alpine-with-gcc:3.19-20240121
image: git.holgersson.xyz/nfr/arm-none-eabi:debian11-20240121
pull: true
commands:
gcc main.c -o main
arm-none-eabi-gcc --specs=nosys.specs main.c -o main-arm-none-eabi-gcc.elf
test:
image: git.holgersson.xyz/nfr/alpine-with-gcc:latest
pull: true
commands:
./main
# do not test arm32 bins on amd64 ;)
#test: {}
publish:
image: woodpeckerci/plugin-gitea-release
settings:
base_url: https://git.holgersson.xyz
files:
- "main"
- "main*"
checksum:
- sha512
- crc32

View File

@ -1,5 +1,11 @@
FROM alpine:3.19 as setup
RUN apk upgrade && apk add gcc musl-dev
# Debian bookworm is debian12.
FROM debian:bookworm as setup
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y gcc-arm-none-eabi cmake
RUN mkdir /build
FROM scratch
COPY --from=setup / /
WORKDIR /build