Skip to content

Commit cba0703

Browse files
committed
ci: fix target issue
1 parent d05a151 commit cba0703

2 files changed

Lines changed: 4 additions & 13 deletions

File tree

.github/actions/project-setup/action.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ inputs:
66
description: "Rust toolchain to install"
77
required: false
88
default: "stable"
9-
extra_targets:
10-
description: "Additional Rust targets to install (comma-separated)"
9+
target:
10+
description: "Additional Rust target to install"
1111
required: false
1212
default: ""
1313

@@ -18,16 +18,7 @@ runs:
1818
- uses: actions-rust-lang/setup-rust-toolchain@v1
1919
with:
2020
toolchain: ${{ inputs.toolchain }}
21-
22-
- name: Install additional Rust targets
23-
if: inputs.extra_targets != ''
24-
shell: bash
25-
run: |
26-
IFS=',' read -ra TARGETS <<< "${{ inputs.extra_targets }}"
27-
for t in "${TARGETS[@]}"; do
28-
echo "Installing Rust target: $t"
29-
rustup target add "$t"
30-
done
21+
target: ${{ inputs.target }}
3122

3223
# Python
3324
- uses: actions/setup-python@v5

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- name: Project setup
6565
uses: ./.github/actions/project-setup
6666
with:
67-
extra_targets: ${{ matrix.target }}
67+
target: ${{ matrix.target }}
6868

6969
- name: Build Encoderfile CLI
7070
run: cargo build --bin encoderfile --target ${{ matrix.target }}

0 commit comments

Comments
 (0)