Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/build-debian-11-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: assets-for-download
path: output


path: output
2 changes: 0 additions & 2 deletions .github/workflows/build-ubuntu-2204-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ jobs:
with:
name: assets-for-download
path: output


79 changes: 79 additions & 0 deletions .github/workflows/ci-ondemand.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Ternoa Node CI

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Get submodules
run: git submodule update --init --recursive

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2022-04-24
components: rustfmt, llvm-tools-preview
target: wasm32-unknown-unknown
default: true

- name: Install protoc
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler

- name: Cache restore
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Clean
run: cargo clean

- name: Check format
run: cargo fmt --all -- --check

- name: Check release
run: cargo check --release

- name: Tests
run: cargo test --all

- name: Build
run: cargo build --locked --release

- name: Upload WASM Alphanet
uses: actions/upload-artifact@v3
with:
name: assets-for-download-alphanet
path: target/release/wbuild/alphanet-runtime/alphanet_runtime.compact.compressed.wasm

- name: Upload WASM Mainnet
uses: actions/upload-artifact@v3
with:
name: assets-for-download-mainnet
path: target/release/wbuild/mainnet-runtime/mainnet_runtime.compact.compressed.wasm

- name: Upload Binary Alphanet
uses: actions/upload-artifact@v3
with:
name: assets-for-download-alphanet
path: target/release/wbuild/alphanet-runtime/alphanet_runtime.compact.compressed.wasm

- name: Upload Binary Mainnet
uses: actions/upload-artifact@v3
with:
name: assets-for-download-mainnet
path: target/release/wbuild/mainnet-runtime/mainnet_runtime.compact.compressed.wasm
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Ternoa Node CI

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Get submodules
run: git submodule update --init --recursive

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2022-04-24
components: rustfmt, llvm-tools-preview
target: wasm32-unknown-unknown
default: true

- name: Install protoc
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler

- name: Cache restore
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Clean
run: cargo clean

- name: Check format
run: cargo fmt --all -- --check

- name: Tests
run: cargo test --all