Skip to content

Commit

Permalink
Fix darwin builds (#24)
Browse files Browse the repository at this point in the history
* Update wownero_libwallet2_api_c.exp
  • Loading branch information
MrCyjaneK authored Jul 30, 2024
1 parent 4b4e434 commit 0737e1a
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 6 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/checksum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,31 @@ jobs:
else
exit 1
fi
- uses: actions/github-script@v7
continue-on-error: true
id: get_issue_number
with:
script: |
if (context.issue.number) {
// Return issue number if present
return context.issue.number;
} else {
// Otherwise return issue number from commit
return (
await github.rest.repos.listPullRequestsAssociatedWithCommit({
commit_sha: context.sha,
owner: context.repo.owner,
repo: context.repo.repo,
})
).data[0].number;
}
result-encoding: string
- name: Create or update comment
continue-on-error: true
if: failure()
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
issue-number: ${{steps.get_issue_number.outputs.result}}
body: |
Invalid checksums, please run `./generate_checksum.sh`
21 changes: 20 additions & 1 deletion .github/workflows/dart_bindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,31 @@ jobs:
else
exit 1
fi
- uses: actions/github-script@v7
continue-on-error: true
id: get_issue_number
with:
script: |
if (context.issue.number) {
// Return issue number if present
return context.issue.number;
} else {
// Otherwise return issue number from commit
return (
await github.rest.repos.listPullRequestsAssociatedWithCommit({
commit_sha: context.sha,
owner: context.repo.owner,
repo: context.repo.repo,
})
).data[0].number;
}
result-encoding: string
- name: Create or update comment
continue-on-error: true
if: failure()
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
issue-number: ${{steps.get_issue_number.outputs.result}}
body: |
Invalid bindings found in monero.dart, make sure to run `./impls/monero.dart/update_bindings.sh`
2 changes: 1 addition & 1 deletion impls/monero.dart/lib/src/checksum_wownero.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ignore_for_file: constant_identifier_names
const String wallet2_api_c_h_sha256 = "8a8d386dd5d996c89a0586c55b295ef95ca584bf1ffa26255152b291910a0a77";
const String wallet2_api_c_cpp_sha256 = "ed400bd9c4709383ffd42a9fbe68be37a2a47a42f92eacaf3a2dbd248c422739";
const String wallet2_api_c_exp_sha256 = "dd9874cc43a6a74bbfa3e49c4ad3f835ff22efd3de8f679cc91c4af3d931aedb";
const String wallet2_api_c_exp_sha256 = "3673e40e1a7115552276d1d541f6e4d5a0fef47c40fff7b988f49923af84c8a4";
2 changes: 1 addition & 1 deletion wownero_libwallet2_api_c/src/main/cpp/wownero_checksum.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
#define MONEROC_CHECKSUMS
const char * WOWNERO_wallet2_api_c_h_sha256 = "8a8d386dd5d996c89a0586c55b295ef95ca584bf1ffa26255152b291910a0a77";
const char * WOWNERO_wallet2_api_c_cpp_sha256 = "ed400bd9c4709383ffd42a9fbe68be37a2a47a42f92eacaf3a2dbd248c422739";
const char * WOWNERO_wallet2_api_c_exp_sha256 = "dd9874cc43a6a74bbfa3e49c4ad3f835ff22efd3de8f679cc91c4af3d931aedb";
const char * WOWNERO_wallet2_api_c_exp_sha256 = "3673e40e1a7115552276d1d541f6e4d5a0fef47c40fff7b988f49923af84c8a4";
#endif
2 changes: 0 additions & 2 deletions wownero_libwallet2_api_c/wownero_libwallet2_api_c.exp
Original file line number Diff line number Diff line change
Expand Up @@ -285,5 +285,3 @@ _WOWNERO_free
_WOWNERO_checksum_wallet2_api_c_h
_WOWNERO_checksum_wallet2_api_c_cpp
_WOWNERO_checksum_wallet2_api_c_exp
_WOWNERO_checksum_wallet2_api_c_version
_WOWNERO_checksum_wallet2_api_c_date

0 comments on commit 0737e1a

Please sign in to comment.