Skip to content

Commit

Permalink
try using the setup rust action
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski committed Apr 17, 2024
1 parent 949426b commit d5d3193
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/turborepo-library-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ jobs:
install: |
apk update && apk upgrade
apk add libc6-compat curl
echo /root/.cargo/bin >> ${GITHUB_PATH}
echo /usr/local/cargo/bin/rustup >> ${GITHUB_PATH}
export PATH=/usr/local/cargo/bin/rustup:/root/.cargo/bin:${PATH}
setup: |
rustup show active-toolchain
dirname $(rustup which cargo) >> ${GITHUB_PATH}
pnpm install
- host: ubuntu-latest
Expand All @@ -61,15 +56,11 @@ jobs:
install: |
apk update && apk upgrade
apk add libc6-compat curl
echo /root/.cargo/bin >> ${GITHUB_PATH}
echo /usr/local/cargo/bin/rustup >> ${GITHUB_PATH}
echo /aarch64-linux-musl-cross/bin >> ${GITHUB_PATH}
export PATH=/aarch64-linux-musl-cross/bin:/usr/local/cargo/bin/rustup:/root/.cargo/bin:${PATH}
export PATH=/aarch64-linux-musl-cross/bin:${PATH}
setup: |
export PATH=/aarch64-linux-musl-cross/bin:/usr/local/cargo/bin/rustup:/root/.cargo/bin:${PATH}
rustup show active-toolchain
export PATH=/aarch64-linux-musl-cross/bin:${PATH}
rustup target add aarch64-unknown-linux-musl
dirname $(rustup which cargo) >> ${GITHUB_PATH}
pnpm install
rust_env: CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc RUSTFLAGS="-Ctarget-feature=-crt-static"

Expand Down Expand Up @@ -97,7 +88,6 @@ jobs:
with:
targets: ${{ matrix.settings.target }}
github-token: ${{ github.token }}
if: ${{ !matrix.settings.install }}

- name: Setup Node
uses: ./.github/actions/setup-node
Expand Down

0 comments on commit d5d3193

Please sign in to comment.