Sign the build #9
Workflow file for this run
This file contains hidden or 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: plugincollider-pipeline | |
on: | |
push: | |
branches: [ main, feature/add_ci ] | |
tags: | |
- '*' | |
pull_request: | |
branches: [ main ] | |
jobs: | |
# build-linux: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Install Linux Dependencies | |
# if: runner.os == 'Linux' | |
# run: | | |
# sudo apt-get update && sudo apt install libasound2-dev libx11-dev libxinerama-dev libxext-dev libfreetype6-dev libwebkit2gtk-4.0-dev libglu1-mesa-dev ccache xvfb libjack-dev libsndfile-dev | |
# sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10 | |
# sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10 | |
# - uses: actions/checkout@v4 | |
# with: | |
# submodules: recursive | |
# - name: Set build type | |
# shell: bash | |
# run: | | |
# if [ "$GITHUB_REF_TYPE" == "tag" ]; then | |
# echo "BUILD_TYPE=Release" >> "$GITHUB_ENV" | |
# echo "BUILD_VERSION=${GITHUB_REF_NAME:1}" >> "$GITHUB_ENV" | |
# else | |
# echo "BUILD_TYPE=Debug" >> "$GITHUB_ENV" | |
# echo "BUILD_VERSION=DEVBUILD" >> "$GITHUB_ENV" | |
# fi | |
# echo "BUILD PARM ==========" | |
# cat $GITHUB_ENV | |
# - name: Build | |
# run: | | |
# cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_CXX_FLAGS=-DDEXED_ID=${{ env.BUILD_VERSION }} | |
# cmake --build ${{github.workspace}}/build --config ${{ env.BUILD_TYPE }} | |
# - name: Show | |
# run: ls -lR ${{github.workspace}}/build | |
# - name: Upload | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: linux-bin | |
# path: | | |
# ${{github.workspace}}/build/*_artefacts/${{env.BUILD_TYPE}}/VST3/*.vst3/** | |
# ${{github.workspace}}/build/*_artefacts/${{env.BUILD_TYPE}}/CLAP/*.clap/** | |
# ${{github.workspace}}/build/*_artefacts/${{env.BUILD_TYPE}}/Standalone/* | |
build-macos: | |
runs-on: macos-latest | |
environment: PRD | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set build type | |
shell: bash | |
run: | | |
if [ "$GITHUB_REF_TYPE" == "tag" ]; then | |
echo "BUILD_TYPE=Release" >> "$GITHUB_ENV" | |
echo "BUILD_VERSION=${GITHUB_REF_NAME:1}" >> "$GITHUB_ENV" | |
else | |
echo "BUILD_TYPE=Debug" >> "$GITHUB_ENV" | |
echo "BUILD_VERSION=DEVBUILD" >> "$GITHUB_ENV" | |
fi | |
echo "BUILD PARM ==========" | |
cat $GITHUB_ENV | |
- name: Build | |
run: | | |
brew install libsndfile | |
sudo xcode-select -s '/Applications/Xcode_15.4.app/Contents/Developer' | |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_CXX_FLAGS=-DDEXED_ID=${{ env.BUILD_VERSION }} | |
cmake --build ${{github.workspace}}/build --config ${{ env.BUILD_TYPE }} | |
- name: Package | |
env: | |
MAC_SIGNING_CERT: ${{ secrets.MAC_SIGNING_CERT }} | |
MAC_SIGNING_B64: ${{ secrets.MAC_SIGNING_B64 }} | |
MAC_INSTALLING_CERT: ${{ secrets.MAC_INSTALLING_CERT }} | |
MAC_INSTALLING_B64: ${{ secrets.MAC_INSTALLING_B64 }} | |
MAC_SIGNING_ID: ${{ secrets.MAC_SIGNING_ID }} | |
MAC_TEAM_ID: ${{ secrets.MAC_TEAM_ID }} | |
MAC_TEAM_PASSWORD : $ {{ secrets.MAC_TEAM_PASSWORD }} | |
MAC_KEYSTORE_PASSWD: $ {{ secrets.MAC_KEYSTORE_PASSWD }} | |
run: | | |
./Resources/installer/macos/make_pkg.sh PluginCollider ${{github.workspace}}/build/*_artefacts/${{env.BUILD_TYPE}} ${{ env.BUILD_VERSION }} | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: macos-bin | |
path: | | |
${{github.workspace}}/output_bin/*.dmg | |
# build-windows: | |
# runs-on: windows-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# with: | |
# submodules: recursive | |
# - name: Set build type | |
# shell: bash | |
# run: | | |
# if [ "$GITHUB_REF_TYPE" == "tag" ]; then | |
# echo "BUILD_TYPE=Release" >> "$GITHUB_ENV" | |
# echo "BUILD_VERSION=${GITHUB_REF_NAME:1}" >> "$GITHUB_ENV" | |
# else | |
# echo "BUILD_TYPE=Debug" >> "$GITHUB_ENV" | |
# echo "BUILD_VERSION=$GITHUB_REF_NAME" >> "$GITHUB_ENV" | |
# fi | |
# echo "BUILD PARM ==========" | |
# cat $GITHUB_ENV | |
# - name: Build | |
# run: | | |
# choco install libsndfile --x86 | |
# cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_CXX_FLAGS=-DDEXED_ID="${{ env.BUILD_VERSION }}" | |
# cmake --build ${{github.workspace}}/build --config ${{ env.BUILD_TYPE }} | |
# - name: Show | |
# shell: cmd | |
# run: dir /s ${{github.workspace}}\build | |
# - name: Upload | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: windows-bin | |
# path: | | |
# ${{github.workspace}}/build/*_artefacts/${{ env.BUILD_TYPE }}/VST3/*.vst3/** | |
# ${{github.workspace}}/build/*_artefacts/${{ env.BUILD_TYPE }}/CLAP/*.clap/** | |
# ${{github.workspace}}/build/*_artefacts/${{ env.BUILD_TYPE }}/Standalone/*.exe |