forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[framework] compiling the framework seems to take a lot of time so ad…
…ding in a caching layers
- Loading branch information
Showing
10 changed files
with
910 additions
and
49 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
name = "cached-framework-packages" | ||
version = "0.1.0" | ||
edition = "2018" | ||
authors = ["Aptos Labs <[email protected]>"] | ||
description = "Builds framework packages for caching in builds and tests" | ||
repository = "https://github.com/aptos-labs/aptos-core" | ||
homepage = "https://aptoslabs.com" | ||
license = "Apache-2.0" | ||
publish = false | ||
|
||
[dependencies] | ||
aptos-workspace-hack = { path = "../../../crates/aptos-workspace-hack" } | ||
framework-releases = { path = "../releases" } | ||
once_cell = "1.7.2" | ||
|
||
[build-dependencies] | ||
move-command-line-common = { git = "https://github.com/diem/move", rev = "3fe033b112eae7df2d15ab3467624165ae510caa" } | ||
framework = { path = ".." } |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) Aptos | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
use std::path::PathBuf; | ||
|
||
fn main() { | ||
let release = framework::release::ReleaseOptions { | ||
check_layout_compatibility: false, | ||
build_docs: false, | ||
with_diagram: false, | ||
script_builder: false, | ||
script_abis: false, | ||
errmap: false, | ||
package: PathBuf::from("aptos-framework"), | ||
output: PathBuf::from("fresh"), | ||
}; | ||
release.create_release(); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright (c) Aptos | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
use framework_releases::{Release, ReleaseFetcher}; | ||
use once_cell::sync::Lazy; | ||
|
||
static MODULE_BLOBS: Lazy<Vec<Vec<u8>>> = Lazy::new(|| | ||
ReleaseFetcher::new(Release::Aptos, "fresh").module_blobs().unwrap()); | ||
|
||
pub fn module_blobs() -> Vec<Vec<u8>> { | ||
MODULE_BLOBS.clone() | ||
} |
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../aptos-move/framework/cached-packages/aptos-framework/releases/artifacts/fresh/error_description/error_description.errmap |
Oops, something went wrong.