Skip to content

Commit de024a1

Browse files
committed
Build action for macOS.
1 parent 81193b8 commit de024a1

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,33 @@ jobs:
4747
with:
4848
name: godot-steam-audio-demo-${{ env.COMMIT_SHORT_SHA }}
4949
path: ${{ github.workspace }}/godot-steam-audio-demo/
50+
build-macos-release:
51+
runs-on: macos-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
with:
55+
submodules: recursive
56+
- name: Set short git commit SHA
57+
id: vars
58+
run: |
59+
echo "COMMIT_SHORT_SHA=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
60+
- uses: actions/setup-python@v5
61+
- name: install-deps
62+
run: |
63+
# install scons
64+
PIP_BREAK_SYSTEM_PACKAGES=1 python -m pip install scons==4.4.0
65+
scons --version
66+
curl -LO https://github.com/ValveSoftware/steam-audio/releases/download/v4.8.0/steamaudio_4.8.0.zip
67+
unzip steamaudio_4.8.0.zip 'steamaudio/lib/**/*' -d src/lib
68+
cp -r src/lib/steamaudio/lib/osx/* project/addons/godot-steam-audio/bin/
69+
- name: build-ext
70+
run: |
71+
make macos-release
72+
- uses: actions/upload-artifact@v4
73+
with:
74+
name: godot-steam-audio-macos-${{ env.COMMIT_SHORT_SHA }}
75+
path: ${{ github.workspace }}/godot-steam-audio/
76+
- uses: actions/upload-artifact@v4
77+
with:
78+
name: godot-steam-audio-demo-macos-${{ env.COMMIT_SHORT_SHA }}
79+
path: ${{ github.workspace }}/godot-steam-audio-demo/

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@ install-steam-audio:
1313
release:
1414
scons platform=android arch=arm64 target=template_release && scons platform=android arch=x86_64 target=template_release && \
1515
scons platform=android arch=arm64 target=template_debug && scons platform=android arch=x86_64 target=template_debug && \
16-
scons platform=linux target=template_debug && scons platform=windows target=template_debug && scons platform=macos target=template_debug && \
17-
scons platform=linux target=template_release && scons platform=windows target=template_release && scons platform=macos target=template_release
16+
scons platform=linux target=template_debug && scons platform=windows target=template_debug && \
17+
scons platform=linux target=template_release && scons platform=windows target=template_release
18+
mkdir godot-steam-audio-demo
19+
mkdir godot-steam-audio
20+
cp -r ./project/* ./godot-steam-audio-demo
21+
rm -rf ./godot-steam-audio-demo/addons/godot-steam-audio/bin/libphonon.so.dbg
22+
cp -r ./godot-steam-audio-demo/addons ./godot-steam-audio
23+
24+
macos-release:
25+
scons platform=macos target=template_debug && scons platform=macos target=template_release
1826
mkdir godot-steam-audio-demo
1927
mkdir godot-steam-audio
2028
cp -r ./project/* ./godot-steam-audio-demo

0 commit comments

Comments
 (0)