diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 4f8a519e..2c85f58f 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -168,6 +168,11 @@ jobs: with: packages: tools platform-tools ndk;${{ env.NDK_VERSION }} - run: rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi i686-linux-android aarch64-apple-ios-sim + # macOS runners ship a newer CMake than the project supports; pin it to match the version used elsewhere in CI + - name: Install compatible CMake version + uses: jwlawson/actions-setup-cmake@v2 + with: + cmake-version: ${{ env.CMAKE_VERSION }} - run: npm ci - run: npm run bootstrap env: @@ -340,6 +345,11 @@ jobs: distribution: "temurin" - run: rustup target add x86_64-apple-darwin x86_64-apple-ios aarch64-apple-ios aarch64-apple-ios-sim - run: rustup toolchain install nightly --component rust-src + # macOS runners ship a newer CMake than the project supports; pin it to match the version used elsewhere in CI + - name: Install compatible CMake version + uses: jwlawson/actions-setup-cmake@v2 + with: + cmake-version: ${{ env.CMAKE_VERSION }} - run: npm ci - run: npm run build - name: Build weak-node-api for all Apple architectures