-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
167 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
# Cetone Synth Series - GitHub Workflow | ||
# Based on Wasted Audio workflow (https://github.com/Wasted-Audio/wstd-eq/blob/master/.github/workflows/build.yml) | ||
|
||
name: build | ||
|
||
on: | ||
push: | ||
|
||
env: | ||
HVCC_VERSION: 424308377a8b0e4291e0bfda3bcf68ae9fd88f33 | ||
|
||
jobs: | ||
linux-x86_64: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update -qq | ||
sudo apt-get install -yqq libgl1-mesa-dev | ||
- name: Build plugins | ||
run: | | ||
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release | ||
make -C build -j $(nproc) | ||
- name: Set sha8 (non-release) | ||
if: startsWith(github.ref, 'refs/tags/') != true | ||
id: slug1 | ||
run: echo "action_tag=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV | ||
- name: Set tag (release) | ||
if: startsWith(github.ref, 'refs/tags/') | ||
id: slug2 | ||
run: echo "action_tag=$(echo ${{ github.ref_name }})" >> $GITHUB_ENV | ||
|
||
- name: Pack binaries | ||
run: | | ||
cd build | ||
mv bin CetoneSynthLight | ||
tar -c -h -z -f ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || env.action_tag }}.tar.gz CetoneSynthLight/ | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || env.action_tag }} | ||
path: | | ||
CetoneSynthLight/*.tar.gz | ||
- uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
tag_name: ${{ github.ref_name }} | ||
name: ${{ github.ref_name }} | ||
draft: false | ||
prerelease: false | ||
# files: | | ||
# WSTD_DL3Y/*.tar.gz | ||
|
||
win64: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update -qq | ||
sudo apt-get install -yqq binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable | ||
- name: Build win64 cross-compiled plugins | ||
env: | ||
CC: x86_64-w64-mingw32-gcc | ||
CXX: x86_64-w64-mingw32-g++ | ||
EXE_WRAPPER: wine | ||
PKG_CONFIG: "false" | ||
WINEDEBUG: "-all" | ||
run: | | ||
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release | ||
make -C build -j $(nproc) | ||
- name: Set sha8 (non-release) | ||
if: startsWith(github.ref, 'refs/tags/') != true | ||
id: slug1 | ||
run: echo "action_tag=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV | ||
- name: Set tag (release) | ||
if: startsWith(github.ref, 'refs/tags/') | ||
id: slug2 | ||
run: echo "action_tag=$(echo ${{ github.ref_name }})" >> $GITHUB_ENV | ||
- name: Pack binaries | ||
run: | | ||
cd build | ||
mv bin CetoneSynthLight | ||
tar -c -h -z -f ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.action_tag }}.tar.gz CetoneSynthLight/ | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.action_tag }} | ||
path: | | ||
CetoneSynthLight/*.tar.gz | ||
- uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
tag_name: ${{ github.ref_name }} | ||
name: ${{ github.ref_name }} | ||
draft: false | ||
prerelease: false | ||
# files: | | ||
# WSTD_DL3Y/*.tar.gz | ||
|
||
macos-universal: | ||
runs-on: macos-11 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: Install dependencies | ||
run: | | ||
echo "No need to install dependencies on macOS." | ||
- name: Build macOS universal plugins | ||
env: | ||
CFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -mtune=generic -msse -msse2 | ||
CXXFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -mtune=generic -msse -msse2 | ||
LDFLAGS: -arch x86_64 -arch arm64 -mmacosx-version-min=10.12 | ||
run: | | ||
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release | ||
make -C build NOOPT=true -j $(sysctl -n hw.logicalcpu) | ||
./dpf/utils/package-osx-bundles.sh | ||
- name: Set sha8 (non-release) | ||
if: startsWith(github.ref, 'refs/tags/') != true | ||
id: slug1 | ||
run: echo "action_tag=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV | ||
- name: Set tag (release) | ||
if: startsWith(github.ref, 'refs/tags/') | ||
id: slug2 | ||
run: echo "action_tag=$(echo ${{ github.ref_name }})" >> $GITHUB_ENV | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ github.event.repository.name }}-macOS-universal-${{ github.event.pull_request.number || env.action_tag }} | ||
path: | | ||
CetoneSynthLight/*-macOS.pkg | ||
- uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
tag_name: ${{ github.ref_name }} | ||
name: ${{ github.ref_name }} | ||
draft: false | ||
prerelease: false | ||
# files: | | ||
# WSTD_DL3Y/*-macOS.pkg |