Skip to content

Update build-windows.yml #10

Update build-windows.yml

Update build-windows.yml #10

Workflow file for this run

name: build check windows
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-windows:
runs-on: windows-latest
steps:
# Step 1: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Step 2: Move to the parent directory and fetch dependencies
- name: Fetch dependencies
run: |
cd ..
git clone https://github.com/razterizer/Core.git
git clone https://github.com/razterizer/Termin8or.git
git clone https://github.com/razterizer/AudioLibSwitcher_OpenAL.git --recurse-submodules
# Step 3: Create 3rdparty directories
- name: Create 3rdparty directories
run: |
New-Item -ItemType Directory -Force -Path $env:GITHUB_WORKSPACE\..\3rdparty\include\OpenAL_Soft
New-Item -ItemType Directory -Force -Path $env:GITHUB_WORKSPACE\..\3rdparty\lib
# Step 4: Download OpenAL Soft
- name: Download OpenAL Soft
run: curl -L https://www.openal-soft.org/openal-binaries/openal-soft-1.23.1-bin.zip -o openal-soft.zip
# Step 5: Unzip OpenAL Soft
- name: Unzip OpenAL Soft
run: |
Expand-Archive -Path openal-soft.zip -DestinationPath openal-soft
# Step 6: Copy OpenAL Soft files
- name: Copy OpenAL Soft files
run: |
Copy-Item -Path openal-soft\include\AL\* -Destination $env:GITHUB_WORKSPACE\..\3rdparty\include\OpenAL_Soft\ -Force
Copy-Item -Path openal-soft\bin\Win64\OpenAL32.dll -Destination $env:GITHUB_WORKSPACE\..\3rdparty\lib\ -Force
Copy-Item -Path openal-soft\lib\Win64\OpenAL32.lib -Destination $env:GITHUB_WORKSPACE\..\3rdparty\lib\ -Force
# Step 7: Fix step for libsndfile (if needed)
# Step 8: Change to the correct directory and build
- name: Run build.bat
continue-on-error: false # Ensure errors are not bypassed
run: |
cd demos
.\build_demo_1.bat