From e22099c0fe487fc32083b11af804a3c50e8a7690 Mon Sep 17 00:00:00 2001 From: Utku Ozdemir Date: Wed, 6 Nov 2024 10:37:42 +0100 Subject: [PATCH] fix: rekres to fix generate checksums step in CI Fix generating checksums thanks to the fix in https://github.com/siderolabs/kres/pull/458. Signed-off-by: Utku Ozdemir --- .github/workflows/ci.yaml | 2 +- Makefile | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4bd5b2f..2fd3e66 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,6 @@ # THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. # -# Generated on 2024-11-05T13:03:03Z by kres 398a599. +# Generated on 2024-11-06T14:42:38Z by kres 1fc767a. name: default concurrency: diff --git a/Makefile b/Makefile index 1ce20dc..5cdf365 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. # -# Generated on 2024-11-05T13:07:23Z by kres 398a599. +# Generated on 2024-11-06T14:42:38Z by kres 1fc767a. # common variables @@ -157,6 +157,15 @@ target-%: ## Builds the specified target defined in the Dockerfile. The build r local-%: ## Builds the specified target defined in the Dockerfile using the local output type. The build result will be output to the specified local destination. @$(MAKE) target-$* TARGET_ARGS="--output=type=local,dest=$(DEST) $(TARGET_ARGS)" + @PLATFORM=$(PLATFORM) ARTIFACTS=$(ARTIFACTS) bash -c '\ + for platform in $$(tr "," "\n" <<< "$$PLATFORM"); do \ + echo $$platform; \ + directory="$${platform//\//_}"; \ + if [[ -d "$$ARTIFACTS/$$directory" ]]; then \ + mv "$$ARTIFACTS/$$directory/"* $$ARTIFACTS; \ + rmdir "$$ARTIFACTS/$$directory/"; \ + fi; \ + done' generate: ## Generate .proto definitions. @$(MAKE) local-$@ DEST=./