Skip to content

Commit

Permalink
Towards github actions, step 2
Browse files Browse the repository at this point in the history
Move the azure build for linux into a script also.
  • Loading branch information
baconpaul committed Aug 21, 2024
1 parent c889bbc commit 438fe71
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ jobs:
run: |
STOCHAS_VERSION=NIGHTLY.PR ./scripts/mac-build.sh
- name: Build pull request version (others)
if: ${{ matrix.os }} != 'macos-latest'
- name: Build pull request version (linux)
if: ${{ matrix.os }} == 'ubuntu-latest'
run: |
STOCHAS_VERSION=NIGHTLY.PR ./scripts/linux-build.sh
- name: Build pull request version (windows)
if: ${{ matrix.os }} == 'windows-latest'
run: |
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug
cmake --build ./build --config Debug --target bstep-products --parallel 3
Expand Down
11 changes: 11 additions & 0 deletions scripts/linux-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
cmake -Bbuild -DSTOCHAS_VERSION=${STOCHAS_VERSION}
cmake --build ignore/build --config Release
LINARCH=`uname -m`
GH=`git log -1 --format=%h`
NM=stochas-${STOCHAS_VERSION}.${GH}.linux.tgz
mkdir -p ignore/build/product/
mkdir -p ignore/build/Stochas/Standalone
cp -r ignore/build/stochas_artefacts/VST3/* build/Stochas
cp -r ignore/build/stochas_artefacts/CLAP/* build/Stochas
cp -r ignore/build/stochas_artefacts/Standalone/* build/Stochas/Standalone
tar cvzf "build/product/${NM}" -C build Stochas

0 comments on commit 438fe71

Please sign in to comment.