Skip to content

Commit

Permalink
- added (uncool) workaround for "could not find /tmp" issue on Windows;
Browse files Browse the repository at this point in the history
  • Loading branch information
jaltmayerpizzorno committed Jan 11, 2024
1 parent ffa1d0b commit dc43a7d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,15 @@ jobs:
if: matrix.os == 'macos-latest'
run: sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*

- name: Work around missing /tmp on Windows #"bash.exe: warning: could not find /tmp, please create!"
if: matrix.os == 'windows-latest'
run: |
(get-command sh.exe).Path
sh.exe -c "mkdir /tmp"
- name: Build source dist
if: matrix.upload_source
run: make sdist

- name: Build binary dist
run: make bdist
# Invoking with "bash -c" works around the "bash.exe: ... could not find /tmp" issue on Windows.
# The issue is somehow related to git providing a sh.exe (the "git shell")
# See eg https://help.appveyor.com/discussions/problems/1531-having-issues-with-configured-git-bash
run: bash -c "make bdist"

- name: Check that all required platforms are included
if: matrix.os == 'macos-latest'
Expand Down

0 comments on commit dc43a7d

Please sign in to comment.