Skip to content

Commit

Permalink
may-2020.rc2 (#175)
Browse files Browse the repository at this point in the history
* 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
ETeissonniere authored May 26, 2020
1 parent 595b9c8 commit a72f574
Show file tree
Hide file tree
Showing 20 changed files with 899 additions and 680 deletions.
2 changes: 2 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ Describe what is changed and your reasoning.
### Sanity
- [ ] I have incremented the runtime version number
- [ ] I have incremented `transaction_version` if needed

### Quality
- [ ] I have added unit tests, and they are passing
- [ ] I have added benchmarks to my pallet
- [ ] I have added the benchmarks to the node
- [ ] I have added potential RPC calls to the node
- [ ] I have added comments and documentation

### Testing
Expand Down
77 changes: 2 additions & 75 deletions .github/workflows/release.yml
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:
Expand Down Expand Up @@ -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
Loading

0 comments on commit a72f574

Please sign in to comment.