chore(deps): bump rustix from 0.36.5 to 0.36.16 in /rust (#2135) #5765
This file contains 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: E2E Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- stable | |
jobs: | |
check: | |
name: Check on MacOS | |
runs-on: macos-13 | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # 0.12.0 | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout sources | |
uses: actions/checkout@v4.1.1 | |
with: | |
fetch-depth: 50 | |
submodules: 'recursive' | |
- name: Setup - Xcode | |
run: sudo xcode-select -switch '/Applications/Xcode_15.0.app/Contents/Developer' && /usr/bin/xcodebuild -version | |
- name: Install dependencies | |
run: | | |
brew install swiftgen | |
brew install swiftformat | |
brew install xcbeautify | |
- name: Get cached Swift Packages managed by Xcode | |
uses: actions/cache@v3 | |
with: | |
path: ~/Library/Developer/Xcode/DerivedData/**/SourcePackages/ | |
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | |
restore-keys: | | |
${{ runner.os }}-spm- | |
- name: Install Rust targets | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: x86_64-apple-ios,aarch64-apple-ios | |
components: rust-std | |
- name: Install uniffi_bindgen | |
uses: actions-rs/install@v0.1 | |
with: | |
crate: uniffi_bindgen | |
version: 0.22.0 # Must be in sync with version in Cargo.toml | |
use-tool-cache: true | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0 | |
with: | |
workspaces: rust -> rust/target | |
- name: Build iOS and run tests | |
shell: bash | |
run: | | |
cd ios | |
xcodebuild \ | |
-project PolkadotVault.xcodeproj \ | |
-scheme PolkadotVault \ | |
-sdk iphonesimulator \ | |
-destination 'platform=iOS Simulator,name=iPhone 14' \ | |
test \ | |
| xcbeautify |