From 3e9d604e8aeb60d33a70c724a47d2da8b81a3817 Mon Sep 17 00:00:00 2001 From: marek-karwacki-rdx <118768577+marek-karwacki-rdx@users.noreply.github.com> Date: Mon, 19 Feb 2024 14:09:29 +0100 Subject: [PATCH] ci: multi target build (#6) --- .github/workflows/release.yml | 36 +++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af54d60ca..c77c58eb3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 \ No newline at end of file + rustup target add x86_64-apple-ios aarch64-apple-ios aarch64-apple-ios-sim + sh ./scripts/ios/release.sh