Skip to content

Commit 1798536

Browse files
authored
Merge pull request #1056 from input-output-hk/djo/874/add_min_libc_version_to_release_description
Add min libc version to distribution release note
2 parents 6c04aff + f523beb commit 1798536

File tree

3 files changed

+99
-102
lines changed

3 files changed

+99
-102
lines changed
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: prepare-distribution
2+
description: |
3+
Package, add crates table, sign artifacts
4+
5+
The artifacts for all supported environments must have been downloaded
6+
in "package-{EnvName}-x64" subfolders before calling this action.
7+
inputs:
8+
version-name:
9+
description: Name of the version to package
10+
required: true
11+
download-url-base:
12+
description: Base url where the released distribution will be downloadable
13+
required: true
14+
gpg-secret-key:
15+
description: A GPG secret key to sign the distribution
16+
required: true
17+
runs:
18+
using: "composite"
19+
steps:
20+
- name: Package distribution (Linux-X64)
21+
shell: bash
22+
run: |
23+
python3 ./.github/workflows/scripts/package-distribution.py \
24+
--input package-Linux-X64/ \
25+
--dest package/ \
26+
--version "${{ inputs.version-name }}" \
27+
--target "linux-x64"
28+
29+
- name: Package distribution (macOS-X64)
30+
shell: bash
31+
run: |
32+
python3 ./.github/workflows/scripts/package-distribution.py \
33+
--input package-macOS-X64/ \
34+
--dest package/ \
35+
--version "${{ inputs.version-name }}" \
36+
--target "macos-x64"
37+
38+
- name: Package distribution (Windows-X64)
39+
shell: bash
40+
run: |
41+
python3 ./.github/workflows/scripts/package-distribution.py \
42+
--input package-Windows-X64/ \
43+
--dest package/ \
44+
--version "${{ inputs.version-name }}" \
45+
--target "windows-x64"
46+
47+
- name: Prepare crates versions table
48+
shell: bash
49+
run: |
50+
cat > ./release-notes-addon.txt << EOF
51+
52+
## Crates Versions
53+
| Crate | Version |
54+
|---------- |-------------|
55+
EOF
56+
57+
cargo metadata --quiet --no-deps | \
58+
jq -r '.packages | sort_by(.name) | .[] | select([.name] | inside(["mithrildemo", "mithril-end-to-end"]) | not) | "| \(.name) | `\(.version)` |"' \
59+
>> ./release-notes-addon.txt
60+
61+
- name: Add minimum supported libc version
62+
shell: bash
63+
run: |
64+
cat > ./release-notes-addon.txt << EOF
65+
## Linux Requirements
66+
The Linux binaries target `glibc`: to run them or install the `.deb` packages you must have `glibc`
67+
version `2.31+` installed.
68+
Compatible systems include, but are not limited to, `Ubuntu 20.04+` or `Debian 11+` (Bullseye)).
69+
EOF
70+
71+
- name: Create and sign sha256 checksum
72+
shell: bash
73+
env:
74+
GPG_SECRET_KEY: ${{ inputs.gpg-secret-key }}
75+
run: ./.github/workflows/scripts/sign-distribution.sh
76+
77+
- name: Create a procedure to verify the distribution
78+
shell: bash
79+
env:
80+
GPG_SECRET_KEY: ${{ inputs.gpg-secret-key }}
81+
PROCEDURE_FILE_PATH: ./release-notes-addon.txt
82+
DOWNLOAD_URL_BASE: ${{ inputs.download-url-base }}
83+
run: ./.github/workflows/scripts/verify-distribution.sh
84+
85+
- name: List packaged assets
86+
shell: bash
87+
run: ls -al ./package

.github/workflows/ci.yml

Lines changed: 6 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -367,57 +367,12 @@ jobs:
367367
name: mithril-distribution-Windows-X64
368368
path: ./package-Windows-X64
369369

370-
- name: Package distribution (Linux-X64)
371-
run: |
372-
python3 ./.github/workflows/scripts/package-distribution.py \
373-
--input package-Linux-X64/ \
374-
--dest package/ \
375-
--version "unstable-${{ steps.slug.outputs.sha8 }}" \
376-
--target "linux-x64"
377-
378-
- name: Package distribution (macOS-X64)
379-
run: |
380-
python3 ./.github/workflows/scripts/package-distribution.py \
381-
--input package-macOS-X64/ \
382-
--dest package/ \
383-
--version "unstable-${{ steps.slug.outputs.sha8 }}" \
384-
--target "macos-x64"
385-
386-
- name: Package distribution (Windows-X64)
387-
run: |
388-
python3 ./.github/workflows/scripts/package-distribution.py \
389-
--input package-Windows-X64/ \
390-
--dest package/ \
391-
--version "unstable-${{ steps.slug.outputs.sha8 }}" \
392-
--target "windows-x64"
393-
394-
- name: Prepare crates versions table
395-
run: |
396-
cat > ./release-notes-addon.txt << EOF
397-
398-
## Crates Versions
399-
| Crate | Version |
400-
|---------- |-------------|
401-
EOF
402-
403-
cargo metadata --quiet --no-deps | \
404-
jq -r '.packages | sort_by(.name) | .[] | select([.name] | inside(["mithrildemo", "mithril-end-to-end"]) | not) | "| \(.name) | `\(.version)` |"' \
405-
>> ./release-notes-addon.txt
406-
407-
- name: Create and sign sha256 checksum
408-
env:
409-
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
410-
run: ./.github/workflows/scripts/sign-distribution.sh
411-
412-
- name: Create a procedure to verify the distribution
413-
env:
414-
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
415-
PROCEDURE_FILE_PATH: ./release-notes-addon.txt
416-
DOWNLOAD_URL_BASE: ${{ github.server_url }}/${{ github.repository }}/releases/download/unstable
417-
run: ./.github/workflows/scripts/verify-distribution.sh
418-
419-
- name: List packaged assets
420-
run: ls -al ./package
370+
- name: Prepare distribution package
371+
uses: ./.github/workflows/actions/prepare-distribution
372+
with:
373+
version-name: unstable-${{ steps.slug.outputs.sha8 }}
374+
download-url-base: ${{ github.server_url }}/${{ github.repository }}/releases/download/unstable
375+
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
421376

422377
- name: Update unstable release
423378
uses: marvinpinto/action-automatic-releases@latest

.github/workflows/pre-release.yml

Lines changed: 6 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -52,61 +52,16 @@ jobs:
5252
workflow: ci.yml
5353
workflow_conclusion: success
5454

55-
- name: Package distribution (Linux-X64)
56-
run: |
57-
python3 ./.github/workflows/scripts/package-distribution.py \
58-
--input package-Linux-X64/ \
59-
--dest package/ \
60-
--version "${{ github.ref_name }}" \
61-
--target "linux-x64"
62-
63-
- name: Package distribution (macOS-X64)
64-
run: |
65-
python3 ./.github/workflows/scripts/package-distribution.py \
66-
--input package-macOS-X64/ \
67-
--dest package/ \
68-
--version "${{ github.ref_name }}" \
69-
--target "macos-x64"
70-
71-
- name: Package distribution (Windows-X64)
72-
run: |
73-
python3 ./.github/workflows/scripts/package-distribution.py \
74-
--input package-Windows-X64/ \
75-
--dest package/ \
76-
--version "${{ github.ref_name }}" \
77-
--target "windows-x64"
78-
7955
- name: Append VERSION file
8056
run: |
8157
echo ${{ github.ref_name }} >> ./package/VERSION
82-
83-
- name: Prepare crates versions table
84-
run: |
85-
cat > ./release-notes-addon.txt << EOF
8658
87-
## Crates Versions
88-
| Crate | Version |
89-
|---------- |-------------|
90-
EOF
91-
92-
cargo metadata --quiet --no-deps | \
93-
jq -r '.packages | sort_by(.name) | .[] | select([.name] | inside(["mithrildemo", "mithril-end-to-end"]) | not) | "| \(.name) | `\(.version)` |"' \
94-
>> ./release-notes-addon.txt
95-
96-
- name: Create and sign sha256 checksum
97-
env:
98-
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
99-
run: ./.github/workflows/scripts/sign-distribution.sh
100-
101-
- name: Create a procedure to verify the distribution
102-
env:
103-
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
104-
PROCEDURE_FILE_PATH: ./release-notes-addon.txt
105-
DOWNLOAD_URL_BASE: ${{ github.server_url }}/${{ github.repository }}/releases/download/${{ github.ref_name }}
106-
run: ./.github/workflows/scripts/verify-distribution.sh
107-
108-
- name: List packaged assets
109-
run: ls -al ./package
59+
- name: Prepare distribution package
60+
uses: ./.github/workflows/actions/prepare-distribution
61+
with:
62+
version-name: ${{ github.ref_name }}
63+
download-url-base: ${{ github.server_url }}/${{ github.repository }}/releases/download/${{ github.ref_name }}
64+
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
11065

11166
- name: Create pre-release ${{ github.ref_name }}
11267
uses: marvinpinto/action-automatic-releases@latest

0 commit comments

Comments
 (0)