Skip to content

Commit

Permalink
Include extension in release (macOS only)
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Dec 21, 2023
1 parent 3dfbd24 commit 03a7335
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
os: windows-latest
toolchain-suffix: x86_64-pc-windows-msvc
lib-file-name: realearn.dll
extension-file-name: ""
target: x86_64-pc-windows-msvc
use-cross: false
profile: release
Expand All @@ -25,6 +26,7 @@ jobs:
os: windows-latest
toolchain-suffix: i686-pc-windows-msvc
lib-file-name: realearn.dll
extension-file-name: ""
target: i686-pc-windows-msvc
use-cross: false
profile: release-llvm-out-of-memory-fix
Expand All @@ -33,6 +35,7 @@ jobs:
os: macos-latest
toolchain-suffix: x86_64-apple-darwin
lib-file-name: librealearn.dylib
extension-file-name: libreaper_helgobox.dylib
target: x86_64-apple-darwin
use-cross: false
profile: release
Expand All @@ -41,6 +44,7 @@ jobs:
os: macos-latest
toolchain-suffix: x86_64-apple-darwin
lib-file-name: librealearn.dylib
extension-file-name: libreaper_helgobox.dylib
target: aarch64-apple-darwin
use-cross: false
profile: release
Expand All @@ -49,6 +53,7 @@ jobs:
os: ubuntu-20.04
toolchain-suffix: x86_64-unknown-linux-gnu
lib-file-name: librealearn.so
extension-file-name: ""
target: x86_64-unknown-linux-gnu
use-cross: false
strip-cmd: strip
Expand All @@ -58,6 +63,7 @@ jobs:
# os: ubuntu-22.04
# toolchain-suffix: x86_64-unknown-linux-gnu
# lib-file-name: librealearn.so
# extension-file-name: ""
# target: aarch64-unknown-linux-gnu
# use-cross: true
# strip-cmd: aarch64-linux-gnu-strip
Expand All @@ -67,6 +73,7 @@ jobs:
# os: ubuntu-22.04
# toolchain-suffix: x86_64-unknown-linux-gnu
# lib-file-name: librealearn.so
# extension-file-name: ""
# target: armv7-unknown-linux-gnueabihf
# use-cross: true
# strip-cmd: arm-linux-gnueabihf-strip
Expand Down Expand Up @@ -144,6 +151,13 @@ jobs:
with:
name: ${{ matrix.artifact }}
path: target/${{ matrix.target }}/${{ matrix.profile }}/${{ matrix.lib-file-name }}
# Upload extension (macOS only for now)
- name: Upload extension to artifact
if: matrix.extension-file-name != ''
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.artifact }}
path: target/${{ matrix.target }}/${{ matrix.profile }}/${{ matrix.extension-file-name }}
# Upload debug symbols (all)
- name: Upload Windows debug symbols to artifact
if: matrix.os == 'windows-latest'
Expand Down Expand Up @@ -202,7 +216,7 @@ jobs:
asset_path: ./windows-i686/realearn.dll
asset_name: realearn-windows-i686.dll
asset_content_type: application/octet-stream
- name: Upload macos-x86_64 release artifact
- name: Upload macos-x86_64 release artifact 1
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -211,7 +225,16 @@ jobs:
asset_path: ./macos-x86_64/librealearn.dylib
asset_name: realearn-macos-x86_64.vst.dylib
asset_content_type: application/octet-stream
- name: Upload macos-aarch64 release artifact
- name: Upload macos-x86_64 release artifact 2
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./macos-x86_64/libreaper_helgobox.dylib
asset_name: reaper_helgobox.dylib
asset_content_type: application/octet-stream
- name: Upload macos-aarch64 release artifact 1
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -220,6 +243,15 @@ jobs:
asset_path: ./macos-aarch64/librealearn.dylib
asset_name: realearn-macos-aarch64.vst.dylib
asset_content_type: application/octet-stream
- name: Upload macos-aarch64 release artifact 2
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./macos-aarch64/libreaper_helgobox.dylib
asset_name: reaper_helgobox.dylib
asset_content_type: application/octet-stream
- name: Upload linux-x86_64 release artifact
uses: actions/upload-release-asset@v1
env:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion main/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "realearn"
version = "2.16.0-pre.5"
version = "2.16.0-pre.6"
authors = ["Benjamin Klum <[email protected]>"]
edition = "2021"
build = "build.rs"
Expand Down

0 comments on commit 03a7335

Please sign in to comment.