-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
3,822 additions
and
3,839 deletions.
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 |
---|---|---|
@@ -1,28 +1,43 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- '*' | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ci-${{ github.ref }} | ||
cancel-in-progress: true | ||
group: ci-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
library: | ||
runs-on: macos-12 | ||
strategy: | ||
matrix: | ||
xcode: ['13.4.1', '14.0.1'] | ||
config: ['debug', 'release'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Select Xcode ${{ matrix.xcode }} | ||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app | ||
- name: Run ${{ matrix.config }} tests | ||
run: CONFIG=${{ matrix.config }} make test-library | ||
linting: | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: "Run Lint" | ||
run: | | ||
brew update | ||
brew upgrade swiftformat | ||
swiftformat . --lint | ||
unittest: | ||
runs-on: macos-12 | ||
needs: | ||
- linting | ||
strategy: | ||
matrix: | ||
xcode: ['14.1'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: "Select Xcode ${{ matrix.xcode }}" | ||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app | ||
- name: "Clean and init submodules" | ||
run: make init | ||
- name: "Run test in debug" | ||
run: make testdebug | ||
- name: "Run test in production" | ||
run: make testprod |
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 @@ | ||
--swiftversion 5.6 | ||
|
||
# format options | ||
--allman false # Prefer `K&R` https://en.wikipedia.org/wiki/Indentation_style#K&R_style | ||
--indent tab | ||
--tabwidth 4 | ||
|
||
--stripunusedargs closure-only | ||
--enable marktypes | ||
--disable redundantNilInit,redundantSelf,extensionAccessControl | ||
--lineaftermarks false | ||
--ifdef no-indent | ||
--header strip | ||
|
||
# file options | ||
--exclude .build,Sources/secp256k1,Sources/K1/Support/ThirdyParty |
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
Oops, something went wrong.