Skip to content
Prev Previous commit
Next Next commit
install targets
  • Loading branch information
alamb committed Aug 7, 2025
commit 5b94123b08a288edcefc2f63cd8ba2eaf00879ba
10 changes: 1 addition & 9 deletions .github/actions/setup-builder/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@

name: Prepare Rust Builder
description: 'Prepare Rust Build Environment'
inputs:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed these parameters as almost all uses installed stable

target:
description: 'target architecture(s)'
required: false
default: 'x86_64-unknown-linux-gnu'
runs:
using: "composite"
steps:
Expand All @@ -41,10 +36,7 @@ runs:
restore-keys: cargo-cache3-
- name: Setup Rust toolchain
shell: bash
run: |
echo "Installing ${{ inputs.rust-version }}"
rustup install --target ${{ inputs.target }}
rustup default
run: rustup install
- name: Generate lockfile
shell: bash
run: cargo fetch
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/arrow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ jobs:
submodules: true
- name: Setup Rust toolchain
uses: ./.github/actions/setup-builder
with:
target: wasm32-unknown-unknown,wasm32-wasip1
- name: Install wasm32 targets
run: |
rustup target add wasm32-unknown-unknown
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds 4 seconds to the job:

Screenshot 2025-08-07 at 11 19 10 AM

rustup target add wasm32-wasip1
- name: Build wasm32-unknown-unknown
run: cargo build -p arrow --no-default-features --features=json,csv,ipc,ffi --target wasm32-unknown-unknown
- name: Build wasm32-wasip1
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/parquet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ jobs:
submodules: true
- name: Setup Rust toolchain
uses: ./.github/actions/setup-builder
with:
target: wasm32-unknown-unknown,wasm32-wasip1
- name: Install wasm32 targets
run: |
rustup target add wasm32-unknown-unknown
rustup target add wasm32-wasip1
- name: Install clang # Needed for zlib compilation
run: apt-get update && apt-get install -y clang gcc-multilib
- name: Build wasm32-unknown-unknown
Expand Down
Loading