File tree Expand file tree Collapse file tree 1 file changed +65
-0
lines changed
Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ permissions :
4+ contents : write
5+ packages : write
6+
7+ on :
8+ release :
9+ types : [released]
10+
11+ jobs :
12+ release-docker :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Set up Docker Buildx
16+ uses : docker/setup-buildx-action@v3
17+
18+ - name : Login to GitHub Container Registry
19+ uses : docker/login-action@v3
20+ with :
21+ registry : ghcr.io
22+ username : ${{ github.actor }}
23+ password : ${{ secrets.GITHUB_TOKEN }}
24+
25+ # We've run into out-of-disk error when compiling Polkadot in the next step, so we free up some space this way.
26+ - name : Free Disk Space (Ubuntu)
27+ uses : jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # 1.3.1
28+ with :
29+ android : true # This alone is a 12 GB save.
30+ # We disable the rest because it caused some problems. (they're enabled by default)
31+ # The Android removal is enough.
32+ dotnet : false
33+ haskell : false
34+ large-packages : false
35+ swap-storage : false
36+
37+ - name : Build and push
38+ uses : docker/build-push-action@v6
39+ with :
40+ push : true
41+ tags : ghcr.io/${{ github.repository }}:${{ github.ref_name }}
42+
43+ release-binaries :
44+ runs-on : ubuntu-latest
45+ steps :
46+ - uses : actions/checkout@v4
47+
48+ - name : Rust compilation prerequisites
49+ run : |
50+ sudo apt update
51+ sudo apt install -y \
52+ protobuf-compiler
53+ rustup target add wasm32-unknown-unknown
54+ rustup component add rust-src
55+
56+ - name : Build the template
57+ run : cargo build --locked --release
58+ timeout-minutes : 90
59+
60+ - name : Upload the binaries
61+ uses : softprops/action-gh-release@v2
62+ with :
63+ files : |
64+ target/release/minimal-template-node
65+ target/release/wbuild/minimal-template-runtime/minimal_template_runtime.compact.compressed.wasm
You can’t perform that action at this time.
0 commit comments