Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:

mac-intel:
name: Mac Intel
runs-on: macos-12
runs-on: macos-13
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,20 @@ jobs:
repolinter:
name: Repolinter
runs-on: solang-ubuntu-latest
# spdx runs on python 3.10 but not any later versions
container: ubuntu:22.04
steps:
- name: Install Python and npm
run: |
apt-get update
apt-get install -y python3 git npm
- name: Checkout sources
uses: actions/checkout@v4
- name: Run repolinter
run: npx repolinter --rulesetUrl https://raw.githubusercontent.com/hyperledger-labs/hyperledger-community-management-tools/master/repo_structure/repolint.json
- uses: enarx/spdx@master
with:
licenses: Apache-2.0 MIT
licenses: Apache-2.0

docs:
name: Docs
Expand Down Expand Up @@ -199,7 +205,7 @@ jobs:

mac-intel:
name: Mac Intel
runs-on: macos-12
runs-on: macos-13
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -223,7 +229,7 @@ jobs:

mac-universal:
name: Mac Universal Binary
runs-on: macos-12
runs-on: macos-13
needs: [mac-arm, mac-intel]
steps:
- uses: actions/download-artifact@v4.1.8
Expand Down
2 changes: 1 addition & 1 deletion stdlib/solana.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ struct chunk
uint32_t allocated;
};

#define ROUND_UP(n, d) (((n) + (d)-1) & ~(d - 1))
#define ROUND_UP(n, d) (((n) + (d) - 1) & ~(d - 1))

uint64_t account_data_alloc(SolAccountInfo *ai, uint32_t size, uint32_t *res)
{
Expand Down
3 changes: 1 addition & 2 deletions tests/soroban_testcases/print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,5 @@ fn print_then_runtime_error() {
let logs = src.invoke_contract_expect_error(addr, "decrement", vec![]);

assert!(logs[0].contains("Second call will FAIL!"));
assert!(logs[1].contains("Second call will FAIL!"));
assert!(logs[2].contains("runtime_error: math overflow in test.sol:6:17-27"));
assert!(logs[1].contains("runtime_error: math overflow in test.sol:6:17-27"));
}