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