Skip to content

Commit

Permalink
github actions msbuild - Load environment for C compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Sep 3, 2023
1 parent 37ee215 commit e9e0ee4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
run: |
Invoke-WebRequest -Method Get -Uri https://go.microsoft.com/fwlink/p/?LinkId=323507 -OutFile sdksetup.exe -UseBasicParsing
Start-Process -Wait sdksetup.exe -ArgumentList "/q", "/norestart", "/features", "OptionId.WindowsDesktopSoftwareDevelopmentKit", "OptionId.NetFxSoftwareDevelopmentKit"
- uses: actions/checkout@v3

- name: Add MSBuild to PATH
Expand Down Expand Up @@ -72,7 +73,7 @@ jobs:
#rustver: ["1.29", "1.39", "1.19", "1.54"]
# Note: Only run 1.54, to save on time
rustver: ["1.54"]
runs-on: windows-latest
runs-on: windows-2019 # need compiler for C codegen, might as well use the same
env:
RUSTC_VERSION: ${{ matrix.rustver }}.0
MRUSTC_TARGET_VER: ${{ matrix.rustver }}
Expand All @@ -85,6 +86,9 @@ jobs:
with:
name: binaries
path: vsproject/x64/${{env.BUILD_CONFIGURATION}}
- uses: TheMrMilchmann/setup-msvc-dev@v2
with:
arch: x64
- name: Download rust source
shell: powershell
run: |
Expand Down

0 comments on commit e9e0ee4

Please sign in to comment.