Skip to content

Commit

Permalink
GitHub Actions (Windows): Fix link issue
Browse files Browse the repository at this point in the history
The build is running a different link.exe than the MSVC linker,
possibly the one provided by bash.

Fix by deleting /usr/bin/link.exe

See: https://yncat.github.io/2022/02/18/github-actions%E3%81%A7-msvc-%E3%81%AE-link-%E3%81%8C%E4%BD%BF%E3%81%88%E3%81%AA%E3%81%8F%E3%81%AA%E3%82%8B%E8%A9%B1.html
  • Loading branch information
micahsnyder committed Sep 25, 2023
1 parent c5a6f5c commit fc78f21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
runs-on: windows-2019

steps:
- name: Die, link!!!!!
run: rm /usr/bin/link.exe
shell: bash

- uses: actions/checkout@v1

- name: Install Build Tools
Expand Down

0 comments on commit fc78f21

Please sign in to comment.