From b6f5dd3859413f8ee1ddd8ef1eba8b843dbc601f Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 3 Sep 2026 22:58:02 -0700 Subject: [PATCH] ci: upload versioned LhA artifact Build the LhA package after compiling devtest and export the archive name from the Makefile so the workflow selects the current version. Upload the single LhA file directly with upload-artifact v7 to avoid wrapping the release archive in an extra zip file. --- .github/workflows/build.yml | 15 ++++++++++++++- Makefile | 5 +++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c824830..9aa9b40 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,4 +19,17 @@ jobs: - uses: actions/checkout@v6 - name: Build devtest - run: make + id: build + run: | + make + make lha + printf 'archive=%s\n' \ + "$(make -s --no-print-directory print-lha-name)" \ + >> "$GITHUB_OUTPUT" + + - name: Upload LhA archive + uses: actions/upload-artifact@v7 + with: + path: ${{ steps.build.outputs.archive }} + if-no-files-found: error + archive: false diff --git a/Makefile b/Makefile index 07e3cc3..429f9ca 100644 --- a/Makefile +++ b/Makefile @@ -76,6 +76,11 @@ lha: $(QUIET)lha -aq2 $(PROGVER).lha $(PROGVER) $(QUIET)rm -rf $(PROGVER) +.PHONY: print-lha-name + +print-lha-name: + @printf '%s\n' '$(PROGVER).lha' + clean: rm -f $(OBJS) $(OBJDIR)/*.map $(OBJDIR)/*.lst