Skip to content

Upgrade ChucK to 1.5.1.9 and TouchDesigner to 2023 #100

Upgrade ChucK to 1.5.1.9 and TouchDesigner to 2023

Upgrade ChucK to 1.5.1.9 and TouchDesigner to 2023 #100

Workflow file for this run

name: Compile
on:
pull_request: {}
push:
tags:
- '*'
jobs:
build-windows:
runs-on: windows-latest
strategy:
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Get CMake
uses: lukka/get-cmake@latest
- name: Build Windows (Release)
run: |
mkdir build
cmake . -DCMAKE_BUILD_TYPE=Release -Bbuild -DPython_ROOT_DIR=$pythonLocation
cd build
msbuild ChucKDesignerCHOP.sln /property:Configuration=Release
- name: Make distribution
run: |
mkdir chuckdesigner_dist
move ${{ github.workspace }}/Plugins/ChucK*.dll chuckdesigner_dist
7z a ChucKDesigner-${{ matrix.os }}.zip ./chuckdesigner_dist/* -r
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: my-artifact-${{ matrix.os }}
path: ChucKDesigner-${{ matrix.os }}.zip
build-macos:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Setup Python 3.11
run: |
which python
python --version
pip install --upgrade certifi
cd install_script
python macos_install_python.py
- name: Get CMake
uses: lukka/get-cmake@latest
- name: Some Setup
run: |
cd thirdparty/chuck/src/core
bison -dv -b chuck chuck.y
flex -ochuck.yy.c chuck.lex
- name: Build MacOS (Release)
run: |
export PATH=/Library/Frameworks/Python.framework/Versions/3.11:/Library/Frameworks/Python.framework/Versions/3.11/bin:/Library/Frameworks/Python.framework/Versions/3.11/lib:$PATH
which python3
python3 --version
which python3
python3 --version
mkdir build && cd build
cmake .. -G "Xcode" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0
xcodebuild -configuration Release -project ChucKDesignerCHOP.xcodeproj
ls -r *
install_name_tool -change @rpath/libChucKDesignerShared.dylib @loader_path/../../../libChucKDesignerShared.dylib Release/ChucKDesignerCHOP.plugin/Contents/MacOS/ChucKDesignerCHOP
install_name_tool -change @rpath/libChucKDesignerShared.dylib @loader_path/../../../libChucKDesignerShared.dylib Release/ChucKListenerCHOP.plugin/Contents/MacOS/ChucKListenerCHOP
- name: Make distribution
run: |
mkdir chuckdesigner_dist
cp ${{ github.workspace }}/build/Release/libChucKDesignerShared.dylib chuckdesigner_dist
mv ${{ github.workspace }}/build/Release/ChucKDesignerCHOP.plugin chuckdesigner_dist
mv ${{ github.workspace }}/build/Release/ChucKListenerCHOP.plugin chuckdesigner_dist
zip -r ChucKDesigner-${{ matrix.os }}.zip chuckdesigner_dist
# Don't upload until we figure out codesigning.
# - name: Upload artifact
# uses: actions/upload-artifact@v3
# with:
# name: my-artifact-${{ matrix.os }}
# path: ChucKDesigner-${{ matrix.os }}.zip
create-release:
if: startsWith(github.ref, 'refs/tags/v')
needs: [build-windows, build-macos]
runs-on: ubuntu-latest
name: "Create Release on GitHub"
steps:
- uses: actions/download-artifact@v3
with:
path: "dist"
- uses: ncipollo/release-action@v1
with:
artifacts: "dist/*/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: true