Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-german committed Apr 11, 2024
1 parent a80ef5d commit 9475021
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 45 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
name: Build Linux
on:
workflow_dispatch:
pull_request:
# push:
# branches:
# - main
push:
branches:
- main
env:
BUILD_TYPE: Release
jobs:
Expand Down Expand Up @@ -36,16 +34,9 @@ jobs:
path: |
${{github.workspace}}/build/blocks_artefacts/Release/Standalone
${{github.workspace}}/build/blocks_artefacts/Release/VST3
# upload-to-s3:
# uses: ./.github/workflows/upload-to-s3.yml
# with:
# workflow-name: build-linux.yml
# secrets: inherit
# needs: build
upload-to-s3:
needs: build
uses: ./.github/workflows/upload-to-s3.yml
secrets: inherit
with:
file-name: blocks_linux
final-file-name: blocks_linux
26 changes: 12 additions & 14 deletions .github/workflows/build-macos-13.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
name: Build macOS 13 (Intel)
on:
workflow_dispatch:
pull_request:
# push:
# branches:
# - main
push:
branches:
- main
env:
BUILD_TYPE: Release
jobs:
Expand Down Expand Up @@ -51,18 +49,18 @@ jobs:
mv "/Users/runner/work/blocks/blocks/build/blocks_artefacts/Release/Standalone/blocks.app" packaging/dmg
# Run appdmg to create the .dmg
cd packaging && appdmg dmg.json blocks.dmg
codesign -s "${{ secrets.DEVELOPER_ID_APPLICATION }}" --timestamp -i com.soonth.blocks --force blocks.dmg
xcrun notarytool submit blocks.dmg --apple-id ${{ secrets.NOTARIZATION_USERNAME }} --password ${{ secrets.NOTARIZATION_PASSWORD }} --team-id ${{ secrets.TEAM_ID }} --wait
xcrun stapler staple blocks.dmg
cd packaging && appdmg dmg.json blocks_mac_intel.dmg
codesign -s "${{ secrets.DEVELOPER_ID_APPLICATION }}" --timestamp -i com.soonth.blocks --force blocks_mac_intel.dmg
xcrun notarytool submit blocks_mac_intel.dmg --apple-id ${{ secrets.NOTARIZATION_USERNAME }} --password ${{ secrets.NOTARIZATION_PASSWORD }} --team-id ${{ secrets.TEAM_ID }} --wait
xcrun stapler staple blocks_mac_intel.dmg
- name: Upload built files
uses: actions/[email protected]
with:
name: blocks.dmg
path: packaging/blocks.dmg
name: blocks_mac_intel.dmg
path: packaging/blocks_mac_intel.dmg
upload-to-s3:
uses: ./.github/workflows/upload-to-s3.yml
with:
workflow-name: build-macos-13.yml
secrets: inherit
needs: build
needs: build
with:
file-name: blocks_mac_intel.dmg
9 changes: 4 additions & 5 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: Build macOS (M1)
on:
workflow_dispatch:
pull_request:
# push:
# branches:
# - main
push:
branches:
- main
env:
BUILD_TYPE: Release
jobs:
Expand Down Expand Up @@ -65,5 +65,4 @@ jobs:
uses: ./.github/workflows/upload-to-s3.yml
secrets: inherit
with:
file-name: blocks_mac.dmg
final-file-name: blocks_mac
file-name: blocks_mac.dmg
13 changes: 6 additions & 7 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build Windows
on:
workflow_dispatch:
pull_request:
# push:
# branches:
# - main
push:
branches:
- main
env:
BUILD_TYPE: Release
jobs:
Expand All @@ -26,14 +26,13 @@ jobs:
- name: Upload built files
uses: actions/[email protected]
with:
name: blocks
name: blocks_win
path: |
D:/a/blocks/blocks/build/blocks_artefacts/Release/VST3/blocks.vst3/Contents/x86_64-win/blocks.vst3
D:/a/blocks/blocks/build/blocks_artefacts/Release/Standalone/blocks.exe
upload-to-s3:
needs: build
uses: ./.github/workflows/upload-to-s3.yml
secrets: inherit
with:
file-name: block
final-file-name: blocks_windows
with:
file-name: blocks_win
7 changes: 0 additions & 7 deletions .github/workflows/upload-to-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
file-name:
required: true
type: string
final-file-name:
required: true
type: string
jobs:
upload-to-s3:
runs-on: ubuntu-latest
Expand All @@ -16,10 +13,6 @@ jobs:
run: pwd
- name: Download build-output artifact
uses: actions/download-artifact@v4
# - name: Rename file
# run: mv ${{ inputs.file-name }} ${{ inputs.final-file-name }}
# - name: Delete old file
# run: rm -f ${{ inputs.file-name }}
- name: zip
uses: montudor/action-zip@v1
with:
Expand Down

0 comments on commit 9475021

Please sign in to comment.