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

Add different networks to makefile #193

Merged
merged 6 commits into from
Jul 21, 2021
Merged

Add different networks to makefile #193

merged 6 commits into from
Jul 21, 2021

Conversation

joshuajbouw
Copy link
Contributor

@joshuajbouw joshuajbouw commented Jul 20, 2021

Now that we have testnet specific code with an upcoming PR #190, this adds the ability to compile for different networks. This prevents accidental compilation for the wrong network.

This does make some rather large changes. For one, it doesn't make symlinks. I am somewhat predicting that in the current setup it is way too easy to accidentally upload the wrong .wasm file to the wrong network. I make it more explicit. Instead of symlinks, this now copies the WASM file to the root folder with explicit names like mainnet-release.wasm.

Todo:

  • add options to make file
  • update CI

There does need to be a follow-up PR that will include CI testing for each network release.

@joshuajbouw joshuajbouw force-pushed the makefile-options branch 3 times, most recently from 332668b to 8bda35a Compare July 21, 2021 12:41
@joshuajbouw joshuajbouw marked this pull request as ready for review July 21, 2021 12:47
Copy link
Member

@birchmd birchmd left a comment

Choose a reason for hiding this comment

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

LGTM

We'll need to have CI run testnet tests at some point, but can be done in a future PR.

@@ -24,5 +24,4 @@ res/
etc/state-migration-test/target/

node_modules/*
artifacts/
Copy link
Member

Choose a reason for hiding this comment

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

Why remove this?

Copy link
Contributor Author

@joshuajbouw joshuajbouw Jul 21, 2021

Choose a reason for hiding this comment

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

@joshuajbouw joshuajbouw merged commit c57e2ce into develop Jul 21, 2021
@joshuajbouw joshuajbouw deleted the makefile-options branch July 21, 2021 13:18
artob added a commit that referenced this pull request Jul 30, 2021
* JSON: fix bugs and add unit tests. (#141)
* Add storage layout debug support for `EvmErc20.sol`. (#178)
* ERC-20: forbid using invalid NEP-141 AccountID for mapping. (#179)
* Add EIP-2930 support. (#181, #182)
* Migrate all workflows to self-hosted runners. (#185)
* Speed up the workflow using build caching. (#189)
* Use the new math API host functions. (#190)
* Fix `clippy::enum_variant_names` warning. (#192)
* Add different networks to the Makefile. (#193)
* Update the network status in the README. (#194)
* Remove the toolchain installation step in workflows. (#195)
* Run all tests for all networks in CI. (#196)
* Optimize for performance instead of code size. (#197)
* Parallelize the test suites. (#198)
* Add build-caching to the testing workflow. (#201)
* Refactor tests to use Signer. (#203)
* Add options to the bench profile. (#204)
* Remove a duplicate test. (#205)
* Add a sanity test for access list handling. (#206)
* Update nearcore to the latest branch.
* Add feature gates to the SDK's new host functions.

Co-authored-by: Ahmed Ali <ahmed@aurora.dev>
Co-authored-by: Dmitry Strokov <dmitry@aurora.dev>
Co-authored-by: Evgeny Ukhanov <evgeny@aurora.dev>
Co-authored-by: Joshua J. Bouw <joshua@aurora.dev>
Co-authored-by: Kirill <kirill@aurora.dev>
Co-authored-by: Michael Birch <michael@aurora.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants