I changed the workflow to use:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.86.0 # Specify your desired Rust version
targets: ${{ matrix.job.target }}
instead of
- name: Add target
shell: bash
run: |
rustup target add ${{ matrix.job.target }}
Now it uses rust 1.86 and that works!
Thanks for the assist!