Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match node version with tag version #270

Merged
merged 8 commits into from
Jan 12, 2024
Merged
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
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ jobs:
- name: Check clippy
run: |
cargo clippy --all-targets --workspace --features runtime-benchmarks --features try-runtime

test:
runs-on:
group: laos
Expand Down
28 changes: 21 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,29 @@ name: Release
on:
push:
tags:
- '*'
- 'v*.*.*'
workflow_dispatch:

jobs:
check-version:
runs-on: ubuntu-latest
outputs:
proceed: ${{ steps.check_version.outputs.proceed }}
steps:
- uses: actions/checkout@v3
- id: check_version
run: |
VERSION=$(grep -m1 version Cargo.toml | sed -E 's/.*"(.*)".*/\1/')
if [ "$VERSION" == "${{ github.ref_name }}" ]; then
echo "::set-output name=proceed::true"
else
echo "Version in Cargo.toml ($VERSION) does not match current tag ${{ github.ref_name }}. Canceling release..."
echo "::set-output name=proceed::false"
fi

dockerize:
needs: check-version
if: needs.check-version.outputs.proceed == 'true'
runs-on:
group: laos
labels: ubuntu-16-cores
Expand All @@ -20,25 +38,21 @@ jobs:
- name: Build
run: |
cargo build --release

- name: Log in to Docker Hub
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: push image ownership node
- name: Push image ownership node
uses: docker/build-push-action@v4
with:
context: .
push: true
file: ./docker/ownership-node.local.Dockerfile
tags: freeverseio/laos-ownership-node:${{ github.ref_name }}

- name: Upload Ownership Wasm Binaries
run: |
echo "Uploading ownership wasm binary for release ${{ github.ref_name }}"
gh release upload ${{ github.ref_name }} ./target/release/wbuild/laos-ownership-runtime/laos_ownership_runtime.compact.compressed.wasm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ description = "The LAOS parachain node."
repository = "https://github.com/freeverseio/laos.git"
homepage = "https://www.laosfoundation.io"
authors = ["Freeverse"]
version = "0.9.0"

[workspace]
resolver = "2"
Expand Down
2 changes: 1 addition & 1 deletion ownership-chain/node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "laos-ownership"
version = "0.1.0"
edition = "2021"
authors = { workspace = true }
version = { workspace = true }
build = "build.rs"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion ownership-chain/node/src/rpc/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use sp_consensus_aura::{sr25519::AuthorityId as AuraId, AuraApi};
use sp_core::H256;
use sp_runtime::traits::Block as BlockT;
// Frontier
pub use fc_rpc::{EthBlockDataCacheTask, EthConfig, OverrideHandle, StorageOverride};
pub use fc_rpc::{EthBlockDataCacheTask, EthConfig, OverrideHandle};
#[cfg(feature = "txpool")]
use fc_rpc::{TxPool, TxPoolApiServer};
pub use fc_rpc_core::types::{FeeHistoryCache, FeeHistoryCacheLimit, FilterPool};
Expand Down
2 changes: 1 addition & 1 deletion ownership-chain/precompile/utils/macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "laos-precompile-utils-macro"
authors = ["StakeTechnologies", "PureStake"]
description = ""
description = "Precompile macro utilities"
version = "0.1.0"
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion ownership-chain/runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "laos-ownership-runtime"
version = "0.1.0"
edition = "2021"
version = { workspace = true }

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
2 changes: 0 additions & 2 deletions ownership-chain/runtime/src/weights/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@ pub mod extrinsic_weights;
pub mod paritydb_weights;
pub mod rocksdb_weights;

pub use block_weights::constants::BlockExecutionWeight;
pub use extrinsic_weights::constants::ExtrinsicBaseWeight;
pub use paritydb_weights::constants::ParityDbWeight;
pub use rocksdb_weights::constants::RocksDbWeight;