8000 [CI] Refactor and use composite actions by jamesb93 · Pull Request #13 · flucoma/flucoma-pd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[CI] Refactor and use composite actions #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 24 additions & 84 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,67 +2,35 @@ name: Nightly Releases

on:
push:
branches: [ dev, ci/nightlies ]
branches: [ dev, ci/** ]

jobs:

docs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2

- name: install ninja
run: brew install ninja
runs-on: macos-11
steps:
- uses: actions/checkout@v2

- name: install python dependencies
run: pip3 install pyyaml docutils jinja2

- name: make build directory
run: mkdir -p build
- name: setup environment
uses: flucoma/actions/env@v2

- name: clone latest flucoma-core
run: git clone --branch dev https://github.com/flucoma/flucoma-core.git core
- name: build docs
uses: flucoma/actions/pddocs@v2

- name: clone latest flucoma-docs
run: git clone --branch dev https://github.com/flucoma/flucoma-docs.git docs

- name: cmake
run: cmake -GNinja -DFLUID_PATH=../core -DPD_PATH=../sdk -DDOCS=ON -DFLUID_DOCS_PATH=../docs ..
working-directory: build

- name: install
run: ninja MAKE_PD_REF
working-directory: build

- uses: actions/upload-artifact@v2
with:
name: docs
path: build/pd_ref
- uses: actions/upload-artifact@v2
with:
name: docs
path: build/pd_ref

macbuild:
runs-on: macos-11
steps:
- uses: actions/checkout@v2

- name: install ninja
run: brew install ninja

- name: get pd source
run: git clone https://github.com/pure-data/pure-data.git sdk

- name: make build directory
run: mkdir -p build

- name: clone latest flucoma-core
run: git clone --branch dev https://github.com/flucoma/flucoma-core.git core

- name: cmake
run: cmake -GNinja -DPD_PATH=../sdk -DFLUID_PATH=../core ..
working-directory: build
- name: setup environment
uses: flucoma/actions/env@v2

- name: install
run: ninja install
working-directory: build
- name: build toolkit
uses: flucoma/actions/pd@v2

- uses: actions/upload-artifact@v2
with:
Expand All @@ -74,25 +42,11 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: get pd binaries
run : Invoke-WebRequest -Uri https://msp.puredata.info/Software/pd-0.51-4.msw.zip -OutFile sdk.zip

- name: unzip pd binaries
run: Expand-Archive sdk.zip -DestinationPath ./ -Force

- name: make build directory
run: mkdir -p build

- name: clone latest flucoma-core
run: git clone --branch dev https://github.com/flucoma/flucoma-core.git core
- name: setup environment
uses: flucoma/actions/env@v2

- name: cmake
run: cmake -DPD_PATH="../pd-0.51-4" -DFLUID_PATH="../core" ..
working-directory: build

- name: install
run: cmake --build . --target install --config Release
working-directory: build
- name: build toolkit
uses: flucoma/actions/pd@v2

- uses: actions/upload-artifact@v2
with:
Expand All @@ -104,25 +58,11 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: install ninja
run: sudo apt update && sudo apt install ninja-build

- name: get pd source
run: git clone https://github.com/pure-data/pure-data.git sdk

- name: make build directory
run: mkdir -p build

- name: clone latest flucoma-core
run: git clone --branch dev https://github.com/flucoma/flucoma-core.git core

- name: cmake
run: cmake -GNinja -DPD_PATH=../sdk -DFLUID_PATH=../core ..
working-directory: build
- name: setup environment
uses: flucoma/actions/env@v2

- name: install
run: ninja install
working-directory: build
- name: build toolkit
uses: flucoma/actions/pd@v2

- uses: actions/upload-artifact@v2
with:
Expand Down
0