Skip to content

Commit

Permalink
victory
Browse files Browse the repository at this point in the history
  • Loading branch information
damirka committed May 13, 2024
1 parent 56797bc commit 6780d79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ jobs:
rename-to: sui-archive
cache: enable
extension: '.tgz'
# - run: 'which sui'
# The code below is unpacking the .tgz because the action used above does
# not recognize the extension. The PR to the action repo is open and once
# it's in (and if) we'll be able to remove this.
- run: 'ls /opt/hostedtoolcache/'
- name: Unpack the archive (.tgz is not supported currently)
run: 'tar -xvzf /opt/hostedtoolcache/MystenLabs/sui/latest/ubuntu-x64/sui-archive'
- name: Move binaries to $PATH
run: mv sui* /opt/hostedtoolcache/MystenLabs/sui/latest/ubuntu-x64
- run: chmod 0755 /opt/hostedtoolcache/MystenLabs/sui/latest/ubuntu-x64/sui
- run: 'sui --help'

# Run the tests in every directory using the latest mainnet binary
- run: 'sui move test --path packages/samples'
- run: 'sui move test --path packages/reference'
- run: 'sui move test --path packages/todo_list'
Expand Down
3 changes: 2 additions & 1 deletion packages/reference/sources/abilities.move
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

#[allow(unused_field)]
module ref::abilities {

// ANCHOR: annotating_structs
Expand All @@ -10,7 +11,7 @@ public struct MyVec(vector<u64>) has copy, drop, store;
// ANCHOR_END: annotating_structs

// ANCHOR: conditional_abilities
public struct Cup<T> has copy, drop, store, key { item: T }
// public struct Cup<T> has copy, drop, store, key { item: T }
// ANCHOR_END: conditional_abilities

}

0 comments on commit 6780d79

Please sign in to comment.