Skip to content

Commit

Permalink
Update remaining actions to build docs locally
Browse files Browse the repository at this point in the history
  • Loading branch information
weefuzzy committed May 26, 2022
1 parent 637db1d commit 94987f1
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 14 deletions.
7 changes: 3 additions & 4 deletions env/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ runs:
run: mkdir -p build
shell: bash

- name: Clone core repository at HEAD of dev
run: git clone --branch ${{ inputs.branch }} https://github.com/flucoma/flucoma-core.git core
shell: bash
# - name: Clone core repository at HEAD of dev
# run: git clone --branch ${{ inputs.branch }} https://github.com/flucoma/flucoma-core.git core
# shell: bash

- name: Install ninja (Windows)
if: runner.os == 'Windows'
Expand All @@ -31,4 +31,3 @@ runs:
if: runner.os == 'Linux'
run: sudo apt-get install ninja-build
shell: bash

18 changes: 15 additions & 3 deletions max/action.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
name: 'Build FluCoMa Toolkit for Max'
description: 'Builds the FluCoMa Toolkit for Max'
inputs:
branch:
description: 'Which branch to pull flucoma dependencies from (main/dev)'
required: true
default: 'dev'
runs:
using: "composite"
steps:
- name: setup python setup
uses: actions/setup-python@v3
id: py39
with:
python-version: '3.9'

- name: Get Max Source
run: git clone --recursive https://github.com/Cycling74/max-sdk.git sdk
shell: bash

- name: Install (Mac/Linux)
if: runner.os == 'macOS'
run: |
cmake -GNinja -DMAX_SDK_PATH=../sdk -DFLUID_PATH=../core -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" ..
cmake -GNinja -DMAX_SDK_PATH=../sdk -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DDOCS=ON -DFLUID_BRANCH=${{ inputs.branch }} -DPython_ROOT_DIR=${{ env.pythonLocation }} ..
pip install -r _deps/flucoma-docs-src/requirements.txt
ninja install
working-directory: build
shell: bash

- name: Install (Windows)
if: runner.os == 'Windows'
run: |
cmake -DMAX_SDK_PATH="../sdk" -DFLUID_PATH="../core" ..
cmake -DMAX_SDK_PATH="../sdk" ..
cmake --build . --target install --config Release
working-directory: build
shell: cmd
shell: cmd
22 changes: 18 additions & 4 deletions pd/action.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
name: 'Build FluCoMa Toolkit for PureData'
description: 'Builds the FluCoMa Toolkit for PureData'
inputs:
branch:
description: 'Which branch to pull flucoma dependencies from (main/dev)'
required: true
default: 'dev'
runs:
using: "composite"
steps:
- name: setup python setup
uses: actions/setup-python@v3
id: py39
with:
python-version: '3.9'

- name: Get PureData Source (Mac/Linux)
if: runner.os == 'macOS' || runner.os == 'Linux'
run: git clone https://github.com/pure-data/pure-data.git sdk
Expand All @@ -18,23 +29,26 @@ runs:
- name: Install Mac
if: runner.os == 'macOS'
run: |
cmake -GNinja -DPD_PATH=../sdk -DFLUID_PATH=../core -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" ..
cmake -GNinja -DPD_PATH=../sdk -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DDOCS=ON -DFLUID_BRANCH=${{ inputs.branch }} -DPython_ROOT_DIR=${{ env.pythonLocation }} ..
pip install -r _deps/flucoma-docs-src/requirements.txt
ninja install
working-directory: build
shell: bash

- name: Install Linux
if: runner.os == 'Linux'
run: |
cmake -GNinja -DPD_PATH=../sdk -DFLUID_PATH=../core ..
cmake -GNinja -DPD_PATH=../sdk -DDOCS=ON -DFLUID_BRANCH=${{ inputs.branch }} -DPython_ROOT_DIR=${{ env.pythonLocation }} ..
pip install -r _deps/flucoma-docs-src/requirements.txt
ninja install
working-directory: build
shell: bash

- name: Install (Windows)
if: runner.os == 'Windows'
run: |
cmake cmake -DPD_PATH="../pd-0.52-1" -DFLUID_PATH="../core" ..
cmake cmake -DPD_PATH="../pd-0.52-1" -DDOCS=ON -DFLUID_BRANCH=${{ inputs.branch }} -DPython_ROOT_DIR=${{ env.pythonLocation }} ..
pip install -r _deps/flucoma-docs-src/requirements.txt
cmake --build . --target install --config Release
working-directory: build
shell: cmd
shell: cmd
19 changes: 16 additions & 3 deletions sc/action.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,37 @@
name: 'Build FluCoMa Toolkit for SuperCollider'
description: 'Builds the FluCoMa Toolkit for SuperCollider'
inputs:
branch:
description: 'Which branch to pull flucoma dependencies from (main/dev)'
required: true
default: 'dev'
runs:
using: "composite"
steps:
- name: setup python setup
uses: actions/setup-python@v3
id: py39
with:
python-version: '3.9'

- name: Get SuperCollider Source
run: git clone --recursive https://github.com/supercollider/supercollider.git sdk
shell: bash

- name: Install (Mac/Linux)
if: runner.os == 'macOS' || runner.os == 'Linux'
run: |
cmake -GNinja -DSC_PATH=../sdk -DFLUID_PATH=../core ..
cmake -GNinja -DSC_PATH=../sdk -DDOCS=ON -DFLUID_BRANCH=${{ inputs.branch }} -DPython_ROOT_DIR=${{ env.pythonLocation }} ..
pip install -r _deps/flucoma-docs-src/requirements.txt
ninja install
working-directory: build
shell: bash

- name: Install (Windows)
if: runner.os == 'Windows'
run: |
cmake -DSC_PATH="../sdk" -DFLUID_PATH="../core" ..
cmake -DSC_PATH="../sdk" -DDOCS=ON -DFLUID_BRANCH=${{ inputs.branch }} -DPython_ROOT_DIR=${{ env.pythonLocation }} ..
pip install -r _deps/flucoma-docs-src/requirements.txt
cmake --build . --target install --config Release
working-directory: build
shell: cmd
shell: cmd

0 comments on commit 94987f1

Please sign in to comment.