-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release workflow only handle docker container * add a note for RPC calls * pallet-emergency-shutdown to rc2 * pallet-poa to rc2 * pallet-reserve to rc2 * pallet-tcr to rc2 * pallet-root-of-trust-* to rc2 * runtime to rc2 * node to rc2 * bump spec_version * transaction_version update
- Loading branch information
1 parent
595b9c8
commit a72f574
Showing
20 changed files
with
899 additions
and
680 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Create binaries for release | ||
name: Create artefacts for release | ||
|
||
on: | ||
release: | ||
|
@@ -26,77 +26,4 @@ jobs: | |
tag_with_ref: true | ||
dockerfile: '.maintain/docker/Dockerfile' | ||
cache_froms: nodlecode/chain/nodle-chain:latest | ||
add_git_labels: true | ||
|
||
node: | ||
name: Compile and make available binaries | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache cargo registry | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-registry- | ||
- name: Cache cargo index | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-index- | ||
- name: Cache cargo build | ||
uses: actions/cache@v1 | ||
with: | ||
path: target | ||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-build-target- | ||
- name: Install ubuntu native dependencies | ||
if: matrix.os == 'ubuntu-latest' | ||
run: sudo apt install -y cmake pkg-config libssl-dev git gcc build-essential clang libclang-dev | ||
|
||
- name: Cleanup ubuntu filesystem | ||
if: matrix.os == 'ubuntu-latest' | ||
run: sudo apt clean | ||
|
||
- name: Install mac os native dependencies | ||
if: matrix.os == 'macos-latest' | ||
run: brew install openssl cmake llvm | ||
|
||
- name: Setup toolchain | ||
run: ./scripts/init.sh | ||
|
||
- name: Build in release mode | ||
run: cargo build -p nodle-chain --release | ||
|
||
- name: Upload node binary | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./target/release/nodle-chain | ||
asset_name: nodle-chain-${{ matrix.os }}-${{ github.event.release.tag_name }} | ||
asset_content_type: binary/octet-stream | ||
|
||
- name: Upload runtime WASM blob | ||
if: matrix.os == 'ubuntu-latest' # OS was chosen arbitrarily | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: target/release/wbuild/target/wasm32-unknown-unknown/release/nodle_chain_runtime.wasm | ||
asset_name: runtime-${{ github.event.release.tag_name }}.wasm | ||
asset_content_type: binary/octet-stream | ||
add_git_labels: true |
Oops, something went wrong.