CI: Switch to arm-non-eabi crossbuilding
This commit is contained in:
parent
6a865bd760
commit
34b2df99e7
@ -1,22 +1,19 @@
|
|||||||
steps:
|
steps:
|
||||||
build:
|
build:
|
||||||
image: git.holgersson.xyz/nfr/alpine-with-gcc:3.19-20240121
|
image: git.holgersson.xyz/nfr/arm-none-eabi:debian11-20240121
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
gcc main.c -o main
|
arm-none-eabi-gcc --specs=nosys.specs main.c -o main-arm-none-eabi-gcc.elf
|
||||||
|
|
||||||
test:
|
# do not test arm32 bins on amd64 ;)
|
||||||
image: git.holgersson.xyz/nfr/alpine-with-gcc:latest
|
#test: {}
|
||||||
pull: true
|
|
||||||
commands:
|
|
||||||
./main
|
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
image: woodpeckerci/plugin-gitea-release
|
image: woodpeckerci/plugin-gitea-release
|
||||||
settings:
|
settings:
|
||||||
base_url: https://git.holgersson.xyz
|
base_url: https://git.holgersson.xyz
|
||||||
files:
|
files:
|
||||||
- "main"
|
- "main*"
|
||||||
checksum:
|
checksum:
|
||||||
- sha512
|
- sha512
|
||||||
- crc32
|
- crc32
|
||||||
|
10
Dockerfile
10
Dockerfile
@ -1,5 +1,11 @@
|
|||||||
FROM alpine:3.19 as setup
|
# Debian bookworm is debian12.
|
||||||
RUN apk upgrade && apk add gcc musl-dev
|
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
|
FROM scratch
|
||||||
COPY --from=setup / /
|
COPY --from=setup / /
|
||||||
|
WORKDIR /build
|
||||||
|
Loading…
Reference in New Issue
Block a user