diff --git a/.woodpecker.yaml b/.woodpecker.yaml index b2f5237..32cfae9 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,13 +1,22 @@ 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*" + checksum: + - sha512 + - crc32 + api_key: + from_secret: GITEA_ACCESS_TOKEN + target: main diff --git a/Dockerfile b/Dockerfile index 32ce96e..0e798d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.adoc b/README.adoc index e69de29..f244e7f 100644 --- a/README.adoc +++ b/README.adoc @@ -0,0 +1,4 @@ += arm gcc playground :-) +:toc: + +// vim:syntax=asciidoc:fileencoding=utf-8:ts=4:expandtab:linebreak:wrap