forked from onflow/ledger-app-flow
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from vacuumlabs/merging-with-onflow-latest-dev…
…elopment-branch (B2CA-1709) Large flow app update
- Loading branch information
Showing
9,978 changed files
with
63,335 additions
and
3,807 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Javascript tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
- develop | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js 16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- run: cd js && yarn install && yarn build && yarn test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule ledger-zxlib
deleted from
ca7780
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
[*.{c,h,cpp,hpp}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.{yml,sh}] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: "Main workflow" | ||
on: push | ||
|
||
jobs: | ||
configure: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
uid_gid: ${{ steps.get-user.outputs.uid_gid }} | ||
steps: | ||
- id: get-user | ||
run: echo "uid_gid=$(id -u):$(id -g)" >> $GITHUB_OUTPUT | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- run: cmake -DCMAKE_BUILD_TYPE=Debug . && make | ||
|
||
check_version: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.get-version.outputs.version }} | ||
exists: ${{ steps.get-version.outputs.exists }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
- id: get-version | ||
name: Get zxlib version | ||
run: echo "version=$(./scripts/get_version.sh)" >> $GITHUB_OUTPUT | ||
- id: tag-exists | ||
name: Check if version exists | ||
run: | | ||
if git rev-parse ${{ steps.get-version.outputs.version }} >/dev/null 2>&1; then | ||
echo "exists=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "exists=false" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Fail if tag exists | ||
if: ${{ steps.tag-exists.outputs.exists == 'true' }} | ||
run: exit 1 | ||
|
||
tag: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build | ||
- check_version | ||
if: ${{ needs.check_version.outputs.exists != 'true' && github.ref == 'refs/heads/main' }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ needs.check_version.outputs.version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
\.idea/ | ||
\.vscode/ | ||
cmake-build-debug/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#******************************************************************************* | ||
#* (c) 2018 Zondax GmbH | ||
#* | ||
#* Licensed under the Apache License, Version 2.0 (the "License"); | ||
#* you may not use this file except in compliance with the License. | ||
#* You may obtain a copy of the License at | ||
#* | ||
#* http://www.apache.org/licenses/LICENSE-2.0 | ||
#* | ||
#* Unless required by applicable law or agreed to in writing, software | ||
#* distributed under the License is distributed on an "AS IS" BASIS, | ||
#* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
#* See the License for the specific language governing permissions and | ||
#* limitations under the License. | ||
#******************************************************************************** | ||
cmake_minimum_required(VERSION 3.0) | ||
project(ledger-zxlib) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
|
||
add_subdirectory(cmake/gtest) | ||
|
||
include_directories( | ||
${CMAKE_CURRENT_SOURCE_DIR}/include | ||
) | ||
|
||
############### | ||
|
||
file(GLOB_RECURSE ZXLIB_SRC | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/*.c | ||
) | ||
|
||
file(GLOB_RECURSE TESTS_SRC | ||
${CMAKE_CURRENT_SOURCE_DIR}/tests/*.cpp | ||
) | ||
|
||
############### | ||
set(BUILD_TESTS OFF CACHE BOOL "Enables tests") | ||
|
||
add_library(zxlib STATIC ${ZXLIB_SRC}) | ||
target_include_directories(zxlib PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include) | ||
|
||
enable_testing() | ||
|
||
add_executable(zxlib_tests | ||
${TESTS_SRC} | ||
) | ||
|
||
target_include_directories(zxlib_tests PRIVATE | ||
${CMAKE_CURRENT_SOURCE_DIR}/include | ||
${gtest_SOURCE_DIR}/include | ||
${gmock_SOURCE_DIR}/include | ||
) | ||
|
||
target_link_libraries(zxlib_tests gtest_main zxlib) | ||
|
||
add_test(ZXLIB_TESTS zxlib_tests) |
Oops, something went wrong.