Skip to content
Merged
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
12 changes: 9 additions & 3 deletions .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,22 @@ jobs:

- name: Install Rust toolchain
shell: bash
env:
RUST_TOOLCHAIN: 1.90.0
run: |
rustup set profile minimal
rustup toolchain install 1.89.0 --profile minimal --target ${{ matrix.target }}
rustup default 1.89.0
rustup toolchain install "$RUST_TOOLCHAIN" --profile minimal
rustup default "$RUST_TOOLCHAIN"
rustup target add "${{ matrix.target }}"
if [[ "${{ matrix.target }}" == *"unknown-linux-musl"* ]]; then
rustup target add x86_64-unknown-linux-musl aarch64-unknown-linux-musl
fi

- name: Rust cache (target + registries)
uses: Swatinem/rust-cache@v2
with:
prefix-key: v1-preview
shared-key: preview-${{ matrix.target }}-rust-1.89
shared-key: preview-${{ matrix.target }}-rust-1.90
workspaces: |
code-rs -> target
codex-rs -> target
Expand Down
Loading