Skip to content

Commit

Permalink
Merge pull request #171 from felddy/improvement/arm-v8
Browse files Browse the repository at this point in the history
Add more platforms and differentiate arm/v8 32 and 64 bit images
  • Loading branch information
felddy authored Jan 23, 2024
2 parents 285e4f2 + 1e276b3 commit 54c696f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/v5,linux/arm/v6,linux/arm/v7,linux/arm/v8,linux/arm64/v8,linux/ppc64le,linux/s390x
required: false
type: string
outputs:
Expand Down
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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%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.

Expand Down

0 comments on commit 54c696f

Please sign in to comment.