From 4d90a317a2afcf82ef0819fb9ab7d787c698d708 Mon Sep 17 00:00:00 2001 From: AtomicFS Date: Thu, 14 Nov 2024 18:36:23 +0100 Subject: [PATCH 1/2] fix(examples): fixed typo Signed-off-by: AtomicFS --- .github/workflows/example.yml | 1 + action.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index ca185913..9e03a999 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -63,6 +63,7 @@ jobs: - '.github/workflows/example.yml' - 'docker/**' - 'tests/**' + - 'action.yml' # Change detection in action golang code changes: diff --git a/action.yml b/action.yml index 184f27c6..42219172 100644 --- a/action.yml +++ b/action.yml @@ -37,7 +37,7 @@ runs: run: | if [ ${{ runner.arch }} = "X64" ]; then echo "arch=x86_64" >> "${GITHUB_OUTPUT}" - if [ ${{ runner.arch }} = "amd64" ]; then + elif [ ${{ runner.arch }} = "amd64" ]; then echo "arch=x86_64" >> "${GITHUB_OUTPUT}" elif [ ${{ runner.arch }} = "X86" ]; then echo "arch=i386" >> "${GITHUB_OUTPUT}" From 83682c755e9b5c725005a6ef3160dfe43dfecdd0 Mon Sep 17 00:00:00 2001 From: AtomicFS Date: Thu, 14 Nov 2024 19:45:23 +0100 Subject: [PATCH 2/2] chore(action): add debug for arch inputs Signed-off-by: AtomicFS --- action/recipes/linux.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/action/recipes/linux.go b/action/recipes/linux.go index 6d352d8d..4c1f62e6 100644 --- a/action/recipes/linux.go +++ b/action/recipes/linux.go @@ -150,6 +150,8 @@ func (opts LinuxOpts) buildFirmware(ctx context.Context, client *dagger.Client, err = errUnknownArchCrossCompile slog.Error( "Selected unknown cross compilation target architecture", + slog.String("system_architecture", runtime.GOARCH), + slog.String("target_architecture", opts.Arch), slog.Any("error", err), ) return nil, err