Skip to content

Commit 31f4432

Browse files
try fix windows
1 parent dd2365a commit 31f4432

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -590,11 +590,13 @@ jobs:
590590
- name: Download SDL3
591591
run: curl -L -o SDL3.zip https://github.com/libsdl-org/SDL/releases/download/prerelease-3.3.4/SDL3-devel-3.3.4-VC.zip
592592

593-
- name: Create extraction directory
594-
run: mkdir ${{ runner.temp }}\SDL3
595-
596-
- name: Unzip SDL3
597-
run: tar -xf SDL3.zip -C ${{ runner.temp }}\SDL3 --strip-components=1
593+
- name: Unpack SDL3
594+
shell: bash
595+
run: |
596+
mkdir -p "${{ runner.temp }}/SDL3"
597+
mkdir -p "${{ runner.temp }}/ziptmp"
598+
unzip SDL3.zip -d "${{ runner.temp }}/ziptmp"
599+
mv "${{ runner.temp }}/ziptmp"/*/* SDL3
598600
599601
- name: Set SDL3_DIR environment variable
600602
run: echo SDL3_DIR=${{ runner.temp }}\SDL3\cmake >> $env:GITHUB_ENV
@@ -682,11 +684,13 @@ jobs:
682684
- name: Download SDL3
683685
run: curl -L -o SDL3.zip https://github.com/libsdl-org/SDL/releases/download/prerelease-3.3.4/SDL3-devel-3.3.4-VC.zip
684686

685-
- name: Create extraction directory
686-
run: mkdir ${{ runner.temp }}\SDL3
687-
688-
- name: Unzip SDL3
689-
run: tar -xf SDL3.zip -C ${{ runner.temp }}\SDL3 --strip-components=1
687+
- name: Unpack SDL3
688+
shell: bash
689+
run: |
690+
mkdir -p "${{ runner.temp }}/SDL3"
691+
mkdir -p "${{ runner.temp }}/ziptmp"
692+
unzip SDL3.zip -d "${{ runner.temp }}/ziptmp"
693+
mv "${{ runner.temp }}/ziptmp"/*/* SDL3
690694
691695
- name: Set SDL3_DIR environment variable
692696
run: echo SDL3_DIR=${{ runner.temp }}\SDL3\cmake >> $env:GITHUB_ENV

0 commit comments

Comments
 (0)