This repository has been archived by the owner on May 9, 2024. It is now read-only.
Debug Rel Vector Audio #24
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: Debug Rel Vector Audio | |
on: | |
workflow_dispatch: | |
env: | |
BUILD_TYPE: Debug | |
VECTOR_SECRET: Dev | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: "Get Previous tag" | |
id: previoustag | |
uses: "WyriHaximus/github-action-get-previous-tag@v1" | |
with: | |
fallback: "x-debug" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Set env | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Install SFML dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libx11-dev libxrandr-dev libxi-dev libudev-dev libgl1-mesa-dev libxcursor-dev freeglut3-dev pkg-config desktop-file-utils | |
sudo add-apt-repository universe | |
sudo apt-get update | |
sudo apt install libfuse2 | |
- name: Configure cmake | |
run: | | |
cmake -S . -B build/ -DVCPKG_BUILD_TYPE=debug -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DVECTOR_SECRET=${{ env.VECTOR_SECRET }} | |
- name: Build cmake | |
run: | | |
cmake --build build/ | |
- name: Bundle Linux | |
run: | | |
./bundle_linux.sh libafv_natived.so | |
- name: Rename installer | |
run: | | |
mv VectorAudio-x86_64.AppImage VectorAudio-DEBUG-x86_64.AppImage | |
mv VectorAudio-x86_64.AppImage.zsync VectorAudio-DEBUG-x86_64.AppImage.zsync | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
VectorAudio-DEBUG-x86_64.AppImage | |
VectorAudio-DEBUG-x86_64.AppImage.zsync | |
tag_name: ${{ steps.previoustag.outputs.tag }} | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: "Get Previous tag" | |
id: previoustag | |
uses: "WyriHaximus/github-action-get-previous-tag@v1" | |
with: | |
fallback: "x-debug" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Configure cmake | |
run: | | |
cmake -S . -B build/ -DVCPKG_BUILD_TYPE=debug -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DVECTOR_SECRET=${{ env.VECTOR_SECRET }} | |
- name: Build cmake | |
run: | | |
cmake --build build/ --config Release | |
- name: Prepare windows installer | |
run: | | |
python collect_licenses.py | |
mkdir installer | |
cp resources/*.wav installer/ | |
cp resources/favicon.ico installer/ | |
cp resources/icon_win.png installer/ | |
cp resources/*.ttf installer/ | |
cp resources/airports.json installer/ | |
cp resources/LICENSE.txt installer/ | |
cp build/Release/vector_audio.exe installer/ | |
cp build/Release/*.dll installer/ | |
cp lib/windows/*.dll installer/ | |
cp bundle_windows.nsi installer/install.nsi | |
- name: Create installer | |
run: | | |
cd installer/ | |
makensis install.nsi | |
- name: Rename installer | |
run: | | |
mv installer/VectorAudio-installer.exe VectorAudio-DEBUG-${{ github.ref_name }}-Installer-x64.exe | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: VectorAudio-DEBUG-${{ github.ref_name }}-Installer-x64.exe | |
tag_name: ${{ steps.previoustag.outputs.tag }} | |
build-osx: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: "Get Previous tag" | |
id: previoustag | |
uses: "WyriHaximus/github-action-get-previous-tag@v1" | |
with: | |
fallback: "x-debug" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install native dependencies | |
run: | | |
brew install pkg-config | |
- name: Set env | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Create universal build folder | |
run: | | |
mkdir build/ | |
mkdir -p build/extern/afv-native/ | |
- name: Configure cmake (intel) | |
run: | | |
cmake -S . -B build/ -DVCPKG_BUILD_TYPE=debug -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_OSX_ARCHITECTURES=x86_64 -DVCPKG_TARGET_TRIPLET=x64-osx -DVECTOR_SECRET=${{ env.VECTOR_SECRET }} | |
- name: Build cmake (intel) | |
run: | | |
cmake --build build/ | |
- name: Bundle OSX | |
run: | | |
./bundle_osx.sh | |
- name: Create DMG | |
run: | | |
brew install create-dmg | |
create-dmg --volname "Vector Audio Installer" --app-drop-link 600 185 --window-size 800 400 --icon "VectorAudio.app" 200 190 "VectorAudio-DEBUG-${{ env.RELEASE_VERSION }}-Installer-universal.dmg" "build/VectorAudio.app" | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: VectorAudio-DEBUG-${{ env.RELEASE_VERSION }}-Installer-universal.dmg | |
tag_name: ${{ steps.previoustag.outputs.tag }} |