Skip to content

Commit

Permalink
added compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrobot committed Apr 3, 2024
1 parent 2dc7b89 commit 89babb7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Check if cw-optimize is installed
run: |
cargo cw-optimizoor --version || cargo install cw-optimizoor
- name: Compile contracts
run: |
cargo cw-optimizoor
- name: Compile WASM contracts
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target wasm32-unknown-unknown --locked --package swap-contract
env:
RUSTFLAGS: "-C link-arg=-s"

- name: Run tests
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit 89babb7

Please sign in to comment.