Skip to content

Commit d9799f6

Browse files
authored
Merge pull request #54 from cryptogarageinc/features/sprint60
update to v0.2.5
2 parents 4875c54 + 8357306 commit d9799f6

File tree

10 files changed

+289
-106
lines changed

10 files changed

+289
-106
lines changed

.github/workflows/check_pre-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ${{ matrix.os }}
1919
strategy:
2020
matrix:
21-
os: [windows-latest, macos-latest, ubuntu-20.04, ubuntu-18.04]
21+
os: [windows-2019, macos-10.15, ubuntu-20.04, ubuntu-18.04]
2222

2323
steps:
2424
- uses: actions/checkout@v2

.github/workflows/create_release-and-upload.yml

Lines changed: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
create_releases:
1010
name: create-releases
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-18.04
1212
outputs:
1313
release_url: ${{ steps.output_url.outputs.upload_url }}
1414

@@ -44,7 +44,7 @@ jobs:
4444
upload-object-windows-vs2019:
4545
name: upload-object-win-vs2019
4646
needs: create_releases
47-
runs-on: windows-latest
47+
runs-on: windows-2019
4848
strategy:
4949
fail-fast: false
5050
matrix:
@@ -170,7 +170,7 @@ jobs:
170170
upload-object-alpine:
171171
name: upload-object-alpine
172172
needs: create_releases
173-
runs-on: ubuntu-latest
173+
runs-on: ubuntu-18.04
174174

175175
steps:
176176
- name: checkout
@@ -213,3 +213,57 @@ jobs:
213213
asset_path: /tmp/cfd/cfd.zip
214214
asset_name: cfd-sys-${{ steps.get_version.outputs.VERSION }}-alpine_x86_64.zip
215215
asset_content_type: application/zip
216+
217+
upload-object-macos:
218+
name: upload-object-macos
219+
needs: create_releases
220+
runs-on: macos-10.15
221+
strategy:
222+
fail-fast: false
223+
matrix:
224+
xcode: [10.3, 11.6]
225+
shared: [on, off]
226+
include:
227+
- shared: on
228+
suffix:
229+
- shared: off
230+
suffix: -static
231+
232+
steps:
233+
- name: checkout
234+
uses: actions/checkout@v2
235+
- name: Get the version
236+
id: get_version
237+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
238+
- name: cmake-build
239+
run: |
240+
cd cfd-sys/cfd-cmake
241+
mkdir dist
242+
mkdir build
243+
cd build
244+
cmake .. -DENABLE_SHARED=${{ matrix.shared }} -DENABLE_TESTS=off -DENABLE_JS_WRAPPER=off -DCMAKE_BUILD_TYPE=Release -DTARGET_RPATH="/usr/local/lib"
245+
cd ..
246+
cmake --build build --parallel 2 --config Release
247+
cd build
248+
sudo make install DESTDIR=../dist
249+
cd ../../..
250+
- name: create archive file
251+
run: |
252+
cd cfd-sys/cfd-cmake
253+
cd dist
254+
zip -r cfd.zip usr
255+
echo "---- dump zip file ----"
256+
ls -l
257+
- name: output url
258+
id: get_url
259+
run: echo "::set-output name=upload_url::${{ needs.create_releases.outputs.release_url }}"
260+
- name: Upload Release Asset Ubuntu
261+
uses: actions/[email protected]
262+
env:
263+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
264+
with:
265+
upload_url: ${{ steps.get_url.outputs.upload_url }}
266+
asset_path: ./cfd-sys/cfd-cmake/dist/cfd.zip
267+
asset_name: cfd-sys-${{ steps.get_version.outputs.VERSION }}-ubuntu${{ matrix.os_ver }}04-${{ matrix.bin }}-x86_64.zip
268+
asset_name: cfd-${{ steps.get_version.outputs.VERSION }}-osx-xcode${{ matrix.xcode }}${{ matrix.suffix }}-x86_64.zip
269+
asset_content_type: application/zip

.travis.yml

Lines changed: 0 additions & 82 deletions
This file was deleted.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cfd-rust"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
license = "MIT"
55
readme = "README.md"
66
keywords = ["build-dependencies"]

cfd-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cfd_sys"
3-
version = "0.2.3"
3+
version = "0.2.5"
44
license = "MIT"
55
readme = "../README.md"
66
keywords = ["build-dependencies"]

cfd-sys/cfd-cmake/external/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if(CFD_TARGET_VERSION)
4343
set(CFD_TARGET_TAG ${CFD_TARGET_VERSION})
4444
message(STATUS "[external project local] cfd target=${CFD_TARGET_VERSION}")
4545
else()
46-
set(CFD_TARGET_TAG v0.2.0)
46+
set(CFD_TARGET_TAG v0.2.2)
4747
endif()
4848
if(CFD_TARGET_URL)
4949
set(CFD_TARGET_REP ${CFD_TARGET_URL})
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
CFDRUST_VERSION=0.2.3
2-
CFD_TARGET_VERSION=refs/tags/v0.2.7
3-
CFDCORE_TARGET_VERSION=refs/tags/v0.2.6
4-
LIBWALLY_TARGET_VERSION=refs/tags/cfd-0.2.3
1+
CFDRUST_VERSION=0.2.5
2+
CFD_TARGET_VERSION=refs/tags/v0.2.12
3+
CFDCORE_TARGET_VERSION=refs/tags/v0.2.8
4+
LIBWALLY_TARGET_VERSION=refs/tags/cfd-0.2.4
55
CFD_TARGET_URL=cryptogarageinc/cfd.git
66
CFDCORE_TARGET_URL=cryptogarageinc/cfd-core.git

cfd-sys/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use self::libc::{c_char, c_double, c_int, c_longlong, c_uint, c_void};
1010
pub const BLIND_OPT_MINIMUM_RANGE_VALUE: c_int = 1;
1111
pub const BLIND_OPT_EXPONENT: c_int = 2;
1212
pub const BLIND_OPT_MINIMUM_BITS: c_int = 3;
13+
pub const BLIND_OPT_COLLECT_BLINDER: c_int = 4;
1314

1415
pub const WITNESS_STACK_TYPE_NORMAL: c_int = 0;
1516
pub const WITNESS_STACK_TYPE_PEGIN: c_int = 1;
@@ -1045,6 +1046,12 @@ fns! {
10451046
pub fn CfdFinalizeBlindTx(
10461047
handle: *const c_void, blind_handle: *const c_void, tx_hex_string: *const c_char,
10471048
tx_string: *mut *mut c_char) -> c_int;
1049+
pub fn CfdGetBlindTxBlindData(
1050+
handle: *const c_void, blind_handle: *const c_void, index: c_uint,
1051+
vout: *mut c_uint, asset: *mut *mut c_char, value_satoshi: *mut c_longlong,
1052+
asset_blind_factor: *mut *mut c_char, value_blind_factor: *mut *mut c_char,
1053+
issuance_txid: *mut *mut c_char, issuance_vout: *mut c_uint,
1054+
is_issuance_asset: *mut bool, is_issuance_token: *mut bool) -> c_int;
10481055
pub fn CfdFreeBlindHandle(handle: *const c_void, blind_handle: *const c_void) -> c_int;
10491056
pub fn CfdFinalizeElementsMultisigSign(
10501057
handle: *const c_void, multi_sign_handle: *const c_void, tx_hex_string: *const c_char, txid: *const c_char, vout: c_uint, hash_type: c_int, witness_script: *const c_char, redeem_script: *const c_char, clear_stack: bool, tx_string: *mut *mut c_char) -> c_int;

0 commit comments

Comments
 (0)