Skip to content

Commit

Permalink
Again
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHayton committed Jul 30, 2024
1 parent 371052f commit 2a25a8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ jobs:
uses: actions/checkout@v2
- name: Set MSVC target (windows only)
if: matrix.os == 'windows-latest'
run: |
echo "[build]" > .cargo/config
echo "target = "x86_64-pc-windows-msvc" >> .cargo/config
run: bash ./scripts/set-windows-msvc.sh
- name: Build example
working-directory: examples/${{ matrix.example }}
run: cargo build
Expand Down
8 changes: 8 additions & 0 deletions scripts/set-windows-msvc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# Create a .cargo directory if it does not exist
mkdir -p .cargo

# Create a config file with the target set to x86_64-pc-windows-msvc
echo "[build]" > .cargo/config
echo "target = "x86_64-pc-windows-msvc" >> .cargo/config

0 comments on commit 2a25a8e

Please sign in to comment.