moonrepo / setup-rust

A maintained GitHub action for setting up Rust and Cargo.
84 stars 6 forks source link

error: link.exe not found #11

Closed Pleezon closed 7 months ago

Pleezon commented 11 months ago

image

Hey, this might just be me not knowing what I'm doing, but I've tried a fair bit of things and none of them seemed to help. workflow:

      - uses: moonrepo/setup-rust@v1
        with:
          profile: complete
          targets: 'x86_64-pc-windows-msvc,x86_64-pc-windows-gnu'
      - name: Build exe/
        run: cargo build --release --all-features --manifest-path exe/Cargo.toml --target=x86_64-pc-windows-msvc
milesj commented 11 months ago

@Pleezon This is definitely weird. Is this using github actions and not a custom runner?

Pleezon commented 11 months ago

Using gitHub Actions. I have a suspicion that it doesnt work because of the custom manifest path.

milesj commented 11 months ago

This seems relevant: https://stackoverflow.com/questions/55603111/unable-to-compile-rust-hello-world-on-windows-linker-link-exe-not-found

Might be the inclusion of the gnu target?