From 7cc84693b09d7db51ef6f998bb01944ed31a6da6 Mon Sep 17 00:00:00 2001 From: B-E-A-F Date: Thu, 18 Dec 2025 10:27:09 -0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=94=A7=20Update=20ci=20to=20build=20f?= =?UTF-8?q?ull=20project?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/rust.yml | 82 +++++++++++++++++++++++++++++++++++++- 1 file changed, 80 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d4df49c..c25e1eb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: Test Package +name: Build & Test Package on: workflow_dispatch: @@ -7,7 +7,7 @@ on: - master jobs: - build: + build-rust: runs-on: ubuntu-latest steps: @@ -18,3 +18,81 @@ jobs: - name: Run tests run: cargo test --verbose + + build-wasm: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Setup wasm + run: | + curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + wasm-pack --version + + - name: Build + run: sh build.sh + working-directory: wrappers/wasm + + build-wasm-web: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Setup wasm + run: | + curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + wasm-pack --version + + - name: Build + run: bash build-web.sh + working-directory: wrappers/wasm + + build-android: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Set up JDK 1.8 + uses: actions/setup-java@v4 + with: + java-version: 8 + distribution: adopt + + - name: Setup Android + run: | + wget https://dl.google.com/android/repository/android-ndk-r23b-linux.zip + unzip android-ndk-r23b-linux.zip + export ANDROID_NDK_HOME=$GITHUB_WORKSPACE/android-ndk-r23b + echo "ANDROID_NDK_HOME=$ANDROID_NDK_HOME" >> $GITHUB_ENV + echo "$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin" >> $GITHUB_PATH + echo "$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/x86_64-linux-android" >> $GITHUB_ENV::LIBRARY_PATH + echo "$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/x86_64-linux-android" >> $GITHUB_ENV::LD_LIBRARY_PATH + rustup target add aarch64-linux-android + rustup target add x86_64-linux-android + rustup target add x86_64-unknown-linux-gnu + + - name: Build + run: sh wrappers/android/build.sh + + build-swift: + runs-on: macos-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Setup rust + run: | + rustup target add aarch64-apple-ios + rustup target add x86_64-apple-darwin + rustup target add aarch64-apple-ios-sim + rustup target add aarch64-apple-darwin + + - name: Generate package + run: sh wrappers/swift/build.sh \ No newline at end of file From 1b61e92aeb69b8f8d29c525949145e7825a522d4 Mon Sep 17 00:00:00 2001 From: B-E-A-F Date: Thu, 18 Dec 2025 10:31:47 -0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20Fix=20native.rs=20using=20wr?= =?UTF-8?q?ong=20algorithm=20search?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/webauthn/authenticator/native.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webauthn/authenticator/native.rs b/src/webauthn/authenticator/native.rs index f27d0f0..64e118f 100644 --- a/src/webauthn/authenticator/native.rs +++ b/src/webauthn/authenticator/native.rs @@ -82,7 +82,7 @@ mod ios { let credential_id: Vec = std::slice::from_raw_parts(credential_id, credential_id_length).into(); let algorithms_raw: Vec = std::slice::from_raw_parts(cose_algorithm_identifiers, cose_algorithm_identifiers_length).into(); - let alg = WebauthnAuthenticator::find_best_supported_algorithm( + let alg = WebauthnAuthenticator::find_first_supported_algorithm( algorithms_raw .into_iter() .map(CoseAlgorithmIdentifier::from)