build: configure windows correctly

This commit is contained in:
Samuel Attard
2024-09-27 07:30:04 -07:00
parent cd5eb75260
commit 5c40f3595f
2 changed files with 6 additions and 3 deletions

View File

@@ -6,8 +6,7 @@ runs:
- name: Install Build Tools
shell: bash
run: |
echo "$(expr substr $(uname -s) 1 10)"
if [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
if [ "$(expr substr $(uname -s) 1 10)" == "MSYS_NT-10" ]; then
git config --global core.filemode false
git config --global core.autocrlf false
git config --global branch.autosetuprebase always

View File

@@ -84,7 +84,11 @@ jobs:
TARGET_ARCH: ${{ inputs.target-arch }}
steps:
- name: Create src dir
run: mkdir src
run: |
mkdir src
if [ "$(expr substr $(uname -s) 1 10)" == "MSYS_NT-10" ]; then
mkdir -p "C:\Users\ContainerAdministrator\AppData\Roaming\npm"
fi
- name: Checkout Electron
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with: