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

Add an input to select the host target #32

Closed
Closed
Show file tree
Hide file tree
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
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,24 @@ jobs:
- run: ls $HOME/.cargo/bin/ldproxy | grep ldproxy
- run: cargo +esp --version | grep 1.64.0
- run: rustup default | grep stable

check-host-targets:
name: Check `host_target` (${{ matrix.os.target_triple }})
strategy:
fail-fast: false
matrix:
os:
- runner: window-latest
target_triple: x86_64-pc-windows-msvc
- runner: macos-latest
target_triple: x86_64-apple-darwin
runs-on: ${{ matrix.os.runner }}
steps:
- run: rustup update stable && rustup default stable
- uses: actions/checkout@v3
- uses: ./
name: Install Xtensa Rust
with:
host_target: ${{ matrix.os.target_triple }}
- run: rustc +esp --print target-list | grep xtensa

9 changes: 6 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ inputs:
buildtargets:
description: Comma separated list of targets
default: all
host_target:
description: Host machine target triple
default: x86_64-unknown-linux-gnu
version:
description: Which version of the toolchain to install
default: latest
Expand All @@ -37,14 +40,14 @@ runs:
if: inputs.ldproxy == 'true'
shell: bash
run: |
curl -LO https://github.com/esp-rs/embuild/releases/latest/download/ldproxy-x86_64-unknown-linux-gnu.zip
unzip -o ldproxy-x86_64-unknown-linux-gnu.zip -d "$HOME/.cargo/bin"
curl -LO https://github.com/esp-rs/embuild/releases/latest/download/ldproxy-${{ inputs.host_target }}.zip
unzip -o ldproxy-${{ inputs.host_target }}.zip -d "$HOME/.cargo/bin"
chmod a+x "$HOME/.cargo/bin/ldproxy"

- name: Install espup
shell: bash
run: |
curl -L https://github.com/esp-rs/espup/releases/latest/download/espup-x86_64-unknown-linux-gnu -o "$HOME/.cargo/bin/espup"
curl -L https://github.com/esp-rs/espup/releases/latest/download/espup-${{ inputs.host_target }} -o "$HOME/.cargo/bin/espup"
chmod a+x "$HOME/.cargo/bin/espup"

- name: Install Xtensa toolchain
Expand Down
Loading