From ebff31d5a08036a07600c3b5596c50636a74c02b Mon Sep 17 00:00:00 2001 From: Malte Kliemann Date: Mon, 26 Feb 2024 23:43:44 +0100 Subject: [PATCH 1/6] Update toolchain --- rust-toolchain | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-toolchain b/rust-toolchain index faddf04d5..79f0cd6f9 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1,5 +1,5 @@ [toolchain] -channel = "nightly-2023-08-23" +channel = "nightly-2024-01-31" components = ["clippy", "rustfmt", "llvm-tools-preview"] profile = "minimal" targets = ["wasm32-unknown-unknown"] From 4c4ea8326a5ec68d1f9b563113b7bf3f2290f6dd Mon Sep 17 00:00:00 2001 From: Malte Kliemann Date: Tue, 27 Feb 2024 00:58:00 +0100 Subject: [PATCH 2/6] Fix formatting and linter errors --- node/src/cli.rs | 2 +- node/src/service.rs | 4 +- primitives/src/math/fixed.rs | 44 +++++++++---------- zrml/authorized/src/mock_storage.rs | 1 + zrml/court/src/lib.rs | 2 +- zrml/court/src/mock_storage.rs | 1 + zrml/court/src/tests.rs | 2 +- zrml/global-disputes/src/tests.rs | 12 ++--- zrml/liquidity-mining/src/lib.rs | 5 ++- zrml/prediction-markets/src/mock.rs | 4 +- .../src/tests/rikiddo_sigmoid_mv/cost.rs | 4 +- .../src/tests/rikiddo_sigmoid_mv/misc.rs | 4 +- .../src/tests/rikiddo_sigmoid_mv/price.rs | 4 +- zrml/styx/src/benchmarks.rs | 4 +- 14 files changed, 51 insertions(+), 42 deletions(-) diff --git a/node/src/cli.rs b/node/src/cli.rs index 68d27a898..e994b20a7 100644 --- a/node/src/cli.rs +++ b/node/src/cli.rs @@ -38,8 +38,8 @@ use sp_runtime::{ }; use sp_storage::{ChildInfo, StorageData, StorageKey}; use std::sync::Arc; -pub use zeitgeist_primitives::types::{AccountId, Balance, BlockNumber, Hash, Index}; use zeitgeist_primitives::types::{Block, Header}; +pub use zeitgeist_primitives::types::{BlockNumber, Hash}; #[cfg(feature = "with-battery-station-runtime")] use { super::service::BatteryStationExecutor, diff --git a/node/src/service.rs b/node/src/service.rs index 85797c8fb..4c02c905f 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -30,9 +30,7 @@ use sc_service::{ error::Error as ServiceError, ChainSpec, Configuration, PartialComponents, TaskManager, }; #[cfg(feature = "parachain")] -pub use service_parachain::{ - new_full, new_partial, FullBackend, FullClient, ParachainPartialComponents, -}; +pub use service_parachain::{new_full, new_partial, FullBackend, FullClient}; #[cfg(not(feature = "parachain"))] pub use service_standalone::{new_full, new_partial, FullBackend, FullClient}; use sp_api::ConstructRuntimeApi; diff --git a/primitives/src/math/fixed.rs b/primitives/src/math/fixed.rs index eff7434d5..cf9f5e942 100644 --- a/primitives/src/math/fixed.rs +++ b/primitives/src/math/fixed.rs @@ -366,6 +366,28 @@ mod tests { pub(crate) const _1_10: u128 = _1 / 10; + #[macro_export] + macro_rules! assert_approx { + ($left:expr, $right:expr, $precision:expr $(,)?) => { + match (&$left, &$right, &$precision) { + (left_val, right_val, precision_val) => { + let diff = if *left_val > *right_val { + *left_val - *right_val + } else { + *right_val - *left_val + }; + if diff > *precision_val { + panic!( + "assertion `left approx== right` failed\n left: {}\n right: \ + {}\n precision: {}\ndifference: {}", + *left_val, *right_val, *precision_val, diff + ); + } + } + } + }; + } + #[test_case(0, 0, 0)] #[test_case(0, _1, 0)] #[test_case(0, _2, 0)] @@ -1075,25 +1097,3 @@ mod tests { assert_approx!(result, expected, 1); } } - -#[macro_export] -macro_rules! assert_approx { - ($left:expr, $right:expr, $precision:expr $(,)?) => { - match (&$left, &$right, &$precision) { - (left_val, right_val, precision_val) => { - let diff = if *left_val > *right_val { - *left_val - *right_val - } else { - *right_val - *left_val - }; - if diff > *precision_val { - panic!( - "assertion `left approx== right` failed\n left: {}\n right: {}\n \ - precision: {}\ndifference: {}", - *left_val, *right_val, *precision_val, diff - ); - } - } - } - }; -} diff --git a/zrml/authorized/src/mock_storage.rs b/zrml/authorized/src/mock_storage.rs index 88bf6c02b..4fecb9029 100644 --- a/zrml/authorized/src/mock_storage.rs +++ b/zrml/authorized/src/mock_storage.rs @@ -18,6 +18,7 @@ #![cfg(test)] #![allow(dead_code)] +#![allow(unused_imports)] #[frame_support::pallet] pub(crate) mod pallet { diff --git a/zrml/court/src/lib.rs b/zrml/court/src/lib.rs index bfcc95600..3d292596d 100644 --- a/zrml/court/src/lib.rs +++ b/zrml/court/src/lib.rs @@ -1398,7 +1398,7 @@ mod pallet { remainder ); - T::Currency::burn(remainder); + let _ = T::Currency::burn(remainder); } T::WeightInfo::handle_inflation(pool_len) diff --git a/zrml/court/src/mock_storage.rs b/zrml/court/src/mock_storage.rs index 13b5818dc..33b10f1c4 100644 --- a/zrml/court/src/mock_storage.rs +++ b/zrml/court/src/mock_storage.rs @@ -17,6 +17,7 @@ #![cfg(test)] #![allow(dead_code)] +#![allow(unused_imports)] pub use pallet::*; use parity_scale_codec::Encode; diff --git a/zrml/court/src/tests.rs b/zrml/court/src/tests.rs index 4592413e3..71a6561f1 100644 --- a/zrml/court/src/tests.rs +++ b/zrml/court/src/tests.rs @@ -1515,7 +1515,7 @@ fn appeal_emits_event() { let court = Courts::::get(court_id).unwrap(); let new_round_ends = Some(court.round_ends); - let appeal_info = court.appeals.get(0).unwrap().clone(); + let appeal_info = court.appeals.first().unwrap().clone(); System::assert_last_event( Event::CourtAppealed { court_id, appeal_info, new_round_ends }.into(), diff --git a/zrml/global-disputes/src/tests.rs b/zrml/global-disputes/src/tests.rs index bd861221b..da55844ab 100644 --- a/zrml/global-disputes/src/tests.rs +++ b/zrml/global-disputes/src/tests.rs @@ -241,7 +241,7 @@ fn start_global_dispute_fails_if_max_owner_reached() { ExtBuilder::default().build().execute_with(|| { let market_id = 0u128; let market = market_mock::(); - Markets::::insert(market_id, &market); + Markets::::insert(market_id, market); let mut initial_items = Vec::new(); initial_items.push(InitialItem { @@ -269,7 +269,7 @@ fn start_global_dispute_fails_if_shared_possession_required() { ExtBuilder::default().build().execute_with(|| { let market_id = 0u128; let market = market_mock::(); - Markets::::insert(market_id, &market); + Markets::::insert(market_id, market); let outcome_info = OutcomeInfo { outcome_sum: SETUP_AMOUNT, @@ -303,7 +303,7 @@ fn start_global_dispute_adds_owners_for_existing_outcome() { ExtBuilder::default().build().execute_with(|| { let market_id = 0u128; let market = market_mock::(); - Markets::::insert(market_id, &market); + Markets::::insert(market_id, market); let mut initial_items = Vec::new(); initial_items.push(InitialItem { @@ -334,7 +334,7 @@ fn start_global_dispute_updates_to_highest_winner() { ExtBuilder::default().build().execute_with(|| { let market_id = 0u128; let market = market_mock::(); - Markets::::insert(market_id, &market); + Markets::::insert(market_id, market); let mut initial_items = Vec::new(); initial_items.push(InitialItem { @@ -1153,7 +1153,7 @@ fn purge_outcomes_partially_cleaned_works() { ExtBuilder::default().build().execute_with(|| { let market_id = 0u128; let market = market_mock::(); - Markets::::insert(market_id, &market); + Markets::::insert(market_id, market); let mut initial_items = Vec::new(); for i in 0..(2 * RemoveKeysLimit::get()) { @@ -1187,7 +1187,7 @@ fn refund_vote_fees_works() { ExtBuilder::default().build().execute_with(|| { let market_id = 0u128; let market = market_mock::(); - Markets::::insert(market_id, &market); + Markets::::insert(market_id, market); let pushed_outcome_1 = 0; let pushed_outcome_2 = 20; diff --git a/zrml/liquidity-mining/src/lib.rs b/zrml/liquidity-mining/src/lib.rs index 0b54af5f8..94b7f28dd 100644 --- a/zrml/liquidity-mining/src/lib.rs +++ b/zrml/liquidity-mining/src/lib.rs @@ -145,7 +145,10 @@ mod pallet { #[pallet::genesis_build] impl GenesisBuild for GenesisConfig { fn build(&self) { - T::Currency::deposit_creating(&Pallet::::pallet_account_id(), self.initial_balance); + let _ = T::Currency::deposit_creating( + &Pallet::::pallet_account_id(), + self.initial_balance, + ); >::put(self.per_block_distribution); } } diff --git a/zrml/prediction-markets/src/mock.rs b/zrml/prediction-markets/src/mock.rs index 4eec9a8f7..813687480 100644 --- a/zrml/prediction-markets/src/mock.rs +++ b/zrml/prediction-markets/src/mock.rs @@ -85,8 +85,8 @@ pub struct DeployPoolArgs { } thread_local! { - pub static DEPLOY_POOL_CALL_DATA: RefCell> = RefCell::new(vec![]); - pub static DEPLOY_POOL_RETURN_VALUE: RefCell = RefCell::new(Ok(())); + pub static DEPLOY_POOL_CALL_DATA: RefCell> = const { RefCell::new(vec![]) }; + pub static DEPLOY_POOL_RETURN_VALUE: RefCell = const { RefCell::new(Ok(())) }; } #[allow(unused)] diff --git a/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/cost.rs b/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/cost.rs index 4630380b8..0d2d5606b 100644 --- a/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/cost.rs +++ b/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/cost.rs @@ -1,4 +1,4 @@ -// Copyright 2021-2022 Zeitgeist PM LLC. +// Copyright 2021-2022, 2024 Zeitgeist PM LLC. // // This file is part of Zeitgeist. // @@ -15,6 +15,8 @@ // You should have received a copy of the GNU General Public License // along with Zeitgeist. If not, see . +#![allow(clippy::useless_vec)] + use frame_support::assert_err; use hashbrown::HashMap; use substrate_fixed::{traits::ToFixed, types::extra::U64, FixedI128, FixedU128}; diff --git a/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/misc.rs b/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/misc.rs index e7b099457..d259ee02a 100644 --- a/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/misc.rs +++ b/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/misc.rs @@ -1,4 +1,4 @@ -// Copyright 2021-2022 Zeitgeist PM LLC. +// Copyright 2021-2022, 2024 Zeitgeist PM LLC. // // This file is part of Zeitgeist. // @@ -15,6 +15,8 @@ // You should have received a copy of the GNU General Public License // along with Zeitgeist. If not, see . +#![allow(clippy::useless_vec)] + use frame_support::assert_err; use substrate_fixed::{traits::ToFixed, types::extra::U64, FixedI128}; diff --git a/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/price.rs b/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/price.rs index c9480981e..07cb4b0b5 100644 --- a/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/price.rs +++ b/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/price.rs @@ -1,4 +1,4 @@ -// Copyright 2022-2023 Forecasting Technologies LTD. +// Copyright 2022-2024 Forecasting Technologies LTD. // Copyright 2021-2022 Zeitgeist PM LLC. // // This file is part of Zeitgeist. @@ -17,6 +17,8 @@ // along with Zeitgeist. If not, see . #![allow(clippy::needless_late_init)] +#![allow(clippy::useless_vec)] + use frame_support::assert_err; use substrate_fixed::{traits::ToFixed, types::extra::U64, FixedI128, FixedU128}; diff --git a/zrml/styx/src/benchmarks.rs b/zrml/styx/src/benchmarks.rs index c38aa77c2..00a1e9816 100644 --- a/zrml/styx/src/benchmarks.rs +++ b/zrml/styx/src/benchmarks.rs @@ -40,7 +40,7 @@ benchmarks! { cross { let caller: T::AccountId = whitelisted_caller(); let balance = (90_000_000 * BASE).saturated_into(); - T::Currency::deposit_creating(&caller, balance); + let _ = T::Currency::deposit_creating(&caller, balance); }: _(RawOrigin::Signed(caller)) set_burn_amount { @@ -48,7 +48,7 @@ benchmarks! { let caller: T::AccountId = whitelisted_caller(); let balance = (10_000 * BASE).saturated_into(); let amount = (20 * BASE).saturated_into(); - T::Currency::deposit_creating(&caller, balance); + let _ = T::Currency::deposit_creating(&caller, balance); let call = Call::::set_burn_amount { amount }; }: { call.dispatch_bypass_filter(origin)? } From f70af620aca4bc5fb79bfd5deb7444453bbbdff0 Mon Sep 17 00:00:00 2001 From: Malte Kliemann Date: Tue, 27 Feb 2024 00:59:06 +0100 Subject: [PATCH 3/6] Update copyright notices --- node/src/cli.rs | 2 +- node/src/service.rs | 2 +- zrml/authorized/src/mock_storage.rs | 2 +- zrml/court/src/mock_storage.rs | 2 +- zrml/global-disputes/src/tests.rs | 2 +- zrml/liquidity-mining/src/lib.rs | 2 +- zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/cost.rs | 1 + zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/misc.rs | 1 + zrml/styx/src/benchmarks.rs | 2 +- 9 files changed, 9 insertions(+), 7 deletions(-) diff --git a/node/src/cli.rs b/node/src/cli.rs index e994b20a7..31c9dffda 100644 --- a/node/src/cli.rs +++ b/node/src/cli.rs @@ -1,4 +1,4 @@ -// Copyright 2023 Forecasting Technologies LTD. +// Copyright 2023-2024 Forecasting Technologies LTD. // Copyright 2021-2022 Zeitgeist PM LLC. // Copyright 2017-2020 Parity Technologies (UK) Ltd. // diff --git a/node/src/service.rs b/node/src/service.rs index 4c02c905f..dd9f57b4b 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -1,4 +1,4 @@ -// Copyright 2022-2023 Forecasting Technologies LTD. +// Copyright 2022-2024 Forecasting Technologies LTD. // Copyright 2021-2022 Zeitgeist PM LLC. // // This file is part of Zeitgeist. diff --git a/zrml/authorized/src/mock_storage.rs b/zrml/authorized/src/mock_storage.rs index 4fecb9029..c70c395d1 100644 --- a/zrml/authorized/src/mock_storage.rs +++ b/zrml/authorized/src/mock_storage.rs @@ -1,4 +1,4 @@ -// Copyright 2023 Forecasting Technologies LTD. +// Copyright 2023-2024 Forecasting Technologies LTD. // Copyright 2022 Forecasting Technologies LTD. // // This file is part of Zeitgeist. diff --git a/zrml/court/src/mock_storage.rs b/zrml/court/src/mock_storage.rs index 33b10f1c4..296766ea7 100644 --- a/zrml/court/src/mock_storage.rs +++ b/zrml/court/src/mock_storage.rs @@ -1,4 +1,4 @@ -// Copyright 2023 Forecasting Technologies LTD. +// Copyright 2023-2024 Forecasting Technologies LTD. // // This file is part of Zeitgeist. // diff --git a/zrml/global-disputes/src/tests.rs b/zrml/global-disputes/src/tests.rs index da55844ab..78b3ff94a 100644 --- a/zrml/global-disputes/src/tests.rs +++ b/zrml/global-disputes/src/tests.rs @@ -1,4 +1,4 @@ -// Copyright 2022-2023 Forecasting Technologies LTD. +// Copyright 2022-2024 Forecasting Technologies LTD. // // This file is part of Zeitgeist. // diff --git a/zrml/liquidity-mining/src/lib.rs b/zrml/liquidity-mining/src/lib.rs index 94b7f28dd..a2346ebfa 100644 --- a/zrml/liquidity-mining/src/lib.rs +++ b/zrml/liquidity-mining/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2022-2023 Forecasting Technologies LTD. +// Copyright 2022-2024 Forecasting Technologies LTD. // Copyright 2021-2022 Zeitgeist PM LLC. // // This file is part of Zeitgeist. diff --git a/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/cost.rs b/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/cost.rs index 0d2d5606b..953825267 100644 --- a/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/cost.rs +++ b/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/cost.rs @@ -1,3 +1,4 @@ +// Copyright 2024 Forecasting Technologies LTD. // Copyright 2021-2022, 2024 Zeitgeist PM LLC. // // This file is part of Zeitgeist. diff --git a/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/misc.rs b/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/misc.rs index d259ee02a..a11438f4a 100644 --- a/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/misc.rs +++ b/zrml/rikiddo/src/tests/rikiddo_sigmoid_mv/misc.rs @@ -1,3 +1,4 @@ +// Copyright 2024 Forecasting Technologies LTD. // Copyright 2021-2022, 2024 Zeitgeist PM LLC. // // This file is part of Zeitgeist. diff --git a/zrml/styx/src/benchmarks.rs b/zrml/styx/src/benchmarks.rs index 00a1e9816..86d1dd06a 100644 --- a/zrml/styx/src/benchmarks.rs +++ b/zrml/styx/src/benchmarks.rs @@ -1,4 +1,4 @@ -// Copyright 2023 Forecasting Technologies LTD. +// Copyright 2023-2024 Forecasting Technologies LTD. // Copyright 2021-2022 Zeitgeist PM LLC. // // This file is part of Zeitgeist. From 0863c67aae3b9127c02a063b49becf2a979827f3 Mon Sep 17 00:00:00 2001 From: Malte Kliemann Date: Tue, 27 Feb 2024 14:41:38 +0100 Subject: [PATCH 4/6] Use GitHub action to freee up space --- .github/workflows/coverage.yml | 21 +++++---------- .github/workflows/migration.yml | 5 ++++ .github/workflows/rust.yml | 43 +++++++++++-------------------- .github/workflows/try-runtime.yml | 10 +++++++ 4 files changed, 36 insertions(+), 43 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 8a43c0520..f6a30767b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -22,6 +22,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Free up disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + - name: Install rust toolchain run: rustup show @@ -29,20 +34,6 @@ jobs: with: crate: grcov use-tool-cache: true - - # No disk space: https://github.com/zeitgeistpm/zeitgeist/actions/runs/5085081984/jobs/9144298675?pr=1006 - # Workaround: https://github.com/actions/runner-images/issues/2840#issuecomment-790492173 - - name: Free up disk space on GitHub hosted runners - run: | - # Ensure context is GitHub hosted runner - # https://docs.github.com/en/actions/learn-github-actions/contexts#runner-context - if [[ "${{ runner.name }}" == "GitHub Actions"* ]]; then - echo "Freeing up space in GitHub hosted runner" - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - fi - name: Cache Dependencies uses: Swatinem/rust-cache@v1 @@ -58,4 +49,4 @@ jobs: fail_ci_if_error: true flags: tests verbose: true - name: unit-tests \ No newline at end of file + name: unit-tests diff --git a/.github/workflows/migration.yml b/.github/workflows/migration.yml index 967dc6510..46e783809 100644 --- a/.github/workflows/migration.yml +++ b/.github/workflows/migration.yml @@ -17,4 +17,9 @@ jobs: - name: Install build tools run: ./scripts/init.sh + - name: Free up disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + - run: ./scripts/runtime-upgrade/test_runtime_upgrade.sh ${{ github.event.inputs.block }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4d52a85ec..d40da71a2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -118,22 +118,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Free up disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + - name: Install build tools run: ./scripts/init.sh - - # No disk space: https://github.com/zeitgeistpm/zeitgeist/actions/runs/5085081984/jobs/9144298675?pr=1006 - # Workaround: https://github.com/actions/runner-images/issues/2840#issuecomment-790492173 - - name: Free up disk space on GitHub hosted runners - run: | - # Ensure context is GitHub hosted runner - # https://docs.github.com/en/actions/learn-github-actions/contexts#runner-context - if [[ "${{ runner.name }}" == "GitHub Actions"* ]]; then - echo "Freeing up space in GitHub hosted runner" - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - fi - name: Cache Dependencies uses: Swatinem/rust-cache@v1 @@ -153,22 +144,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Free up disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + - name: Install build tools run: ./scripts/init.sh - - # No disk space: https://github.com/zeitgeistpm/zeitgeist/actions/runs/5085081984/jobs/9144298675?pr=1006 - # Workaround: https://github.com/actions/runner-images/issues/2840#issuecomment-790492173 - - name: Free up disk space on GitHub hosted runners - run: | - # Ensure context is GitHub hosted runner - # https://docs.github.com/en/actions/learn-github-actions/contexts#runner-context - if [[ "${{ runner.name }}" == "GitHub Actions"* ]]; then - echo "Freeing up space in GitHub hosted runner" - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - fi - name: Cache Dependencies uses: Swatinem/rust-cache@v1 @@ -188,6 +170,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Free up disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + - name: Install build tools run: ./scripts/init.sh diff --git a/.github/workflows/try-runtime.yml b/.github/workflows/try-runtime.yml index 676368afa..53f176072 100644 --- a/.github/workflows/try-runtime.yml +++ b/.github/workflows/try-runtime.yml @@ -13,6 +13,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Free up disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + - name: Install build tools run: ./scripts/init.sh @@ -27,6 +32,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Free up disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + - name: Install build tools run: ./scripts/init.sh From 2f93eb865f2cce343b5845cc099de34b2fd8bde2 Mon Sep 17 00:00:00 2001 From: Malte Kliemann Date: Tue, 27 Feb 2024 23:45:19 +0100 Subject: [PATCH 5/6] Add missing disk cleanups --- .github/workflows/rust.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d40da71a2..e88f9ffe5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -80,6 +80,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Free up disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + - name: Install build tools run: ./scripts/init.sh @@ -101,6 +106,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Free up disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + - name: Install build tools run: ./scripts/init.sh From 1f45b996328070b364584dc428e594d902c612e5 Mon Sep 17 00:00:00 2001 From: Malte Kliemann Date: Tue, 27 Feb 2024 23:48:02 +0100 Subject: [PATCH 6/6] Fix copyright --- zrml/authorized/src/mock_storage.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zrml/authorized/src/mock_storage.rs b/zrml/authorized/src/mock_storage.rs index c70c395d1..a58bb2748 100644 --- a/zrml/authorized/src/mock_storage.rs +++ b/zrml/authorized/src/mock_storage.rs @@ -1,5 +1,4 @@ -// Copyright 2023-2024 Forecasting Technologies LTD. -// Copyright 2022 Forecasting Technologies LTD. +// Copyright 2022-2024 Forecasting Technologies LTD. // // This file is part of Zeitgeist. //