|
|
|
@ -2,60 +2,46 @@ name: Release
|
|
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
|
|
|
|
base:
|
|
|
|
|
|
|
|
description: 'Base branch to deploy core from'
|
|
|
|
|
|
|
|
required: false
|
|
|
|
|
|
|
|
default: 'main'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
docs:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: flucoma/actions/env@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
branch: ${{ github.event.inputs.base }}
|
|
|
|
|
|
|
|
- uses: flucoma/actions/docs@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
target: MAKE_SC_REF
|
|
|
|
|
|
|
|
branch: ${{ github.event.inputs.base }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
name: docs
|
|
|
|
|
|
|
|
path: build/sc_ref
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
macbuild:
|
|
|
|
macbuild:
|
|
|
|
runs-on: macos-11
|
|
|
|
runs-on: macos-11
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: flucoma/actions/env@v4
|
|
|
|
- uses: flucoma/actions/env@v5
|
|
|
|
|
|
|
|
- uses: flucoma/actions/sc@v5
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
branch: ${{ github.event.inputs.base }}
|
|
|
|
branch: origin/main
|
|
|
|
- uses: flucoma/actions/sc@v4
|
|
|
|
|
|
|
|
|
|
|
|
- name: compress archive
|
|
|
|
|
|
|
|
run: zip -r FluCoMa-SC-Mac-nightly.zip FluidCorpusManipulation
|
|
|
|
|
|
|
|
working-directory: install
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: macbuild
|
|
|
|
name: macbuild
|
|
|
|
path: install
|
|
|
|
path: install/FluCoMa-SC-Mac-nightly.zip
|
|
|
|
|
|
|
|
|
|
|
|
winbuild:
|
|
|
|
winbuild:
|
|
|
|
runs-on: windows-latest
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: flucoma/actions/env@v4
|
|
|
|
- uses: flucoma/actions/env@v5
|
|
|
|
|
|
|
|
- uses: flucoma/actions/sc@v5
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
branch: ${{ github.event.inputs.base }}
|
|
|
|
branch: origin/main
|
|
|
|
- uses: flucoma/actions/sc@v4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: remove pdb files
|
|
|
|
- name: remove pdb files
|
|
|
|
run: Remove-Item install -Recurse -Include *.pdb
|
|
|
|
run: Remove-Item install -Recurse -Include *.pdb
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
- name: compress archive
|
|
|
|
|
|
|
|
run: 7z a FluCoMa-SC-Windows-nightly.zip FluidCorpusManipulation
|
|
|
|
|
|
|
|
working-directory: install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: winbuild
|
|
|
|
name: winbuild
|
|
|
|
path: install
|
|
|
|
path: install/FluCoMa-SC-Windows-nightly.zip
|
|
|
|
|
|
|
|
|
|
|
|
linuxbuild:
|
|
|
|
linuxbuild:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
@ -63,15 +49,19 @@ jobs:
|
|
|
|
version: ${{ steps.get-version.outputs.version }}
|
|
|
|
version: ${{ steps.get-version.outputs.version }}
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: flucoma/actions/env@v4
|
|
|
|
- uses: flucoma/actions/env@v5
|
|
|
|
|
|
|
|
- uses: flucoma/actions/sc@v5
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
branch: ${{ github.event.inputs.base }}
|
|
|
|
branch: origin/main
|
|
|
|
- uses: flucoma/actions/sc@v4
|
|
|
|
|
|
|
|
|
|
|
|
- name: compress archive
|
|
|
|
|
|
|
|
run: tar -zcvf FluCoMa-SC-Linux-nightly.tar.gz FluidCorpusManipulation
|
|
|
|
|
|
|
|
working-directory: install
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: linuxbuild
|
|
|
|
name: linuxbuild
|
|
|
|
path: install
|
|
|
|
path: install/FluCoMa-SC-Linux-nightly.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
- id: get-version
|
|
|
|
- id: get-version
|
|
|
|
run: echo "::set-output name=version::$(cat flucoma.version.rc)"
|
|
|
|
run: echo "::set-output name=version::$(cat flucoma.version.rc)"
|
|
|
|
@ -79,51 +69,21 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
release:
|
|
|
|
release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: [macbuild, winbuild, linuxbuild, docs]
|
|
|
|
needs: [macbuild, winbuild, linuxbuild]
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/download-artifact@v2
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
name: docs
|
|
|
|
|
|
|
|
path: docs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/download-artifact@v2
|
|
|
|
- uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: macbuild
|
|
|
|
name: macbuild
|
|
|
|
path: mac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: copy docs to mac
|
|
|
|
|
|
|
|
run: mkdir -p mac/FluidCorpusManipulation/HelpSource && cp -r docs/* mac/FluidCorpusManipulation/HelpSource
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: compress win
|
|
|
|
|
|
|
|
run: zip -r ../FluCoMa-SC-Mac.zip .
|
|
|
|
|
|
|
|
working-directory: mac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/download-artifact@v2
|
|
|
|
- uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: winbuild
|
|
|
|
name: winbuild
|
|
|
|
path: win
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: copy docs to win
|
|
|
|
|
|
|
|
run: mkdir -p win/FluidCorpusManipulation/HelpSource && cp -r docs/* win/FluidCorpusManipulation/HelpSource
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: compress win
|
|
|
|
|
|
|
|
run: zip -r ../FluCoMa-SC-Windows.zip .
|
|
|
|
|
|
|
|
working-directory: win
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/download-artifact@v2
|
|
|
|
- uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: linuxbuild
|
|
|
|
name: linuxbuild
|
|
|
|
|
|
|
|
|
|
|
|
path: linux
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: copy docs to linux
|
|
|
|
|
|
|
|
run: mkdir -p linux/FluidCorpusManipulation/HelpSource && cp -r docs/* linux/FluidCorpusManipulation/HelpSource
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: compress linux
|
|
|
|
|
|
|
|
run: zip -r ../FluCoMa-SC-Linux.zip .
|
|
|
|
|
|
|
|
working-directory: linux
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: package and upload
|
|
|
|
- name: package and upload
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
|