Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: multi target build #6

Merged
merged 18 commits into from
Feb 19, 2024
Merged
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
36 changes: 28 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,42 @@ on:

permissions:
id-token: write
contents: read
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: macos-13-xlarge
env:
RUST_TOOLCHAIN: nightly-2024-01-11
RUST_COMPONENTS: "rust-std"
steps:
- uses: RDXWorks-actions/checkout@main
- name: Install Rust Toolchain

- name: Install Rust Toolchain for x86_64-apple-ios
uses: RDXWorks-actions/toolchain@master
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: ${{ env.RUST_COMPONENTS }}
target: x86_64-apple-ios

- name: Install Rust Toolchain for aarch64-apple-ios
uses: RDXWorks-actions/toolchain@master
with:
toolchain: nightly-2024-01-11
default: true
target: x86_64-apple-ios aarch64-apple-ios aarch64-apple-ios-sim
components: rust-std

toolchain: ${{ env.RUST_TOOLCHAIN }}
components: ${{ env.RUST_COMPONENTS }}
target: aarch64-apple-ios

- name: Install Rust Toolchain for aarch64-apple-ios-sim
uses: RDXWorks-actions/toolchain@master
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: ${{ env.RUST_COMPONENTS }}
target: aarch64-apple-ios-sim

- name: Run iOS build script
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sh ./scripts/ios/release.sh
rustup target add x86_64-apple-ios aarch64-apple-ios aarch64-apple-ios-sim
sh ./scripts/ios/release.sh
Loading