fix: copy symmetric key on export to prevent JSI ArrayBuffer GC corru… #684
This file contains hidden or 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
| name: 'Validate C++' | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/validate-cpp.yml' | |
| - 'packages/react-native-quick-crypto/android/src/main/cpp/**' | |
| - 'packages/react-native-quick-crypto/cpp/**' | |
| - 'packages/react-native-quick-crypto/nitrogen/generated/shared/**' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/validate-cpp.yml' | |
| - 'packages/react-native-quick-crypto/android/src/main/cpp/**' | |
| - 'packages/react-native-quick-crypto/cpp/**' | |
| - 'packages/react-native-quick-crypto/nitrogen/generated/shared/**' | |
| jobs: | |
| validate_cpp: | |
| name: C++ Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up clang-format | |
| run: sudo apt-get install -y clang-format | |
| - name: Run clang-format check | |
| run: | | |
| find packages/react-native-quick-crypto/cpp packages/react-native-quick-crypto/android/src/main/cpp \ | |
| -regex '.*\.\(cpp\|hpp\|cc\|cxx\|h\)' \ | |
| -exec clang-format --style=file --dry-run --Werror {} + | |
| - uses: reviewdog/action-cpplint@master | |
| with: | |
| github_token: ${{ secrets.github_token }} | |
| reporter: github-pr-review | |
| flags: --linelength=140 | |
| targets: --recursive packages/react-native-quick-crypto/cpp packages/react-native-quick-crypto/android/src/main/cpp | |
| filter: "-legal/copyright\ | |
| ,-readability/todo\ | |
| ,-build/namespaces\ | |
| ,-whitespace/comments\ | |
| ,-build/include_order\ | |
| ,-whitespace/indent_namespace\ | |
| ,-whitespace/parens\ | |
| ,-build/include_what_you_use\ | |
| " |