Skip to content

Commit

Permalink
Move into makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
nambrot committed Jan 10, 2024
1 parent ae2706d commit 46d3e36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,11 @@ jobs:
- name: Install target
run: rustup target add wasm32-unknown-unknown

- name: Install cw-optimizoor --force
run: cargo install cw-optimizoor

- name: Run tests
run: cargo test --workspace --exclude hpl-tests

- name: Optimize wasm
run: cargo cw-optimizoor

- name: Rename
run: rename 's/(.*)(-aarch64)(.*)/$1$3/d' *

- name: Zip
run: cd artifacts && zip -r ../wasm_codes.zip * && cd ../
- name: Build wasm
run: make ci-build

- name: Upload artifacts
uses: actions/upload-artifact@v2
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ clean:
schema:
ls ./contracts | xargs -n 1 -t beaker wasm ts-gen

ci-build:
cargo install cw-optimizoor --force
cargo cw-optimizoor
rename 's/(.*)(-x86)(.*)/$1$3/d' *
cd artifacts && zip -r ../wasm_codes.zip * && cd ../

build:
cargo wasm

Expand Down

0 comments on commit 46d3e36

Please sign in to comment.