Skip to content

Commit f06376c

Browse files
authored
Merge pull request #203 from ArkEcosystem/release/v1.0.0
release: 1.0.0
2 parents 9424ce1 + 95b72bd commit f06376c

File tree

231 files changed

+13745
-7307
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+13745
-7307
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ charset = utf-8
66
end_of_line = lf
77
insert_final_newline = true
88
indent_style = space
9-
indent_size = 2
9+
indent_size = 4
1010
trim_trailing_whitespace = true

.github/workflows/codeclimate.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CodeClimate Coverage
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
- 'develop'
8+
9+
jobs:
10+
codeclimate:
11+
runs-on: macOS-latest
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Set compiler to clang++
16+
run: COMPILER=clang++
17+
- name: Install Dependencies
18+
run: brew install cmake lcov
19+
- name: Make scripts executable
20+
run: sudo chmod +x ./.github/workflows/test/clang_tidy.sh
21+
- name: Setup Code Climate test-reporter
22+
run: |
23+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64 > ./cc-test-reporter
24+
chmod +x ./cc-test-reporter
25+
- name: Build & Run Coverage Tests
26+
run: |
27+
./cc-test-reporter before-build
28+
cmake -DCMAKE_BUILD_TYPE=Coverage -DUNIT_TEST=ON .
29+
cmake --build .
30+
./test/ark_cpp_crypto_tests
31+
lcov --directory . --include "*/src/*" --include "*/test/*" --exclude "*/src/lib/*" --exclude "*/extern/*" --capture --output-file coverage.info --ignore-errors gcov
32+
./cc-test-reporter format-coverage --input-type lcov coverage.info
33+
./cc-test-reporter upload-coverage
34+
env:
35+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

.github/workflows/coverage.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,6 @@ on:
99
types: [ready_for_review, synchronize, opened]
1010

1111
jobs:
12-
codeclimate:
13-
runs-on: macOS-latest
14-
15-
steps:
16-
- uses: actions/checkout@v1
17-
- name: Set compiler to clang++
18-
run: COMPILER=clang++
19-
- name: Install Dependencies
20-
run: brew install cmake lcov
21-
- name: Make scripts executable
22-
run: sudo chmod +x ./.github/workflows/test/clang_tidy.sh
23-
- name: Setup Code Climate test-reporter
24-
run: |
25-
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64 > ./cc-test-reporter
26-
chmod +x ./cc-test-reporter
27-
- name: Build & Run Coverage Tests
28-
run: |
29-
./cc-test-reporter before-build
30-
cmake -DCMAKE_BUILD_TYPE=Coverage -DUNIT_TEST=ON .
31-
cmake --build .
32-
./test/ark_cpp_crypto_tests
33-
lcov --directory . --include "*/src/*" --include "*/test/*" --exclude "*/src/lib/*" --exclude "*/extern/*" --capture --output-file coverage.info --ignore-errors gcov
34-
./cc-test-reporter format-coverage --input-type lcov coverage.info
35-
./cc-test-reporter upload-coverage
36-
env:
37-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
38-
3912
codecov:
4013
runs-on: ubuntu-latest
4114

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,5 @@ jobs:
115115
shell: cmd
116116
run: msbuild "%GITHUB_WORKSPACE%\ark_cpp_crypto.sln"
117117
- name: Run Tests
118-
run: call "%GITHUB_WORKSPACE%\test\Debug\ark_cpp_crypto_tests"
118+
shell: cmd
119+
run: "%GITHUB_WORKSPACE%\\test\\Debug\\ark_cpp_crypto_tests.exe"

.github/workflows/test/clang_format.sh

100644100755
File mode changed.

.github/workflows/test/clang_tidy.sh

100644100755
File mode changed.

.github/workflows/test/install_arduino.sh

100644100755
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ sudo ln -s /usr/local/share/arduino-cli /usr/local/bin/arduino-cli
1414

1515
printf "board_manager:
1616
additional_urls:
17-
- https://dl.espressif.com/dl/package_esp32_index.json" >> .cli-config.yml
17+
- https://dl.espressif.com/dl/package_esp32_index.json
18+
- http://arduino.esp8266.com/stable/package_esp8266com_index.json" >> .cli-config.yml
1819
sudo mv .cli-config.yml /usr/local/share/
1920

2021
arduino-cli core update-index
2122
arduino-cli core install esp32:esp32
23+
arduino-cli core install esp8266:esp8266

.github/workflows/test/install_platform_io.sh

100644100755
File mode changed.

.github/workflows/test/script_arduino.sh

100644100755
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ mkdir -p ~/Arduino/libraries/cpp-crypto/
66
mv ${GITHUB_WORKSPACE}/* ~/Arduino/libraries/cpp-crypto/
77

88
arduino-cli lib install "[email protected]"
9-
arduino-cli lib install "[email protected]"
9+
arduino-cli lib install "[email protected]"
10+
arduino-cli lib install "[email protected]"
1011
arduino-cli lib install "[email protected]"
1112

1213
arduino-cli compile --output temp.bin -b esp32:esp32:esp32 ~/Arduino/libraries/cpp-crypto/examples/arduino/ESP32/ESP32.ino --debug
14+
15+
arduino-cli compile --output temp.bin -b esp8266:esp8266:nodemcu ~/Arduino/libraries/cpp-crypto/examples/arduino/ESP8266/ESP8266.ino --debug

.github/workflows/test/script_desktop.sh

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env bash
2+
13
# run desktop builds
24
cmake . -DCMAKE_BUILD_TYPE=Coverage
35
cmake --build .

0 commit comments

Comments
 (0)