README.md: #135
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build windows | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-program: | |
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 .. | |
mkdir lib | |
cd lib | |
pwd | |
dir | |
git clone https://github.com/razterizer/Core.git | |
git clone https://github.com/razterizer/Termin8or.git | |
git clone https://github.com/razterizer/8Beat.git | |
git clone https://github.com/razterizer/AudioLibSwitcher_OpenAL.git --recurse-submodules | |
git clone https://github.com/razterizer/TrainOfThought.git | |
git clone https://github.com/razterizer/3rdparty_OpenAL.git | |
# Step 3: Create 3rdparty directories in D:\a\DungGine | |
- name: Create 3rdparty directories | |
if: false | |
run: | | |
New-Item -ItemType Directory -Force -Path $env:GITHUB_WORKSPACE\..\lib\3rdparty\include\OpenAL_Soft | |
New-Item -ItemType Directory -Force -Path $env:GITHUB_WORKSPACE\..\lib\3rdparty\lib | |
# Step 4: Download OpenAL Soft to D:\a\DungGine | |
- name: Download OpenAL Soft | |
if: false | |
run: curl -L https://www.openal-soft.org/openal-binaries/openal-soft-1.23.1-bin.zip -o $env:GITHUB_WORKSPACE\..\openal-soft.zip | |
# Step 5: Unzip OpenAL Soft to D:\a\DungGine | |
- name: Unzip OpenAL Soft | |
if: false | |
run: | | |
Expand-Archive -Path $env:GITHUB_WORKSPACE\..\openal-soft.zip -DestinationPath $env:GITHUB_WORKSPACE\.. | |
# Step 6: List contents of source directories to verify files | |
- name: List contents of OpenAL Soft directories | |
if: false | |
run: | | |
Get-ChildItem -Recurse $env:GITHUB_WORKSPACE\..\openal-soft-1.23.1-bin\include | |
Get-ChildItem -Recurse $env:GITHUB_WORKSPACE\..\openal-soft-1.23.1-bin\libs | |
# Step 6: Copy OpenAL Soft files to 3rdparty directories | |
- name: Copy OpenAL Soft files | |
if: false | |
run: | | |
# Copy OpenAL Soft headers | |
Copy-Item -Path $env:GITHUB_WORKSPACE\..\openal-soft-1.23.1-bin\include\AL\* -Destination $env:GITHUB_WORKSPACE\..\lib\3rdparty\include\OpenAL_Soft\ -Force | |
# Copy OpenAL32.lib (assuming it's in the libs folder) | |
Copy-Item -Path $env:GITHUB_WORKSPACE\..\openal-soft-1.23.1-bin\libs\Win64\OpenAL32.lib -Destination $env:GITHUB_WORKSPACE\..\lib\3rdparty\lib\ -Force | |
# Step 6b: List contents of 3rdparty includes. | |
- name: List 3rdparty/include files | |
if: false | |
# run: ls $env:GITHUB_WORKSPACE\..\3rpdarty\include\OpenAL_Soft | |
run: | | |
ls $env:GITHUB_WORKSPACE | |
ls $env:GITHUB_WORKSPACE/.. | |
ls $env:GITHUB_WORKSPACE/../lib/3rdparty/include | |
ls $env:GITHUB_WORKSPACE/../lib/3rdparty/include/OpenAL_Soft | |
ls $env:GITHUB_WORKSPACE/../lib/3rdparty/lib | |
# # Step 3: Install OpenAL | |
# - name: Install OpenAL | |
# run: sudo apt install libopenal-dev | |
# Step 3: Change to the correct directory and build | |
- name: Run build.bat | |
continue-on-error: false # Ensure errors are not bypassed | |
run: | | |
cd $env:GITHUB_WORKSPACE\Pilot_Episode | |
./build.bat | |
build-program-with-locked-dependencies: | |
if: false | |
runs-on: windows-latest | |
steps: | |
# Step 1: Checkout the repository | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
# Step 2: Move to the parent directory and fetch dependencies | |
- name: Fetch dependencies | |
run: | | |
cd .. | |
python ./Pilot_Episode/fetch-dependencies.py Pilot_Episode/dependencies -y | |
# Step 3: Change to the correct directory and build | |
- name: Run build.bat | |
continue-on-error: false # Ensure errors are not bypassed | |
run: | | |
pwd | |
cd $env:GITHUB_WORKSPACE\Pilot_Episode | |
./build.bat |