forked from flucoma/flucoma-core
-
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.
[CI] Refactor and use composite actions (flucoma#106)
* use flucoma actions * use composite actions to build windows * remove duplicate env setu * use maxdocs composite action
- Loading branch information
Showing
1 changed file
with
14 additions
and
67 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Nightly Releases | |
|
||
on: | ||
push: | ||
branches: [ dev, ci/automatic-building ] | ||
branches: [ dev, ci ] | ||
pull_request: | ||
branches: [ dev ] | ||
|
||
|
@@ -12,36 +12,11 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: install ninja | ||
run: brew install ninja | ||
|
||
- name: get max sdk | ||
run: git clone --recursive https://github.com/Cycling74/max-sdk.git sdk | ||
|
||
- name: install python dependencies | ||
run: pip3 install pyyaml docutils jinja2 | ||
|
||
- 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: create externals folder | ||
run: mkdir -p externals | ||
|
||
- name: cmake | ||
run: cmake -GNinja -DDOCS=ON -DFLUID_PATH=../core -DMAX_SDK_PATH=../sdk/ .. | ||
working-directory: build | ||
|
||
- name: install | ||
run: ninja MAKE_MAX_REF | ||
working-directory: build | ||
- name: build docs | ||
uses: flucoma/actions/maxdocs@v2 | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
|
@@ -54,22 +29,11 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: get max sdk | ||
run: git clone --recursive https://github.com/Cycling74/max-sdk.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 -DFLUID_PATH="../core" -DMAX_SDK_PATH="../sdk/" .. | ||
working-directory: build | ||
|
||
- name: build binaries | ||
run: cmake --build . --target install --config Release | ||
working-directory: build | ||
- name: setup environment | ||
uses: flucoma/actions/env@v2 | ||
|
||
- name: build toolkit | ||
uses: flucoma/actions/max@v2 | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
|
@@ -82,28 +46,11 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: install ninja | ||
run: brew install ninja | ||
|
||
- name: get max sdk | ||
run: git clone --recursive https://github.com/Cycling74/max-sdk.git sdk | ||
|
||
- name: make build directory | ||
run: mkdir -p build | ||
|
||
- name: create externals folder | ||
run: mkdir -p externals | ||
- 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: cmake | ||
run: cmake -GNinja -DFLUID_PATH=../core -DMAX_SDK_PATH=../sdk/ -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" .. | ||
working-directory: build | ||
|
||
- name: install | ||
run: ninja install | ||
working-directory: build | ||
- name: build toolkit | ||
uses: flucoma/actions/max@v2 | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
|