Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 39 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ jobs:
steps:
- uses: actions/checkout@v7
- run: |
rustup toolchain install 1.85 --profile minimal
rustup target add --toolchain 1.85 aarch64-linux-android aarch64-apple-ios aarch64-apple-darwin x86_64-pc-windows-msvc
rustup toolchain install 1.88 --profile minimal
rustup target add --toolchain 1.88 aarch64-linux-android aarch64-apple-ios aarch64-apple-darwin x86_64-pc-windows-msvc
# Every feature but `dioxus`, which needs the Rust version Dioxus 0.7 apps already need. A
# check needs no linker, so the Windows target runs here too.
- run: cargo +1.85 check --workspace --features stream,serde
- run: cargo +1.85 check --workspace --features stream,serde --target aarch64-linux-android
- run: cargo +1.85 check --workspace --features stream,serde --target aarch64-apple-ios
- run: cargo +1.85 check --workspace --features stream,serde --target aarch64-apple-darwin
- run: cargo +1.85 check --workspace --features stream,serde --target x86_64-pc-windows-msvc
- run: cargo +1.88 check --workspace --features stream,serde
- run: cargo +1.88 check --workspace --features stream,serde,encryption --target aarch64-linux-android
- run: cargo +1.88 check --workspace --features stream,serde,encryption --target aarch64-apple-ios
- run: cargo +1.88 check --workspace --features stream,serde,encryption --target aarch64-apple-darwin
- run: cargo +1.88 check --workspace --features stream,serde,encryption --target x86_64-pc-windows-msvc

tauri-plugin:
name: tauri-plugin-pushups
Expand Down Expand Up @@ -529,6 +529,38 @@ jobs:
- run: |
rustup toolchain install stable --profile minimal
rustup target add --toolchain stable aarch64-apple-ios-sim aarch64-apple-ios
# The harness's keychain cases need the Developer ID identity and the profile for
# rs.pushups.ci.harness, which neither a fork's pull request nor a Dependabot run can read.
- name: Install the harness's signing identity
if: >-
github.event_name == 'push' ||
(github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login != 'dependabot[bot]')
env:
P12: ${{ secrets.MACOS_HARNESS_P12 }}
P12_PASSWORD: ${{ secrets.MACOS_HARNESS_P12_PASSWORD }}
PROFILE: ${{ secrets.MACOS_HARNESS_PROFILE }}
run: |
keychain="$RUNNER_TEMP/harness.keychain-db"
password="$(openssl rand -hex 16)"
security create-keychain -p "$password" "$keychain"
security set-keychain-settings -lut 3600 "$keychain"
security unlock-keychain -p "$password" "$keychain"
printf '%s' "$P12" | base64 --decode > "$RUNNER_TEMP/harness.p12"
security import "$RUNNER_TEMP/harness.p12" -k "$keychain" -P "$P12_PASSWORD" -T /usr/bin/codesign
rm "$RUNNER_TEMP/harness.p12"
security set-key-partition-list -S apple-tool:,apple: -s -k "$password" "$keychain" > /dev/null
# codesign finds an identity only in a keychain on the user's search list.
security list-keychains -d user -s "$keychain" $(security list-keychains -d user | tr -d '"')
printf '%s' "$PROFILE" | base64 --decode > "$RUNNER_TEMP/harness.provisionprofile"
identity="$(security find-identity -v -p codesigning "$keychain" | awk '/Developer ID Application/ { print $2; exit }')"
test -n "$identity"
{
echo "PUSHUPS_HARNESS_IDENTITY=$identity"
echo "PUSHUPS_HARNESS_KEYCHAIN=$keychain"
echo "PUSHUPS_HARNESS_PROFILE=$RUNNER_TEMP/harness.provisionprofile"
echo "PUSHUPS_HARNESS_TEAM=7W8527FJJE"
} >> "$GITHUB_ENV"
- name: Exercise the native service and link the simulator extension
run: bash ci/apple/run.sh

Expand Down
164 changes: 163 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading