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 7, 2024
1 parent 709bf6d commit 928dfbf
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: build-release
run-name: Build release
on: [push]

jobs:
build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set short git commit SHA
id: vars
run: |
echo "COMMIT_SHORT_SHA=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
- uses: actions/setup-python@v5
- name: install-deps
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
# download steamaudio
curl -LO https://github.com/ValveSoftware/steam-audio/releases/download/v4.5.3/steamaudio_4.5.3.zip
unzip steamaudio_4.5.3.zip 'steamaudio/lib/**/*' -d src/lib
cp src/lib/steamaudio/lib/linux-x64/* project/addons/godot-steam-audio/
cp src/lib/steamaudio/lib/windows-x64/* project/addons/godot-steam-audio/
- name: build-ext
run: |
make release
- uses: actions/upload-artifact@v4
with:
name: godot-steam-audio-${{ env.COMMIT_SHORT_SHA }}
path: ${{ github.workspace }}/godot-steam-audio/
- uses: actions/upload-artifact@v4
with:
name: godot-steam-audio-demo-${{ env.COMMIT_SHORT_SHA }}
path: ${{ github.workspace }}/godot-steam-audio-demo/
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,5 @@ release:
mkdir godot-steam-audio-demo
mkdir godot-steam-audio
cp -r ./project/* ./godot-steam-audio-demo
rm -r ./godot-steam-audio-demo/addons/godot-steam-audio/bin/libphonon.so.dbg
rm -rf ./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
rm -r ./godot-steam-audio ./godot-steam-audio-demo

0 comments on commit 928dfbf

Please sign in to comment.