From e4b654086d2d92db9b348caa8a0aaade051045e2 Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Sun, 21 Jan 2024 16:54:36 +0100 Subject: [PATCH 1/4] Reapply "CI: Re-add w/ new tag" This reverts commit 76a599bb180fc220312d56281f4000d849e8a5b3. --- .woodpecker.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index b2f5237..e61600f 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -11,3 +11,12 @@ steps: commands: ./main + publish: + image: woodpeckerci/plugin-gitea-release + settings: + base_url: https://git.holgersson.xyz + files: + - "main" + api_key: + from_secret: GITEA_ACCESS_TOKEN + target: main -- 2.47.0 From 57f511b1f721164fe72ad1227efab940792912c1 Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Sun, 21 Jan 2024 16:57:04 +0100 Subject: [PATCH 2/4] CI: Add checksums to release --- .woodpecker.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index e61600f..fff2b36 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -17,6 +17,9 @@ steps: base_url: https://git.holgersson.xyz files: - "main" + checksum: + - sha512 + - crc32 api_key: from_secret: GITEA_ACCESS_TOKEN target: main -- 2.47.0 From 6a865bd7600ac2687648883fcb2f969336e6ed9b Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Sun, 21 Jan 2024 17:09:18 +0100 Subject: [PATCH 3/4] Start content in README.adoc --- README.adoc | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.0 From 34b2df99e7138c57001dc1e9656612daed9e8f78 Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Sun, 21 Jan 2024 17:36:00 +0100 Subject: [PATCH 4/4] CI: Switch to arm-non-eabi crossbuilding --- .woodpecker.yaml | 13 +++++-------- Dockerfile | 10 ++++++++-- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index fff2b36..32cfae9 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -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 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 -- 2.47.0