diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml index 1454659..4b39e25 100644 --- a/.github/workflows/bazel.yml +++ b/.github/workflows/bazel.yml @@ -140,6 +140,36 @@ jobs: echo "Tag ${TAG} does not exist, will create release." fi + - name: Create release archive + if: steps.check_tag.outputs.exists == 'false' + run: | + set -euo pipefail + VERSION="${{ steps.version.outputs.version }}" + ARCHIVE="dist/khttpd-${VERSION}.tar.gz" + + mkdir -p dist + git archive \ + --format=tar \ + --prefix="khttpd-${VERSION}/" \ + HEAD \ + BUILD.bazel \ + LICENSE \ + MODULE.bazel \ + README.md \ + doc \ + framework \ + | gzip -n -9 > "${ARCHIVE}" + + tar -tzf "${ARCHIVE}" + + - name: Upload release archive artifact + if: steps.check_tag.outputs.exists == 'false' + uses: actions/upload-artifact@v4 + with: + name: khttpd-${{ steps.version.outputs.version }}-source + path: dist/khttpd-${{ steps.version.outputs.version }}.tar.gz + if-no-files-found: error + - name: Create tag if: steps.check_tag.outputs.exists == 'false' run: | @@ -157,6 +187,7 @@ jobs: name: Release v${{ steps.version.outputs.version }} generate_release_notes: true draft: false + files: dist/khttpd-${{ steps.version.outputs.version }}.tar.gz publish_to_bcr: name: Publish release to BCR diff --git a/patches/BUILD.bazel b/patches/BUILD.bazel deleted file mode 100644 index c5a2154..0000000 --- a/patches/BUILD.bazel +++ /dev/null @@ -1,3 +0,0 @@ -exports_files( - glob(["**/**"]), -) diff --git a/patches/rules_foreign_cc/foreign_cc.built_tools.pkgconfig_build.bzl.patch b/patches/rules_foreign_cc/foreign_cc.built_tools.pkgconfig_build.bzl.patch deleted file mode 100644 index 9ab1f74..0000000 --- a/patches/rules_foreign_cc/foreign_cc.built_tools.pkgconfig_build.bzl.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- foreign_cc/built_tools/pkgconfig_build.bzl 2025-03-15 22:20:02 -+++ foreign_cc/built_tools/pkgconfig_build.bzl 2025-03-15 22:20:55 -@@ -154,10 +154,10 @@ def pkgconfig_tool(name, srcs, **kwargs): - args = [ - "-f Makefile.vc", - "CFG=release", -- "GLIB_PREFIX=\"$$EXT_BUILD_ROOT/external/glib_dev\"", -+ "GLIB_PREFIX=\"$$EXT_BUILD_ROOT/external/%s\"" % Label("@glib_dev").workspace_name, - ], - out_binaries = ["pkg-config.exe"], -- env = {"INCLUDE": "$$EXT_BUILD_ROOT/external/glib_src"}, -+ env = {"INCLUDE": "$$EXT_BUILD_ROOT/external/%s" % Label("@glib_src").workspace_name}, - out_static_libs = [], - out_shared_libs = [], - deps = [