Skip to content

Commit 98b8986

Browse files
committed
fix merge issues (mostly with Conan2 upgrade)
1 parent 250f284 commit 98b8986

File tree

7 files changed

+21
-20
lines changed

7 files changed

+21
-20
lines changed

.github/workflows/macos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- release
1212
- master
1313
# Branches that opt-in to running
14-
- 'ci/**'
14+
- "ci/**"
1515
concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
@@ -31,7 +31,6 @@ env:
3131
tools.compilation:verbosity=verbose
3232
3333
jobs:
34-
3534
test:
3635
if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }}
3736
strategy:
@@ -88,7 +87,7 @@ jobs:
8887
sysctl -n hw.logicalcpu
8988
clang --version
9089
- name: configure Conan
91-
run : |
90+
run: |
9291
echo "${CONAN_GLOBAL_CONF}" >> $(conan config home)/global.conf
9392
conan config install conan/profiles/ -tf $(conan config home)/profiles/
9493
conan profile show
@@ -98,6 +97,7 @@ jobs:
9897
conan export --version 1.1.10 external/snappy
9998
conan export --version 9.7.3 external/rocksdb
10099
conan export --version 4.0.3 external/soci
100+
conan export --version 2.3.1 external/wamr
101101
- name: add Ripple Conan remote
102102
if: env.CONAN_URL != ''
103103
shell: bash

.github/workflows/nix.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ jobs:
384384
run: |
385385
echo "${CONAN_GLOBAL_CONF}" >> $(conan config home)/global.conf
386386
conan config install conan/profiles/ -tf $(conan config home)/profiles/
387+
conan export --version 2.3.1 external/wamr
387388
conan profile show
388389
- name: build dependencies
389390
run: |

.github/workflows/windows.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- release
1313
- master
1414
# Branches that opt-in to running
15-
- 'ci/**'
15+
- "ci/**"
1616

1717
# https://docs.github.com/en/actions/using-jobs/using-concurrency
1818
concurrency:
@@ -34,7 +34,6 @@ env:
3434
tools.compilation:verbosity=verbose
3535
3636
jobs:
37-
3837
test:
3938
if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }}
4039
strategy:
@@ -70,8 +69,8 @@ jobs:
7069
- name: restore Python cache directory
7170
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684
7271
with:
73-
path: ${{ steps.pip-cache.outputs.dir }}
74-
key: ${{ runner.os }}-${{ hashFiles('.github/workflows/windows.yml') }}
72+
path: ${{ steps.pip-cache.outputs.dir }}
73+
key: ${{ runner.os }}-${{ hashFiles('.github/workflows/windows.yml') }}
7574
- name: install Conan
7675
run: pip install wheel conan
7776
- name: check environment
@@ -93,6 +92,7 @@ jobs:
9392
conan export --version 1.1.10 external/snappy
9493
conan export --version 9.7.3 external/rocksdb
9594
conan export --version 4.0.3 external/soci
95+
conan export --version 2.3.1 external/wamr
9696
- name: add Ripple Conan remote
9797
if: env.CONAN_URL != ''
9898
shell: bash
@@ -110,10 +110,10 @@ jobs:
110110
- name: build
111111
uses: ./.github/actions/build
112112
with:
113-
generator: '${{ matrix.version.generator }}'
113+
generator: "${{ matrix.version.generator }}"
114114
configuration: ${{ matrix.configuration.type }}
115115
# Hard code for now. Move to the matrix if varied options are needed
116-
cmake-args: '-Dassert=TRUE -Dwerr=TRUE -Dreporting=OFF -Dunity=ON'
116+
cmake-args: "-Dassert=TRUE -Dwerr=TRUE -Dreporting=OFF -Dunity=ON"
117117
cmake-target: install
118118
- name: test
119119
shell: bash

conanfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ def package_info(self):
193193
'protobuf::libprotobuf',
194194
'soci::soci',
195195
'sqlite3::sqlite',
196+
'wamr::wamr',
196197
'xxhash::xxhash',
197198
'zlib::zlib',
198199
]

external/wamr/conanfile.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
from conans import ConanFile, tools
1+
from conan import ConanFile, tools
22
from conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps, cmake_layout
33
from conan.tools.files import (
44
apply_conandata_patches,
55
export_conandata_patches,
66
# get,
77
)
8+
from conan.tools.scm import Git
89

910
# import os
1011

@@ -21,7 +22,6 @@ class WamrConan(ConanFile):
2122
settings = "os", "compiler", "build_type", "arch"
2223
options = {"shared": [True, False], "fPIC": [True, False]}
2324
default_options = {"shared": False, "fPIC": True}
24-
generators = "CMakeToolchain", "CMakeDeps"
2525
# requires = [("llvm/20.1.1@")]
2626

2727
def export_sources(self):
@@ -39,11 +39,10 @@ def layout(self):
3939
cmake_layout(self, src_folder="src")
4040

4141
def source(self):
42-
git = tools.Git()
43-
git.clone(
44-
"https://github.com/bytecodealliance/wasm-micro-runtime.git",
45-
"2a303861cc916dc182b7fecaa0aacc1b797e7ac6",
46-
shallow=True,
42+
git = Git(self)
43+
git.fetch_commit(
44+
url="https://github.com/bytecodealliance/wasm-micro-runtime.git",
45+
commit="2a303861cc916dc182b7fecaa0aacc1b797e7ac6",
4746
)
4847
# get(self, **self.conan_data["sources"][self.version], strip_root=True)
4948

@@ -89,4 +88,3 @@ def package_info(self):
8988
self.cpp_info.libs = ["iwasm"]
9089
self.cpp_info.names["cmake_find_package"] = "wamr"
9190
self.cpp_info.names["cmake_find_package_multi"] = "wamr"
92-

src/test/app/Escrow_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,7 @@ struct Escrow_test : public beast::unit_test::suite
17121712

17131713
{
17141714
// featureSmartEscrow disabled
1715-
Env env(*this, supported_amendments() - featureSmartEscrow);
1715+
Env env(*this, testable_amendments() - featureSmartEscrow);
17161716
env.fund(XRP(5000), alice, carol);
17171717
XRPAmount const txnFees = env.current()->fees().base + 1000;
17181718
auto escrowCreate = escrow::create(alice, carol, XRP(1000));
@@ -1882,7 +1882,7 @@ struct Escrow_test : public beast::unit_test::suite
18821882

18831883
{
18841884
// featureSmartEscrow disabled
1885-
Env env(*this, supported_amendments() - featureSmartEscrow);
1885+
Env env(*this, testable_amendments() - featureSmartEscrow);
18861886
env.fund(XRP(5000), alice, carol);
18871887
XRPAmount const txnFees = env.current()->fees().base + 1000;
18881888
env(escrow::finish(carol, alice, 1),

src/xrpld/app/tx/detail/Escrow.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,8 @@ EscrowFinish::doApply()
11891189

11901190
if (ctx_.view().rules().enabled(featureDepositAuth))
11911191
{
1192-
if (auto err = verifyDepositPreauth(ctx_, account_, destID, sled);
1192+
if (auto err = verifyDepositPreauth(
1193+
ctx_.tx, ctx_.view(), account_, destID, sled, ctx_.journal);
11931194
!isTesSuccess(err))
11941195
return err;
11951196
}

0 commit comments

Comments
 (0)