From 7ecf3545690aa201e42ec3f373749087336c7521 Mon Sep 17 00:00:00 2001 From: Felddy Date: Tue, 23 Jan 2024 10:50:13 -0500 Subject: [PATCH 1/7] Add linux/arm/v8 to platform list --- .github/workflows/_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_config.yml b/.github/workflows/_config.yml index 73f7009..a22b5ee 100644 --- a/.github/workflows/_config.yml +++ b/.github/workflows/_config.yml @@ -6,7 +6,7 @@ on: inputs: platforms: description: "The platforms to build (CSV)" - default: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x + default: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm/v8,linux/arm64,linux/ppc64le,linux/s390x required: false type: string outputs: From f3d0b481f612a8b3ea0146b89a296af872944cf9 Mon Sep 17 00:00:00 2001 From: Felddy Date: Tue, 23 Jan 2024 11:17:33 -0500 Subject: [PATCH 2/7] Add linux/arm/v5 to platforms Add badge to README.md --- .github/workflows/_config.yml | 2 +- README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_config.yml b/.github/workflows/_config.yml index a22b5ee..e68d661 100644 --- a/.github/workflows/_config.yml +++ b/.github/workflows/_config.yml @@ -6,7 +6,7 @@ on: inputs: platforms: description: "The platforms to build (CSV)" - default: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm/v8,linux/arm64,linux/ppc64le,linux/s390x + default: linux/386,linux/amd64,linux/arm/v5,linux/arm/v6,linux/arm/v7,linux/arm/v8,linux/arm64,linux/ppc64le,linux/s390x required: false type: string outputs: diff --git a/README.md b/README.md index acc720f..9c6fbcb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # reusable-workflows # [![Build](https://github.com/felddy/reusable-workflows/actions/workflows/_build.yml/badge.svg)](https://github.com/felddy/reusable-workflows/actions/workflows/_build.yml) +[![Platforms](https://img.shields.io/badge/platforms-386%20%7C%20amd64%20%7C%20arm%2Fv5%20%7C%20arm%2Fv6%20%7C%20arm%2Fv7%20%7C%20arm%2Fv8%20%7C%20arm64%20%7C%20ppc64le%20%7C%20s390x-blue)](https://hub.docker.com/r/felddy/reusable-workflows/tags) This repository contains reusable GitHub Actions workflows for use in other repositories. From 5ba4f73d6b37d1f7bac76474e28c99e53a1dd8df Mon Sep 17 00:00:00 2001 From: Felddy Date: Tue, 23 Jan 2024 11:39:53 -0500 Subject: [PATCH 3/7] Add linux/arm64/v8 platform --- .github/workflows/_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_config.yml b/.github/workflows/_config.yml index e68d661..3a9d1d6 100644 --- a/.github/workflows/_config.yml +++ b/.github/workflows/_config.yml @@ -6,7 +6,7 @@ on: inputs: platforms: description: "The platforms to build (CSV)" - default: linux/386,linux/amd64,linux/arm/v5,linux/arm/v6,linux/arm/v7,linux/arm/v8,linux/arm64,linux/ppc64le,linux/s390x + default: linux/386,linux/amd64,linux/arm/v5,linux/arm/v6,linux/arm/v7,linux/arm/v8,linux/arm64/v8,linux/ppc64le,linux/s390x required: false type: string outputs: From 8846d8b5ebf79522eb1211174691404efc402508 Mon Sep 17 00:00:00 2001 From: Felddy Date: Tue, 23 Jan 2024 11:41:03 -0500 Subject: [PATCH 4/7] Add binary inspection step in Dockerfile --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index e10fa4b..1d7b550 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,9 @@ RUN xx-verify ./build/$(xx-cargo --print-target-triple)/release/arch-info # Link the compiled binary into the workspace root RUN ln -v ./build/$(xx-cargo --print-target-triple)/release/arch-info . +# Inspect the compiled binary +RUN file arch-info + # Stage 2: Create the final minimal output image FROM scratch From 9d0ff98725d7f1d7c8b0dcfbcd61f85ce185ae3a Mon Sep 17 00:00:00 2001 From: Felddy Date: Tue, 23 Jan 2024 11:54:14 -0500 Subject: [PATCH 5/7] Clarify arm platform badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c6fbcb..293df48 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # reusable-workflows # [![Build](https://github.com/felddy/reusable-workflows/actions/workflows/_build.yml/badge.svg)](https://github.com/felddy/reusable-workflows/actions/workflows/_build.yml) -[![Platforms](https://img.shields.io/badge/platforms-386%20%7C%20amd64%20%7C%20arm%2Fv5%20%7C%20arm%2Fv6%20%7C%20arm%2Fv7%20%7C%20arm%2Fv8%20%7C%20arm64%20%7C%20ppc64le%20%7C%20s390x-blue)](https://hub.docker.com/r/felddy/reusable-workflows/tags) +[![Platforms](https://img.shields.io/badge/platforms-386%20%7C%20amd64%20%7C%20arm%2Fv5%20%7C%20arm%2Fv6%20%7C%20arm%2Fv7%20%7C%20arm%2Fv8%20%7C%20arm64%2Fv8%20%7C%20ppc64le%20%7C%20s390x-blue)](https://hub.docker.com/r/felddy/reusable-workflows/tags) This repository contains reusable GitHub Actions workflows for use in other repositories. From 73616c32446ececb811d06573f33ae7783d1b64f Mon Sep 17 00:00:00 2001 From: Felddy Date: Tue, 23 Jan 2024 11:54:42 -0500 Subject: [PATCH 6/7] Add debug symbols to binary --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index e7514a1..00bcbe2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,5 +19,6 @@ version = "0.0.1" [profile.release] codegen-units = 1 +debug = 2 # Debug symbols. lto = true opt-level = 'z' # Optimize for size. From 1e276b36f332b4a5cae328688c58bd416e21c5cd Mon Sep 17 00:00:00 2001 From: Felddy Date: Tue, 23 Jan 2024 11:56:06 -0500 Subject: [PATCH 7/7] Add Cargo.lock file --- Cargo.lock | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Cargo.lock diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..303d3dd --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "arch-info" +version = "0.0.1"