Skip to content

Commit

Permalink
CI: add build action.
Browse files Browse the repository at this point in the history
  • Loading branch information
stechyo committed Apr 6, 2024
1 parent 709bf6d commit f0a0166
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: build-release
run-name: Build release
on: [push]

jobs:
build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v5
- run: |
# install scons
python -c "import sys; print(sys.version)"
python -m pip install scons==4.4.0
scons --version
# install windows deps
sudo apt-get install mingw-w64
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
# build release zips
make release
- uses: actions/upload-artifact@v4
with:
name: godot-steam-audio-$GITHUB-SHA.zip
path: godot-steam-audio-$GITHUB-SHA.zip
- uses: actions/upload-artifact@v4
with:
name: godot-steam-audio-demo-$GITHUB-SHA.zip
path: godot-steam-audio-demo-$GITHUB-SHA.zip
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ release:
cp -r ./project/* ./godot-steam-audio-demo
rm -r ./godot-steam-audio-demo/addons/godot-steam-audio/bin/libphonon.so.dbg
cp -r ./godot-steam-audio-demo/addons ./godot-steam-audio
zip -r ./godot-steam-audio-vX.Y.Z.zip godot-steam-audio README.md
zip -r ./godot-steam-audio-demo-vX.Y.Z.zip godot-steam-audio-demo README.md
zip -r ./godot-steam-audio-$$(git log --pretty=format:'%h' -1).zip godot-steam-audio README.md
zip -r ./godot-steam-audio-demo-$$(git log --pretty=format:'%h' -1).zip godot-steam-audio-demo README.md
rm -r ./godot-steam-audio ./godot-steam-audio-demo

0 comments on commit f0a0166

Please sign in to comment.