Skip to content

Update build-all.yaml #146

Update build-all.yaml

Update build-all.yaml #146

Workflow file for this run

name: Build-all
on:
push:
branches:
- '*'
tags-ignore:
- '*.*.*'
paths-ignore:
- '.github/workflows/Tagged.yaml'
# schedule:
# - cron: '0 0 * * *'
workflow_dispatch:
env:
Configuration: "Release"
DSOALRepo: "${{github.repository}}"
DSOALBranch: "master"
DSOALCommitStart: "afe57915ed2ed09d37cd2c5952ce34d827e90ab2" #r556 r412=2f8b6b8fada76e57ab9479d618acd287305327d4 r1=98584ab11d231d36488bc055bdeb19b607706bc6 r380=173674c1dc63d61e3e000604dc5519b8c81e9d7c r397=b7c076e57648bb5da32ee7191501ee1beb48f2ed r399=360dcfc99aa039728181c8d403abcc28dd4706f2 r444=52224b17832fda41d02153cf8f56d27cd94bf79a
OpenALSoftRepo: "kcat/openal-soft"
OpenALSoftBranch: "master"
GH_TOKEN: "${{secrets.TOKEN}}" #Releases require a Personal Access Token with read+write permissions for Contents and Workflows passed to the workflow as a secret variable https://github.com/cli/cli/issues/9514
jobs:
setup:
runs-on: ubuntu-latest
steps:
- id: matrix
run: |
git clone --branch ${{env.DSOALBranch}} https://github.com/${{env.DSOALRepo}}.git .
git reset --hard ${{env.DSOALCommitStart}}
git log --max-count=256 --format="%h %d"
echo "DSOALCommitHash=[\"$(git log --max-count=256 --format="%h %d" | grep -v 'tag' | awk '{print $1}' | sed ':a;N;$!ba;s/\n/\", \"/g')\"]" >> $GITHUB_OUTPUT
outputs:
matrix: ${{steps.matrix.outputs.DSOALCommitHash}}
Build:
needs: setup
name: ${{matrix.DSOALCommitHash}}
runs-on: windows-2022
strategy:
max-parallel: 1
fail-fast: false
matrix:
DSOALCommitHash: ${{fromJSON(needs.setup.outputs.matrix)}}
steps:
- name: Get job info
id: JobID
uses: daleyjem/gh-job-id@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
job_name: "${{matrix.DSOALCommitHash}}"
- name: Clone DSOAL
run: |
git clone --branch ${{env.DSOALBranch}} https://github.com/${{env.DSOALRepo}}.git .
git reset --hard ${{matrix.DSOALCommitHash}}
echo "DSOALCommitHash=$(git rev-parse HEAD)" >> $env:GITHUB_ENV
echo "DSOALCommitHashShort=$(git rev-parse --short=8 HEAD)" >> $env:GITHUB_ENV
echo "DSOALCommitTitle=$(git show --pretty=format:%s -s HEAD)" >> $env:GITHUB_ENV #escape everything 's/./\\&/g' WIP: | tr -d \'\\\\'\' \'\\\\'\'
echo "DSOALCommitDateTimeZone=$(git show -s --date=iso-local --format=%cd)" >> $env:GITHUB_ENV
echo "DSOALCommitDate=$(git show -s --date=iso-local --date=format:'%Y-%m-%d' --format=%cd)" >> $env:GITHUB_ENV
echo "DSOALCommitCount=$(git rev-list --count HEAD)" >> $env:GITHUB_ENV
echo "DateTimeZone=$(date +"%Y-%m-%d %H:%M:%S %z")" >> $env:GITHUB_ENV
- name: Clone OpenAL Soft
run: |
git clone --branch ${{env.OpenALSoftBranch}} https://github.com/${{env.OpenALSoftRepo}}.git
cd "openal-soft"
git reset --hard $(git rev-list --before="${{env.DSOALCommitDateTimeZone}}" HEAD --max-count=1)
echo "OpenALSoftCommitHash=$(git rev-parse HEAD)" >> $env:GITHUB_ENV
echo "OpenALSoftCommitHashShort=$(git rev-parse --short=8 HEAD)" >> $env:GITHUB_ENV
echo "OpenALSoftCommitTitle=$(git show --pretty=format:%s -s HEAD)" >> $env:GITHUB_ENV #escape everything 's/./\\&/g' WIP: | tr -d \'\\\\'\' \'\\\\'\'
echo "OpenALSoftCommitDateTimeZone=$(git show -s --date=iso-local --format=%cd)" >> $env:GITHUB_ENV
echo "OpenALSoftCommitDate=$(git show -s --date=iso-local --date=format:'%Y-%m-%d' --format=%cd)" >> $env:GITHUB_ENV
echo "OpenALSoftCommitCount=$(git rev-list --count HEAD)" >> $env:GITHUB_ENV
- name: Build fix patch
run: |
if (${{env.DSOALCommitCount}} -lt 397) {curl https://github.com/ThreeDeeJay/dsoal/commit/b7c076e57648bb5da32ee7191501ee1beb48f2ed.patch | git apply -v --index}
if (${{env.DSOALCommitCount}} -lt 398) {curl https://github.com/ThreeDeeJay/dsoal/commit/0f8f05b4877e95b92fc2ba93c0204ee70ce26ad0.patch | git apply -v --index}
if (${{env.DSOALCommitCount}} -lt 399) {curl https://github.com/ThreeDeeJay/dsoal/commit/360dcfc99aa039728181c8d403abcc28dd4706f2.patch | git apply -v --index}
if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/ThreeDeeJay/dsoal/commit/fef1dc750f97a175dc053b02bf25b4a2677fba08.patch | git apply -v --index}
if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/ThreeDeeJay/dsoal/commit/9749d085ea33325dda8a44ee0dd72c552a558ef1.patch | git apply -v --index}
if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/ThreeDeeJay/dsoal/commit/2f8b6b8fada76e57ab9479d618acd287305327d4.patch | git apply -v --index}
if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/ThreeDeeJay/dsoal/commit/79b8fd96e96708516b6f964548e98cb1913e64f4.patch | git apply -v --index}
if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/ThreeDeeJay/dsoal/commit/307fd857ea42101b124ecb7d899ffc32bf79c083.patch | git apply -v --index}
if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/ThreeDeeJay/dsoal/commit/b0bea6ed3fa7335c8b71f8b8bbcbe29308820d8d.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/1a412b93c158819af04a8fc556d37f34317820f1.patch | git apply -v --index} #397
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/adf57e5dbe1c17009c451e34f8a997856f541049.patch | git apply -v --index} #397
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/09a2903b02cf929ee9a84b5c79aff667e4537c2b.patch | git apply -v --index} #397
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/8248f297b1ad19eacddd9de15363f69188c4ede3.patch | git apply -v --index} #397
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/bdf5299ab46264805049a4884a9afb5797057a41.patch | git apply -v --index} #397
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/b7c076e57648bb5da32ee7191501ee1beb48f2ed.patch | git apply -v --index} #397
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/0f8f05b4877e95b92fc2ba93c0204ee70ce26ad0.patch | git apply -v --index} #398
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/360dcfc99aa039728181c8d403abcc28dd4706f2.patch | git apply -v --index} #399
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/fef1dc750f97a175dc053b02bf25b4a2677fba08.patch | git apply -v --index} #412
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/9749d085ea33325dda8a44ee0dd72c552a558ef1.patch | git apply -v --index} #412
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/2f8b6b8fada76e57ab9479d618acd287305327d4.patch | git apply -v --index} #412
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/79b8fd96e96708516b6f964548e98cb1913e64f4.patch | git apply -v --index} #412
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/307fd857ea42101b124ecb7d899ffc32bf79c083.patch | git apply -v --index} #412
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/b0bea6ed3fa7335c8b71f8b8bbcbe29308820d8d.patch | git apply -v --index} #412
# if (${{env.DSOALCommitCount}} -lt 397) {curl https://github.com/${{env.DSOALRepo}}/commit/1a412b93c158819af04a8fc556d37f34317820f1.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 397) {curl https://github.com/${{env.DSOALRepo}}/commit/adf57e5dbe1c17009c451e34f8a997856f541049.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 397) {curl https://github.com/${{env.DSOALRepo}}/commit/09a2903b02cf929ee9a84b5c79aff667e4537c2b.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 397) {curl https://github.com/${{env.DSOALRepo}}/commit/8248f297b1ad19eacddd9de15363f69188c4ede3.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 397) {curl https://github.com/${{env.DSOALRepo}}/commit/bdf5299ab46264805049a4884a9afb5797057a41.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 397) {curl https://github.com/${{env.DSOALRepo}}/commit/b7c076e57648bb5da32ee7191501ee1beb48f2ed.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 398) {curl https://github.com/${{env.DSOALRepo}}/commit/0f8f05b4877e95b92fc2ba93c0204ee70ce26ad0.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 399) {curl https://github.com/${{env.DSOALRepo}}/commit/360dcfc99aa039728181c8d403abcc28dd4706f2.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/fef1dc750f97a175dc053b02bf25b4a2677fba08.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/9749d085ea33325dda8a44ee0dd72c552a558ef1.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/2f8b6b8fada76e57ab9479d618acd287305327d4.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/79b8fd96e96708516b6f964548e98cb1913e64f4.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/307fd857ea42101b124ecb7d899ffc32bf79c083.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/b0bea6ed3fa7335c8b71f8b8bbcbe29308820d8d.patch | git apply -v --index}
# curl https://raw.githubusercontent.com/ThreeDeeJay/dsoal/build-all/msvc.def -o msvc.def
# curl https://raw.githubusercontent.com/ThreeDeeJay/dsoal/build-all/msvc64.def -o msvc64.def
# if (Test-Path "readme.txt") {ren readme.txt README.md}
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/173674c1dc63d61e3e000604dc5519b8c81e9d7c.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/bf3383f473af5a84cd9165e75f800c9ad08b0be2.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/1a412b93c158819af04a8fc556d37f34317820f1.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/adf57e5dbe1c17009c451e34f8a997856f541049.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/09a2903b02cf929ee9a84b5c79aff667e4537c2b.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/8248f297b1ad19eacddd9de15363f69188c4ede3.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/bdf5299ab46264805049a4884a9afb5797057a41.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/b7c076e57648bb5da32ee7191501ee1beb48f2ed.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/0f8f05b4877e95b92fc2ba93c0204ee70ce26ad0.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/360dcfc99aa039728181c8d403abcc28dd4706f2.patch | git apply -v --index} #r4 -------
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/9749d085ea33325dda8a44ee0dd72c552a558ef1.patch | git apply -v --index} #r409
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/1364a27ce0fdc8679b10e1ce2a5db404c25ff40e.patch | git apply -v --index} #r410
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/da5e4861eb7cc1d3a2703520a202b95ce52e577d.patch | git apply -v --index} #r411
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/2f8b6b8fada76e57ab9479d618acd287305327d4.patch | git apply -v --index} #r412
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/79b8fd96e96708516b6f964548e98cb1913e64f4.patch | git apply -v --index} #r413
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/307fd857ea42101b124ecb7d899ffc32bf79c083.patch | git apply -v --index} #r414
# curl -O -J https://raw.githubusercontent.com/${{env.DSOALRepo}}/${{env.DSOALBranch}}/CMakeLists.txt
# curl -O -J https://raw.githubusercontent.com/${{env.DSOALRepo}}/${{env.DSOALBranch}}/msvc.def
# curl -O -J https://raw.githubusercontent.com/${{env.DSOALRepo}}/${{env.DSOALBranch}}/msvc64.def
# curl -O -J https://raw.githubusercontent.com/${{env.DSOALRepo}}/${{env.DSOALBranch}}/mingw.def
# curl -O -J https://raw.githubusercontent.com/${{env.DSOALRepo}}/${{env.DSOALBranch}}/voiceman.c
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/173674c1dc63d61e3e000604dc5519b8c81e9d7c.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/bf3383f473af5a84cd9165e75f800c9ad08b0be2.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/1a412b93c158819af04a8fc556d37f34317820f1.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/adf57e5dbe1c17009c451e34f8a997856f541049.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/adf57e5dbe1c17009c451e34f8a997856f541049.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/09a2903b02cf929ee9a84b5c79aff667e4537c2b.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/8248f297b1ad19eacddd9de15363f69188c4ede3.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/bdf5299ab46264805049a4884a9afb5797057a41.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/b7c076e57648bb5da32ee7191501ee1beb48f2ed.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/0f8f05b4877e95b92fc2ba93c0204ee70ce26ad0.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/360dcfc99aa039728181c8d403abcc28dd4706f2.patch | git apply -v --index} #r4
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/9749d085ea33325dda8a44ee0dd72c552a558ef1.patch | git apply -v --index} #r409
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/1364a27ce0fdc8679b10e1ce2a5db404c25ff40e.patch | git apply -v --index} #r410
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/da5e4861eb7cc1d3a2703520a202b95ce52e577d.patch | git apply -v --index} #r411
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/2f8b6b8fada76e57ab9479d618acd287305327d4.patch | git apply -v --index} #r412
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/79b8fd96e96708516b6f964548e98cb1913e64f4.patch | git apply -v --index} #r413
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/307fd857ea42101b124ecb7d899ffc32bf79c083.patch | git apply -v --index} #r414
# if (${{env.DSOALCommitCount}} -lt 380) {curl https://github.com/${{env.DSOALRepo}}/commit/173674c1dc63d61e3e000604dc5519b8c81e9d7c.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 397) {curl https://github.com/${{env.DSOALRepo}}/commit/bf3383f473af5a84cd9165e75f800c9ad08b0be2.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 397) {curl https://github.com/${{env.DSOALRepo}}/commit/1a412b93c158819af04a8fc556d37f34317820f1.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 397) {curl https://github.com/${{env.DSOALRepo}}/commit/adf57e5dbe1c17009c451e34f8a997856f541049.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 397) {curl https://github.com/${{env.DSOALRepo}}/commit/adf57e5dbe1c17009c451e34f8a997856f541049.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 397) {curl https://github.com/${{env.DSOALRepo}}/commit/09a2903b02cf929ee9a84b5c79aff667e4537c2b.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 397) {curl https://github.com/${{env.DSOALRepo}}/commit/8248f297b1ad19eacddd9de15363f69188c4ede3.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 397) {curl https://github.com/${{env.DSOALRepo}}/commit/bdf5299ab46264805049a4884a9afb5797057a41.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 397) {curl https://github.com/${{env.DSOALRepo}}/commit/b7c076e57648bb5da32ee7191501ee1beb48f2ed.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 398) {curl https://github.com/${{env.DSOALRepo}}/commit/0f8f05b4877e95b92fc2ba93c0204ee70ce26ad0.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 399) {curl https://github.com/${{env.DSOALRepo}}/commit/360dcfc99aa039728181c8d403abcc28dd4706f2.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/79b8fd96e96708516b6f964548e98cb1913e64f4.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/2f8b6b8fada76e57ab9479d618acd287305327d4.patch | git apply -v --index}
# if (${{env.DSOALCommitCount}} -lt 412) {curl https://github.com/${{env.DSOALRepo}}/commit/307fd857ea42101b124ecb7d899ffc32bf79c083.patch | git apply -v --index}
- name: Build OpenAL Soft
run: |
cmake -B "${{github.workspace}}/openal-soft/build/Win32" -DCMAKE_Configuration=${{env.Configuration}} -A Win32 -DALSOFT_TESTS=ON -DALSOFT_BUILD_ROUTER=ON -DALSOFT_REQUIRE_WINMM=ON -DALSOFT_REQUIRE_DSOUND=ON -DALSOFT_REQUIRE_WASAPI=ON "${{github.workspace}}/openal-soft"
cmake --build "${{github.workspace}}/openal-soft/build/Win32" --config ${{env.Configuration}}
cmake -B "${{github.workspace}}/openal-soft/build/Win64" -DCMAKE_Configuration=${{env.Configuration}} -A x64 -DALSOFT_TESTS=ON -DALSOFT_BUILD_ROUTER=ON -DALSOFT_REQUIRE_WINMM=ON -DALSOFT_REQUIRE_DSOUND=ON -DALSOFT_REQUIRE_WASAPI=ON "${{github.workspace}}/openal-soft"
cmake --build "${{github.workspace}}/openal-soft/build/Win64" --config ${{env.Configuration}}
- name: Build DSOAL
run: |
cmake -B "${{github.workspace}}/build/Win32" -A Win32 -DOPENAL_INCLUDE_DIR="openal-soft/include/AL" -DOPENAL_LIBRARY="openal-soft/build/${{env.Configuration}}/OpenAL32.lib"
cmake --build "${{github.workspace}}/build/Win32" --config ${{env.Configuration}}
cmake -B "${{github.workspace}}/build/Win64" -A x64 -DOPENAL_INCLUDE_DIR="openal-soft/include/AL" -DOPENAL_LIBRARY="openal-soft/build/${{env.Configuration}}/OpenAL32.lib"
cmake --build "${{github.workspace}}/build/Win64" --config ${{env.Configuration}}
- name: Collect binaries
run: |
mkdir -p "${{env.Configuration}}/Win32"
mkdir -p "${{env.Configuration}}/Win64"
mkdir -p "${{env.Configuration}}/Documentation"
mkdir -p "${{env.Configuration}}/HRTF/Win32"
mkdir -p "${{env.Configuration}}/HRTF/Win64"
copy "${{github.workspace}}/build/Win32/${{env.Configuration}}/dsound.dll" "${{env.Configuration}}/Win32/dsound.dll"
copy "${{github.workspace}}/build/Win64/${{env.Configuration}}/dsound.dll" "${{env.Configuration}}/Win64/dsound.dll"
copy "${{github.workspace}}/openal-soft/build/Win32/${{env.Configuration}}/soft_oal.dll" "${{env.Configuration}}/Win32/dsoal-aldrv.dll"
copy "${{github.workspace}}/openal-soft/build/Win64/${{env.Configuration}}/soft_oal.dll" "${{env.Configuration}}/Win64/dsoal-aldrv.dll"
copy "${{github.workspace}}/openal-soft/alsoftrc.sample" "${{env.Configuration}}/Win32/alsoft.ini"
copy "${{github.workspace}}/openal-soft/alsoftrc.sample" "${{env.Configuration}}/Win64/alsoft.ini"
copy "${{github.workspace}}/build/Win32/${{env.Configuration}}/dsound.dll" "${{env.Configuration}}/HRTF/Win32/dsound.dll"
copy "${{github.workspace}}/build/Win64/${{env.Configuration}}/dsound.dll" "${{env.Configuration}}/HRTF/Win64/dsound.dll"
copy "${{github.workspace}}/openal-soft/build/Win32/${{env.Configuration}}/soft_oal.dll" "${{env.Configuration}}/HRTF/Win32/dsoal-aldrv.dll"
copy "${{github.workspace}}/openal-soft/build/Win64/${{env.Configuration}}/soft_oal.dll" "${{env.Configuration}}/HRTF/Win64/dsoal-aldrv.dll"
curl https://raw.githubusercontent.com/${{env.OpenALSoftRepo}}/${{env.OpenALSoftBranch}}/configs/HRTF/alsoft.ini -o "${{env.Configuration}}/HRTF/Win32/alsoft.ini"
curl https://raw.githubusercontent.com/${{env.OpenALSoftRepo}}/${{env.OpenALSoftBranch}}/configs/HRTF/alsoft.ini -o "${{env.Configuration}}/HRTF/Win64/alsoft.ini"
curl https://raw.githubusercontent.com/${{env.DSOALRepo}}/${{env.DSOALBranch}}/README.md -o "${{env.Configuration}}/Documentation/DSOAL-ReadMe.txt"
curl https://raw.githubusercontent.com/${{env.DSOALRepo}}/${{env.DSOALBranch}}/LICENSE -o "${{env.Configuration}}/Documentation/DSOAL-License.txt"
echo "${{env.DSOALRepo}}" >> "${{env.Configuration}}/Documentation/DSOAL-Version.txt"
echo "${{env.DSOALBranch}}" >> "${{env.Configuration}}/Documentation/DSOAL-Version.txt"
echo "r${{env.DSOALCommitCount}}" >> "${{env.Configuration}}/Documentation/DSOAL-Version.txt"
echo "${{env.DSOALCommitHash}}" >> "${{env.Configuration}}/Documentation/DSOAL-Version.txt"
echo "${{env.DSOALCommitTitle}}" >> "${{env.Configuration}}/Documentation/DSOAL-Version.txt"
echo "${{env.DSOALCommitDateTimeZone}}" >> "${{env.Configuration}}/Documentation/DSOAL-Version.txt"
echo "Compiled on ${{env.DateTimeZone}}" >> "${{env.Configuration}}/Documentation/DSOAL-Version.txt"
copy "${{github.workspace}}/openal-soft/README.md" "${{env.Configuration}}/Documentation/OpenALSoft-ReadMe.txt"
copy "${{github.workspace}}/openal-soft/COPYING" "${{env.Configuration}}/Documentation/OpenALSoft-License.txt"
curl https://raw.githubusercontent.com/${{env.OpenALSoftRepo}}/${{env.OpenALSoftBranch}}/README.md -o "${{env.Configuration}}/Documentation/OpenALSoft-ReadMe.txt"
curl https://raw.githubusercontent.com/${{env.OpenALSoftRepo}}/${{env.OpenALSoftBranch}}/COPYING -o "${{env.Configuration}}/Documentation/OpenALSoft-License.txt"
curl https://raw.githubusercontent.com/${{env.OpenALSoftRepo}}/${{env.OpenALSoftBranch}}/BSD-3Clause -o "${{env.Configuration}}/Documentation/OpenALSoft-BSD-3Clause.txt"
curl https://raw.githubusercontent.com/${{env.OpenALSoftRepo}}/${{env.OpenALSoftBranch}}/ChangeLog -o "${{env.Configuration}}/Documentation/OpenALSoft-ChangeLog.txt"
echo "${{env.OpenALSoftRepo}}" >> "${{env.Configuration}}/Documentation/OpenALSoft-Version.txt"
echo "${{env.OpenALSoftBranch}}" >> "${{env.Configuration}}/Documentation/OpenALSoft-Version.txt"
echo "r${{env.OpenALSoftCommitCount}}" >> "${{env.Configuration}}/Documentation/OpenALSoft-Version.txt"
echo "${{env.OpenALSoftCommitHash}}" >> "${{env.Configuration}}/Documentation/OpenALSoft-Version.txt"
echo "${{env.OpenALSoftCommitTitle}}" >> "${{env.Configuration}}/Documentation/OpenALSoft-Version.txt"
echo "${{env.OpenALSoftCommitDateTimeZone}}" >> "${{env.Configuration}}/Documentation/OpenALSoft-Version.txt"
echo "Compiled on ${{env.DateTimeZone}}" >> "${{env.Configuration}}/Documentation/OpenALSoft-Version.txt"
- name: Compress artifacts
run: |
7z a -t7z -ms=on -mx=9 -m1=LZMA2:d=1024m -m0=BCJ2 ${{env.Configuration}}/DSOAL_r${{env.DSOALCommitCount}}.7z ./${{env.Configuration}}/*
- name: Release
run: |
gh release create r${{env.DSOALCommitCount}} --target ${{env.DSOALCommitHash}} --generate-notes --latest=false --prerelease --title "DSOAL r${{env.DSOALCommitCount}} - ${{env.DSOALCommitTitle}}" --notes "DSOAL r${{env.DSOALCommitCount}}@${{env.DSOALCommitHashShort}} ${{env.DSOALBranch}} - ${{env.DSOALCommitTitle}} [${{env.DSOALCommitDateTimeZone}}]
OpenAL Soft r${{env.OpenALSoftCommitCount}}@${{env.OpenALSoftCommitHashShort}} ${{env.OpenALSoftBranch}} - ${{env.OpenALSoftCommitTitle}} [${{env.OpenALSoftCommitDateTimeZone}}]
Build log: ${{steps.JobID.outputs.html_url}}"
gh release upload r${{env.DSOALCommitCount}} ${{env.Configuration}}/DSOAL_r${{env.DSOALCommitCount}}.7z --clobber