fix: more clippy warnings #760
Workflow file for this run
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: React Native CI | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| paths: | |
| - 'packages/contracts/**' | |
| - 'packages/sdk-platforms/rust/**' | |
| - 'packages/sdk-platforms/react-native/react-native-zksync-sso/**' | |
| - '.github/workflows/ci-reactnative.yml' | |
| pull_request: | |
| paths: | |
| - 'packages/contracts/**' | |
| - 'packages/sdk-platforms/rust/**' | |
| - 'packages/sdk-platforms/react-native/react-native-zksync-sso/**' | |
| - '.github/workflows/ci-reactnative.yml' | |
| jobs: | |
| reactnative-sdk: | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.11.0 | |
| - name: Install dependencies | |
| run: pnpm install -r --frozen-lockfile | |
| - name: Install contract dependencies | |
| run: pnpm install -r --frozen-lockfile | |
| working-directory: packages/contracts | |
| - name: Build contracts | |
| run: pnpm build | |
| working-directory: packages/contracts | |
| - name: Install build tools | |
| run: | | |
| brew uninstall cmake | |
| brew install cmake ninja clang-format | |
| - name: Set up Yarn 3.6.1 and plugins | |
| working-directory: packages/sdk-platforms/react-native/react-native-zksync-sso | |
| run: | | |
| # Clean any existing Yarn state that could interfere with the install | |
| rm -rf .yarn/cache .yarn/install-state.gz .pnp.* .yarn/unplugged .yarn/build-state.yml || true | |
| # Remove Yarn path & plugin paths from .yarnrc.yml (they break CI) | |
| echo "Modifying .yarnrc.yml..." | |
| sed -i '' '/yarnPath:/d' .yarnrc.yml | |
| sed -i '' '/- path: .yarn\/plugins/d' .yarnrc.yml | |
| echo "Modified .yarnrc.yml:" && cat .yarnrc.yml | |
| # Enable Corepack and activate the desired Yarn version | |
| corepack enable | |
| corepack prepare yarn@3.6.1 --activate | |
| # Make sure the Yarn binary is executable (sometimes acls strip exec bit) | |
| chmod +x ~/.cache/node/corepack/v1/yarn/3.6.1/yarn.js | |
| # Show the Yarn version we just installed | |
| echo "Yarn version:" && ~/.cache/node/corepack/v1/yarn/3.6.1/yarn.js --version | |
| # Add helpful plugins that our repo relies on | |
| echo "Importing plugin interactive-tools..." | |
| ~/.cache/node/corepack/v1/yarn/3.6.1/yarn.js plugin import @yarnpkg/plugin-interactive-tools | |
| echo "Importing plugin workspace-tools..." | |
| ~/.cache/node/corepack/v1/yarn/3.6.1/yarn.js plugin import @yarnpkg/plugin-workspace-tools | |
| # Explicitly force the classic node-modules linker & disable PnP to avoid issues | |
| ~/.cache/node/corepack/v1/yarn/3.6.1/yarn.js config set nodeLinker node-modules | |
| ~/.cache/node/corepack/v1/yarn/3.6.1/yarn.js config set enableGlobalCache false | |
| # Install dependencies strictly as locked in yarn.lock | |
| ~/.cache/node/corepack/v1/yarn/3.6.1/yarn.js install --immutable | |
| - name: Install Rust toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| profile: minimal | |
| override: true | |
| - name: Add Android and iOS Rust targets | |
| run: | | |
| rustup target add \ | |
| aarch64-linux-android \ | |
| armv7-linux-androideabi \ | |
| aarch64-apple-ios \ | |
| aarch64-apple-ios-sim \ | |
| x86_64-apple-ios | |
| - name: Install cargo-ndk | |
| run: cargo install cargo-ndk --version 3.5.4 | |
| - name: Select Xcode 16.3 | |
| run: sudo xcode-select -s /Applications/Xcode_16.3.app | |
| - name: Setup Android SDK | |
| uses: android-actions/setup-android@v3 | |
| with: | |
| cmdline-tools-version: 12266719 | |
| log-accepted-android-sdk-licenses: false | |
| - name: Install Android NDK | |
| run: | | |
| $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "ndk;29.0.13113456" | |
| - name: Set Android environment variables | |
| run: | | |
| echo "ANDROID_HOME=$ANDROID_HOME" >> $GITHUB_ENV | |
| echo "ANDROID_SDK_ROOT=$ANDROID_HOME" >> $GITHUB_ENV | |
| echo "ANDROID_NDK_HOME=$ANDROID_HOME/ndk/29.0.13113456" >> $GITHUB_ENV | |
| echo "ANDROID_API_LEVEL=36" >> $GITHUB_ENV | |
| - name: Build native code (ubrn:build) | |
| working-directory: packages/sdk-platforms/react-native/react-native-zksync-sso | |
| run: ~/.cache/node/corepack/v1/yarn/3.6.1/yarn.js ubrn:build | |
| - name: Generate bindings (ubrn:generate) | |
| working-directory: packages/sdk-platforms/react-native/react-native-zksync-sso | |
| run: ~/.cache/node/corepack/v1/yarn/3.6.1/yarn.js ubrn:generate | |
| - name: Build TypeScript (yarn prepare) | |
| working-directory: packages/sdk-platforms/react-native/react-native-zksync-sso | |
| run: ~/.cache/node/corepack/v1/yarn/3.6.1/yarn.js prepare | |
| - name: Type checking | |
| working-directory: packages/sdk-platforms/react-native/react-native-zksync-sso | |
| run: ~/.cache/node/corepack/v1/yarn/3.6.1/yarn.js typecheck | |
| - name: Run tests | |
| working-directory: packages/sdk-platforms/react-native/react-native-zksync-sso | |
| run: ~/.cache/node/corepack/v1/yarn/3.6.1/yarn.js test | |