Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
oligamiq committed Nov 22, 2023
1 parent 239fa7b commit cfc71dd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test_iphone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
with:
profile: minimal
toolchain: stable
target: x86_64-apple-ios
target: aarch64-apple-ios-sim
override: true
# - name: install target
# run: rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim
Expand All @@ -34,24 +34,24 @@ jobs:
with:
profile: minimal
toolchain: stable
target: x86_64-apple-ios
target: aarch64-apple-ios-sim
override: true
- run: rustup target add x86_64-apple-ios
- run: rustup target add aarch64-apple-ios-sim
- uses: cargo-bins/cargo-binstall@main
- name: install rust iphone
run: cargo binstall -q --no-confirm --force cargo-bundle
- name: copy target dir
run: cp -r ./examples/iphone /tmp/
- name: build
run: cargo bundle --format ios --target x86_64-apple-ios
run: cargo bundle --format ios --target aarch64-apple-ios-sim
working-directory: /tmp/iphone/
- name: start simulator
uses: futureware-tech/simulator-action@v3
with:
model: "iPhone 8"
- name: drive
run: |
xcrun simctl install booted target/x86_64-apple-ios/debug/bundle/ios/nickname-ios-test-app.app
xcrun simctl install booted target/aarch64-apple-ios-sim/debug/bundle/ios/nickname-ios-test-app.app
xcrun simctl launch --console booted com.oligami.nickname-ios-test
working-directory: /tmp/iphone/
# https://github.com/simlay/uikit-sys/blob/master/.github/workflows/rust.yml
11 changes: 11 additions & 0 deletions rm_workflow.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
owner="nziq53"
repo="nickname"
file_name="test_iphone.yml"

gh api "repos/${owner}/${repo}/actions/workflows/${file_name}/runs?per_page=100" \
| jq -r '.workflow_runs[].id' \
| xargs -P4 -I{} gh api repos/{owner}/{repo}/actions/runs/{} -X DELETE

# https://qiita.com/tippy/items/79ca3f7b7bcac1d92136

# bash rm_workflow.sh

0 comments on commit cfc71dd

Please sign in to comment.