diff --git a/.github/workflows/build-packages.yml b/.github/workflows/build-packages.yml index 5d4e651..9a77205 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 | not) and (.tag_name | startswith("v4.")))) | first .tag_name | .[1:]') >> $GITHUB_ENV 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
+Platform | File | SHA256 +------------------------------ | ---------------------------------------- | ------ +<% packages.each do |name, files| %> +<%= name.ljust(30) %> | <%= release_file(files).ljust(40).gsub('~', '.') %> | <%= file_hash(release_file(files)) %> + +<% end %> ++