Skip to content

Commit 90208a6

Browse files
jmg-duartecerniccaidan46dtuzith7nder
authoredNov 25, 2024··
release: phase 2.1 (#610)
Co-authored-by: Rok Černič <rok.cernic@gmail.com> Co-authored-by: aidan46 <47111423+aidan46@users.noreply.github.com> Co-authored-by: dtuzi <114731726+dtuzi@users.noreply.github.com> Co-authored-by: Konrad Stepniak <konrad@eiger.co>
1 parent 644f41e commit 90208a6

File tree

96 files changed

+11354
-5198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+11354
-5198
lines changed
 

‎.github/workflows/ci.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Setup mdBook
4343
uses: peaceiris/actions-mdbook@v2
4444
with:
45-
mdbook-version: '0.4.40'
45+
mdbook-version: "0.4.40"
4646
- name: Build the book
4747
run: mdbook build docs
4848

@@ -90,4 +90,4 @@ jobs:
9090
- name: Cargo clippy
9191
run: RUSTFLAGS="-D warnings" cargo clippy --profile ci --locked
9292
- name: Run tests
93-
run: RUSTFLAGS="-D warnings" cargo tarpaulin --profile ci --locked --workspace --exclude maat
93+
run: RUSTFLAGS="-D warnings" cargo tarpaulin --profile ci --locked --workspace --skip-clean --exclude maat

‎.github/workflows/release.yaml

+45-10
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,11 @@ jobs:
5454
# make the version available as a "checked" output in later steps
5555
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> "$GITHUB_OUTPUT"
5656
57-
- name: Build in release mode
58-
run: RUSTFLAGS="-D warnings" cargo build --release --locked --package mater-cli
57+
- id: build-release
58+
name: Build in release mode
59+
run: |
60+
RUSTFLAGS="-D warnings" cargo build --release --locked --package mater-cli
61+
echo "PACKAGE_SHA256=$(sha256sum target/release/mater-cli | sed 's/\(.*\) .*/\1/')" >> "$GITHUB_OUTPUT"
5962
6063
- name: Login to Github Container Registry
6164
uses: docker/login-action@v3
@@ -82,6 +85,10 @@ jobs:
8285
tag_name: ${{ github.ref_name }} # set the name of the release the tag
8386
body: |
8487
Docker container release: https://github.com/eigerco/polka-storage/pkgs/container/mater-cli/?tag=${{ steps.check-version.outputs.PACKAGE_VERSION }}
88+
89+
| Binary | SHA256 |
90+
| ------------------------ | --------------------------------------------------- |
91+
| `${{ github.ref_name }}` | `${{ steps.build-release.outputs.PACKAGE_SHA256 }}` |
8592
files: |
8693
target/release/mater-cli
8794
@@ -114,8 +121,11 @@ jobs:
114121
# make the version available as a "checked" output in later steps
115122
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> "$GITHUB_OUTPUT"
116123
117-
- name: Build in release mode
118-
run: RUSTFLAGS="-D warnings" cargo build --release --locked --package storagext-cli
124+
- id: build-release
125+
name: Build in release mode
126+
run: |
127+
RUSTFLAGS="-D warnings" cargo build --release --locked --package storagext-cli
128+
echo "PACKAGE_SHA256=$(sha256sum target/release/storagext-cli | sed 's/\(.*\) .*/\1/')" >> "$GITHUB_OUTPUT"
119129
120130
- name: Login to Github Container Registry
121131
uses: docker/login-action@v3
@@ -142,6 +152,10 @@ jobs:
142152
tag_name: ${{ github.ref_name }} # set the name of the release the tag
143153
body: |
144154
Docker container release: https://github.com/eigerco/polka-storage/pkgs/container/storagext-cli/?tag=${{ steps.check-version.outputs.PACKAGE_VERSION }}
155+
156+
| Binary | SHA256 |
157+
| ------------------------ | --------------------------------------------------- |
158+
| `${{ github.ref_name }}` | `${{ steps.build-release.outputs.PACKAGE_SHA256 }}` |
145159
files: |
146160
target/release/storagext-cli
147161
@@ -174,8 +188,11 @@ jobs:
174188
# make the version available as a "checked" output in later steps
175189
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> "$GITHUB_OUTPUT"
176190
177-
- name: Build in release mode
178-
run: RUSTFLAGS="-D warnings" cargo build --release --locked --package polka-storage-node --features polka-storage-runtime/testnet
191+
- id: build-release
192+
name: Build in release mode
193+
run: |
194+
RUSTFLAGS="-D warnings" cargo build --release --locked --package polka-storage-node --features polka-storage-runtime/testnet
195+
echo "PACKAGE_SHA256=$(sha256sum target/release/polka-storage-node | sed 's/\(.*\) .*/\1/')" >> "$GITHUB_OUTPUT"
179196
180197
- name: Login to Github Container Registry
181198
uses: docker/login-action@v3
@@ -202,6 +219,10 @@ jobs:
202219
tag_name: ${{ github.ref_name }} # set the name of the release the tag
203220
body: |
204221
Docker container release: https://github.com/eigerco/polka-storage/pkgs/container/polka-storage-node/?tag=${{ steps.check-version.outputs.PACKAGE_VERSION }}
222+
223+
| Binary | SHA256 |
224+
| ------------------------ | --------------------------------------------------- |
225+
| `${{ github.ref_name }}` | `${{ steps.build-release.outputs.PACKAGE_SHA256 }}` |
205226
files: |
206227
target/release/polka-storage-node
207228
@@ -234,8 +255,11 @@ jobs:
234255
# make the version available as a "checked" output in later steps
235256
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> "$GITHUB_OUTPUT"
236257
237-
- name: Build in release mode
238-
run: RUSTFLAGS="-D warnings" cargo build --release --locked --package polka-storage-provider-server
258+
- id: build-release
259+
name: Build in release mode
260+
run: |
261+
RUSTFLAGS="-D warnings" cargo build --release --locked --package polka-storage-provider-server
262+
echo "PACKAGE_SHA256=$(sha256sum target/release/polka-storage-provider-server | sed 's/\(.*\) .*/\1/')" >> "$GITHUB_OUTPUT"
239263
240264
- name: Login to Github Container Registry
241265
uses: docker/login-action@v3
@@ -262,6 +286,10 @@ jobs:
262286
tag_name: ${{ github.ref_name }} # set the name of the release the tag
263287
body: |
264288
Docker container release: https://github.com/eigerco/polka-storage/pkgs/container/polka-storage-provider-server/?tag=${{ steps.check-version.outputs.PACKAGE_VERSION }}
289+
290+
| Binary | SHA256 |
291+
| ------------------------ | --------------------------------------------------- |
292+
| `${{ github.ref_name }}` | `${{ steps.build-release.outputs.PACKAGE_SHA256 }}` |
265293
files: |
266294
target/release/polka-storage-provider-server
267295
@@ -294,8 +322,11 @@ jobs:
294322
# make the version available as a "checked" output in later steps
295323
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> "$GITHUB_OUTPUT"
296324
297-
- name: Build in release mode
298-
run: RUSTFLAGS="-D warnings" cargo build --release --locked --package polka-storage-provider-client
325+
- id: build-release
326+
name: Build in release mode
327+
run: |
328+
RUSTFLAGS="-D warnings" cargo build --release --locked --package polka-storage-provider-client
329+
echo "PACKAGE_SHA256=$(sha256sum target/release/polka-storage-provider-client | sed 's/\(.*\) .*/\1/')" >> "$GITHUB_OUTPUT"
299330
300331
- name: Login to Github Container Registry
301332
uses: docker/login-action@v3
@@ -322,5 +353,9 @@ jobs:
322353
tag_name: ${{ github.ref_name }} # set the name of the release the tag
323354
body: |
324355
Docker container release: https://github.com/eigerco/polka-storage/pkgs/container/polka-storage-provider-client/?tag=${{ steps.check-version.outputs.PACKAGE_VERSION }}
356+
357+
| Binary | SHA256 |
358+
| ------------------------ | --------------------------------------------------- |
359+
| `${{ github.ref_name }}` | `${{ steps.build-release.outputs.PACKAGE_SHA256 }}` |
325360
files: |
326361
target/release/polka-storage-provider-client

0 commit comments

Comments
 (0)
Please sign in to comment.