diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index e1e4eed7d..ffe2103ff 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -1,113 +1,47 @@ 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 @@ -115,25 +49,25 @@ jobs: 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 @@ -141,19 +75,16 @@ jobs: - uses: dev-drprasad/delete-tag-and-release@v0.2.0 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