Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
amityadav0 committed Sep 11, 2023
1 parent 6cbba70 commit 35bec75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,9 @@ jobs:
- name: Build
env:
IS_GITHUB_ACTION: true
run: |
mkdir res && cd astra && RUSTFLAGS='-C link-arg=-s' cargo build --target wasm32-unknown-unknown --release
cd .. && cp target/wasm32-unknown-unknown/release/astra.wasm res/
- name: Build
env:
IS_GITHUB_ACTION: true
run: cargo build --workspace --target wasm32-unknown-unknown --release
- name: Wasm copy
run: cp target/wasm32-unknown-unknown/release/*.wasm res/
run: sh build.sh

- name: Run Cargo tests
env:
IS_GITHUB_ACTION: true
run: cargo test --workspace -- --nocapture
# - name: Run Ava tests
# env:
# IS_GITHUB_ACTION: true
# run: cd astra && sh test.sh
2 changes: 1 addition & 1 deletion astra-factory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const FACTORY_OWNER_KEY: &[u8; 5] = b"OWNER";
const CODE_METADATA_KEY: &[u8; 8] = b"METADATA";

// The values used when writing initial data to the storage.
const DAO_CONTRACT_INITIAL_CODE: &[u8] = include_bytes!("../../res/astra.wasm");
const DAO_CONTRACT_INITIAL_CODE: &[u8] = include_bytes!("../../target/wasm32-unknown-unknown/release/astra.wasm");
const DAO_CONTRACT_INITIAL_VERSION: Version = [3, 0];
const DAO_CONTRACT_NO_DATA: &str = "no data";

Expand Down

0 comments on commit 35bec75

Please sign in to comment.