From f0d56d0d101cb607c1feb3f6de82535e005aa67f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 1 Oct 2023 15:49:31 +0000 Subject: [PATCH 1/3] Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/build-packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-packages.yml b/.github/workflows/build-packages.yml index fa5dc9e..ea210d5 100644 --- a/.github/workflows/build-packages.yml +++ b/.github/workflows/build-packages.yml @@ -15,7 +15,7 @@ jobs: INSPIRCD_PACKAGES: ${{ matrix.package }} html INSPIRCD_REVISION: ${{ github.sha }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Retrieve latest release run: | echo INSPIRCD_VERSION=$(curl https://api.github.com/repos/inspircd/inspircd/releases | jq --raw-output 'map(select((.draft or .prerelease | not) and (.tag_name | startswith("v3.")))) | first .tag_name | .[1:]') >> $GITHUB_ENV From 0392bb0b84b40a57c540dd56c83b27da015a1f9f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 22 Dec 2023 19:56:14 +0000 Subject: [PATCH 2/3] Update for the changes in InspIRCd v3.17.0. --- rpm/inspircd.spec.in | 1 + 1 file changed, 1 insertion(+) diff --git a/rpm/inspircd.spec.in b/rpm/inspircd.spec.in index 650ef07..7ae1605 100644 --- a/rpm/inspircd.spec.in +++ b/rpm/inspircd.spec.in @@ -79,6 +79,7 @@ mv $RPM_BUILD_ROOT/usr/share/inspircd/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/ %doc /usr/share/doc/inspircd/services/*.example %doc /usr/share/doc/inspircd/sql/*.sql /usr/share/inspircd/apparmor +/usr/share/inspircd/deploy-ssl.sh /usr/share/inspircd/inspircd /usr/share/man/man1/inspircd.1.gz /usr/share/man/man1/inspircd-*.1.gz From 17399fc4e6742345476b4b742d39859d072795dd Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 23 Dec 2023 14:41:14 +0000 Subject: [PATCH 3/3] Automatically generate the Markdown table for GitHub. --- html/docker.rb | 2 +- html/index.rhtml | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/html/docker.rb b/html/docker.rb index 765b65b..94c5f88 100755 --- a/html/docker.rb +++ b/html/docker.rb @@ -31,7 +31,7 @@ output = File.join(INSPIRCD_BUILD_DIR, "index.html") File.open(output, "w") do |fh| fh.puts ERB - .new(template) + .new(template, trim_mode: '<>') .result_with_hash(directory: INSPIRCD_BUILD_DIR, packages: packages) end FileUtils.chown INSPIRCD_BUILD_USER, INSPIRCD_BUILD_GROUP, output diff --git a/html/index.rhtml b/html/index.rhtml index dce49bf..32f13fe 100644 --- a/html/index.rhtml +++ b/html/index.rhtml @@ -16,6 +16,9 @@ def human_size(file) "#{(bytes / 1_048_576.0).round(2)} MiB" end end +def release_file(files) + files.find { |file| file !~ /(?:-dbgsym_|-debug(?:info|source)-|\.src\.)/ } +end %> @@ -39,6 +42,16 @@ end

InspIRCd Packages

+

GitHub Table

+
+Platform                       | File                                     | SHA256
+------------------------------ | ---------------------------------------- | ------
+<% packages.each do |name, files| %>
+<%= name.ljust(30) %> | <%= release_file(files).ljust(40).gsub('~', '.') %> | <%= file_hash(release_file(files)) %>
+
+<% end %>
+			
+
<% packages.each do |name, files| %>

<%= name %>