Browse Source

[remote-executor] Move overflow check (#837)

* Move overflow check

* Modify workflow
guibescos 2 years ago
parent
commit
2df32a6108

+ 2 - 1
.github/workflows/remote-executor.yml

@@ -15,8 +15,9 @@ jobs:
       - uses: actions-rs/toolchain@v1
         with:
           profile: minimal
-          toolchain: nightly
+          toolchain: 1.66.1
           components: rustfmt, clippy
+          override: true
       - name: Install Solana
         run: |
           sh -c "$(curl -sSfL https://release.solana.com/stable/install)"

+ 3 - 0
governance/remote_executor/Cargo.toml

@@ -3,3 +3,6 @@ members = [
     "programs/*",
     "cli/"
 ]
+
+[profile.release]
+overflow-checks = true

+ 0 - 3
governance/remote_executor/programs/remote-executor/Cargo.toml

@@ -16,9 +16,6 @@ cpi = ["no-entrypoint"]
 default = []
 pythtest = []
 
-[profile.release]
-overflow-checks = true
-
 [dependencies]
 anchor-lang = {version = "0.25.0", features = ["init-if-needed"]}
 wormhole-solana = { git = "https://github.com/guibescos/wormhole", branch = "reisen/sdk-solana"}