Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 7ead160

Browse files
committed
v0.9.2
Signed-off-by: Xavier Lau <xavier@inv.cafe>
1 parent e244d63 commit 7ead160

51 files changed

Lines changed: 3265 additions & 205 deletions

Some content is hidden

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

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ jobs:
5454
uses: vishnudxb/cancel-workflow@v1.2
5555
if: failure()
5656
with:
57-
repo: hack-ink/<NAME>
57+
repo: hack-ink/substrate-minimal
5858
workflow_id: ${{ github.run_id }}
5959
access_token: ${{ github.token }}

.github/workflows/pages.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
steps:
2121
- name: Fetch latest code
2222
uses: actions/checkout@v3
23-
- name: Setup mdBook
24-
uses: peaceiris/actions-mdbook@v1
25-
with:
26-
mdbook-version: "latest"
27-
- name: Build pages
28-
run: mdbook build doc
29-
- name: Deploy
30-
uses: peaceiris/actions-gh-pages@v3
31-
if: ${{ github.ref == 'refs/heads/main' }}
32-
with:
33-
github_token: ${{ secrets.GITHUB_TOKEN }}
34-
publish_dir: doc/book
23+
# - name: Setup mdBook
24+
# uses: peaceiris/actions-mdbook@v1
25+
# with:
26+
# mdbook-version: "latest"
27+
# - name: Build pages
28+
# run: mdbook build doc
29+
# - name: Deploy
30+
# uses: peaceiris/actions-gh-pages@v3
31+
# if: ${{ github.ref == 'refs/heads/main' }}
32+
# with:
33+
# github_token: ${{ secrets.GITHUB_TOKEN }}
34+
# publish_dir: doc/book

.github/workflows/release.yml

Lines changed: 9 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -8,85 +8,23 @@ env:
88
CARGO_TERM_COLOR: always
99

1010
jobs:
11-
build:
12-
name: Build ${{ matrix.target.name }} package
13-
runs-on: ${{ matrix.target.os }}
14-
strategy:
15-
matrix:
16-
target:
17-
[
18-
{ name: x86_64-unknown-linux-gnu, os: ubuntu-latest },
19-
{ name: aarch64-apple-darwin, os: macos-latest },
20-
{ name: x86_64-apple-darwin, os: macos-latest },
21-
{
22-
name: x86_64-pc-windows-msvc,
23-
os: windows-latest,
24-
extension: .exe,
25-
},
26-
]
27-
steps:
28-
- name: Fetch latest code
29-
uses: actions/checkout@v3
30-
- name: Setup Rust toolchain
31-
run: rustup target add ${{ matrix.target.name }}
32-
- name: Build
33-
run: cargo build --release --locked --target ${{ matrix.target.name }}
34-
- name: Compress
35-
run: |
36-
mv target/${{ matrix.target.name }}/release/<NAME>${{ matrix.target.extension }} .
37-
zstd --ultra -22 -o <NAME>-${{ matrix.target.name }}.zst <NAME>${{ matrix.target.extension }}
38-
- name: Collect artifact
39-
run: |
40-
mkdir -p artifacts
41-
mv <NAME>-${{ matrix.target.name }}.zst artifacts
42-
- name: Upload artifact
43-
uses: actions/upload-artifact@v3.1.2
44-
with:
45-
name: artifacts
46-
path: artifacts
47-
4811
release:
4912
name: Release
5013
runs-on: ubuntu-latest
51-
needs: [build]
5214
steps:
53-
- name: Download artifacts
54-
uses: actions/download-artifact@v3
55-
with:
56-
name: artifacts
57-
path: artifacts
58-
- name: Hash
59-
run: |
60-
cd artifacts
61-
sha256sum * | tee ../SHA256
62-
md5sum * | tee ../MD5
63-
mv ../SHA256 .
64-
mv ../MD5 .
6515
- name: Publish
6616
uses: softprops/action-gh-release@v1
6717
with:
6818
discussion_category_name: Announcements
6919
generate_release_notes: true
70-
files: artifacts/*
71-
72-
# publish-on-crates-io:
73-
# name: Publish on crates.io
74-
# runs-on: ubuntu-latest
75-
# steps:
76-
# - name: Fetch latest code
77-
# uses: actions/checkout@v3
78-
# - name: Login
79-
# run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
80-
# - name: Publish
81-
# run: .maintain/release.sh
8220

83-
clean-artifacts:
84-
name: Clean artifacts
85-
if: always()
86-
needs: [release]
87-
steps:
88-
- name: Clean artifacts
89-
uses: geekyeggo/delete-artifact@v2
90-
with:
91-
name: artifacts
21+
publish-on-crates-io:
22+
name: Publish on crates.io
9223
runs-on: ubuntu-latest
24+
steps:
25+
- name: Fetch latest code
26+
uses: actions/checkout@v3
27+
- name: Login
28+
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
29+
- name: Publish
30+
run: .maintain/release.sh

.github/workflows/staging.yml

Lines changed: 0 additions & 84 deletions
This file was deleted.

.maintain/release.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
cargo publish --locked -p subcryptor
4+
cargo publish --locked -p subhasher
5+
cargo publish --locked -p submetadatan
6+
cargo publish --locked -p subrpcer
7+
cargo publish --locked -p subruntimer
8+
cargo publish --locked -p subspector
9+
# substorager depends on subhasher, sleep for 30s
10+
sleep 30
11+
cargo publish --locked -p substorager
12+
cargo publish --locked -p subversioner

0 commit comments

Comments
 (0)