Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

CI: Build in a shared target dir #3

Merged
merged 2 commits into from May 15, 2018
Merged

CI: Build in a shared target dir #3

merged 2 commits into from May 15, 2018

Conversation

pro-wh
Copy link
Member

@pro-wh pro-wh commented Apr 20, 2018

Configure the build commands in CI to use a shared target dir. Also install programs in debug mode to further share compiled libraries. Reduces build time from ~15 min to ~8 min. Deploy time goes from ~13 min to ~10 min.

fixes #2

depends: oasisprotocol/oasis-core#168

tasks before merge:

  • switch back to tagged versions (can be done already with alpha.4) master branch
  • re-enable deployment
  • change deployment filter to master branch

ekiden-key-manager
# Build the contract.
- run: cargo ekiden build-contract --output-identity
# Run the contract tests.
- run: cargo test
# Build the client.
- run:
command: cargo build
command: CARGO_BUILD_TARGET_DIR=../target cargo build
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe move this to the client Cargo.toml file.

maybe just make this whole repo a workspace, even

@pro-wh pro-wh force-pushed the targetpath branch 3 times, most recently from 8479509 to 9b37a21 Compare April 24, 2018 23:25
@pro-wh pro-wh changed the title wip: try shared target dir try shared target dir Apr 25, 2018
@pro-wh pro-wh changed the title try shared target dir CI: Build in a shared target dir Apr 25, 2018
@pro-wh pro-wh force-pushed the targetpath branch 2 times, most recently from 6235a98 to 5bf9438 Compare April 25, 2018 00:44
Copy link
Member

@peterjgilbert peterjgilbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This switches the ekiden dependencies from a tag to master. What is the best way to maintain separate configurations for the two contract-evm testnets we discussed?

@pro-wh
Copy link
Member Author

pro-wh commented Apr 26, 2018

yup that's temporary

@pro-wh
Copy link
Member Author

pro-wh commented May 3, 2018

broken on alpha.4 incompatibility

@peterjgilbert
Copy link
Member

Once oasisprotocol/oasis-core#172 is merged, we can tag alpha.5 and revisit.

# Build the contract.
- run: cargo ekiden build-contract --output-identity
# Run the contract tests.
- run: cargo test
# Build the client.
- run:
command: cargo build
environment:
CARGO_BUILD_TARGET_DIR: ../target
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rust-lang/cargo#1657
CARGO_TARGET_DIR works too, and I think that one is better documented

Copy link
Member

@peterjgilbert peterjgilbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@@ -87,7 +106,8 @@ workflows:
- deploy:
filters:
branches:
only: master
# %%% change back to master
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reminder to change back to master

@pro-wh pro-wh merged commit dc4b7fe into master May 15, 2018
@pro-wh pro-wh deleted the targetpath branch May 15, 2018 17:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants