Skip to content

Commit 02ce80c

Browse files
authored
Update build-windows.yml
Hopefully fixes copying of OpenAL-Soft stuff.
1 parent 73066c8 commit 02ce80c

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/build-windows.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
# Step 3: Create 3rdparty directories
2929
- name: Create 3rdparty directories
3030
run: |
31-
mkdir -p ${{ github.workspace }}/../../3rdparty/include/OpenAL_Soft
32-
mkdir -p ${{ github.workspace }}/../../3rdparty/lib
33-
31+
New-Item -ItemType Directory -Force -Path $env:GITHUB_WORKSPACE\..\3rdparty\include\OpenAL_Soft
32+
New-Item -ItemType Directory -Force -Path $env:GITHUB_WORKSPACE\..\3rdparty\lib
33+
3434
# Step 4: Download OpenAL Soft
3535
- name: Download OpenAL Soft
3636
run: curl -L https://www.openal-soft.org/openal-binaries/openal-soft-1.23.1-bin.zip -o openal-soft.zip
@@ -39,3 +39,19 @@ jobs:
3939
- name: Unzip OpenAL Soft
4040
run: |
4141
Expand-Archive -Path openal-soft.zip -DestinationPath openal-soft
42+
43+
# Step 6: Copy OpenAL Soft files
44+
- name: Copy OpenAL Soft files
45+
run: |
46+
Copy-Item -Path openal-soft\include\AL\* -Destination $env:GITHUB_WORKSPACE\..\3rdparty\include\OpenAL_Soft\ -Force
47+
Copy-Item -Path openal-soft\bin\Win64\OpenAL32.dll -Destination $env:GITHUB_WORKSPACE\..\3rdparty\lib\ -Force
48+
Copy-Item -Path openal-soft\lib\Win64\OpenAL32.lib -Destination $env:GITHUB_WORKSPACE\..\3rdparty\lib\ -Force
49+
50+
# Step 7: Fix step for libsndfile (if needed)
51+
52+
# Step 8: Change to the correct directory and build
53+
- name: Run build.bat
54+
continue-on-error: false # Ensure errors are not bypassed
55+
run: |
56+
cd demos
57+
.\build_demo_1.bat

0 commit comments

Comments
 (0)