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.
update nightly workflow on main with manual dispatch
- Loading branch information
Showing
1 changed file
with
31 additions
and
100 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 |
---|---|---|
@@ -1,159 +1,90 @@ | ||
name: Nightly Releases | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ dev, ci/automatic-building ] | ||
pull_request: | ||
branches: [ dev ] | ||
branches: [ dev, ci/** ] | ||
|
||
jobs: | ||
docs: | ||
runs-on: macos-11 | ||
runs-on: ubuntu-latest | ||
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: install python dependencies | ||
run: pip3 install pyyaml docutils jinja2 | ||
|
||
- name: make build directory | ||
run: mkdir -p build | ||
|
||
- name: create externals folder | ||
run: mkdir -p externals | ||
|
||
- name: clone latest flucoma-core | ||
run: git clone --branch fix/blas-compilation-settings https://github.com/jamesb93/flucoma-core.git core | ||
|
||
- 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 | ||
- uses: flucoma/actions/env@v4 | ||
- uses: flucoma/actions/docs@v4 | ||
with: | ||
target: MAKE_MAX_REF | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: docsbuild | ||
path: build/max_ref | ||
|
||
winbuild: | ||
runs-on: windows-latest | ||
|
||
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 fix/blas-compilation-settings https://github.com/jamesb93/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: see | ||
run: ls | ||
working-directory: "release-packaging/Fluid Corpus Manipulation/" | ||
- uses: actions/checkout@v2 | ||
- uses: flucoma/actions/env@v4 | ||
- uses: flucoma/actions/max@v4 | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: winbuild | ||
path: "release-packaging/Fluid Corpus Manipulation/externals/" | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: winbuild | ||
path: "release-packaging/FluidCorpusManipulation/externals/" | ||
|
||
macbuild: | ||
runs-on: macos-11 | ||
|
||
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: clone latest flucoma-core | ||
run: git clone --branch fix/blas-compilation-settings https://github.com/jamesb93/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 | ||
- uses: flucoma/actions/env@v4 | ||
- uses: flucoma/actions/max@v4 | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: macbuild | ||
path: release-packaging/Fluid\ Corpus\ Manipulation/ | ||
path: release-packaging/FluidCorpusManipulation/ | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: [winbuild, macbuild, docs] | ||
|
||
steps: | ||
- name: make parent folder | ||
run : mkdir -p "Fluid Corpus Manipulation" | ||
run : mkdir -p "FluidCorpusManipulation" | ||
|
||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: macbuild | ||
path: "Fluid Corpus Manipulation" | ||
path: "FluidCorpusManipulation" | ||
|
||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: winbuild | ||
path: "Fluid Corpus Manipulation/externals" | ||
path: "FluidCorpusManipulation/externals" | ||
|
||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: docsbuild | ||
path: "Fluid Corpus Manipulation/docs" | ||
path: "FluidCorpusManipulation/docs" | ||
|
||
- name: zip | ||
run: zip -r FluCoMa-Max-nightly.zip "Fluid Corpus Manipulation" | ||
run: zip -r FluCoMa-Max-nightly.zip "FluidCorpusManipulation" | ||
|
||
- name: see | ||
run: ls | ||
|
||
- uses: dev-drprasad/[email protected] | ||
with: | ||
delete_release: true # default: false | ||
tag_name: 1.0.0-nightly # tag name to delete | ||
tag_name: nightly # tag name to delete | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: package and upload | ||
uses: svenstaro/upload-release-action@v2 | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
release_name: FluCoMa Max Nightly Build | ||
prerelease: true | ||
name: FluCoMa Max Nightly Release | ||
body: "This is a nightly build of the FluCoMa Max package. As such, be warned there may be bugs or other unexpected behaviour. The build hash is ${{ github.sha }}" | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: FluCoMa-Max-nightly.zip | ||
asset_name: FluCoMa-Max-nightly.zip | ||
tag: 1.0.0-nightly | ||
overwrite: true | ||
|
||
files: FluCoMa-Max-nightly.zip | ||
prerelease: true | ||
tag_name: nightly | ||
draft: false |