Skip to content

Commit

Permalink
release action: don't use dash in bundle name, improve step names
Browse files Browse the repository at this point in the history
  • Loading branch information
greatest-ape committed Apr 28, 2022
1 parent 533a727 commit af09f09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install baseview dependencies
- name: Install baseview dependencies (Linux)
run: |
sudo apt update
sudo apt install libx11-xcb-dev libxcb-dri2-0-dev libgl1-mesa-dev libxcb-icccm4-dev libxcursor-dev
if: contains(matrix.os, 'ubuntu')

# Required for bindgen on Windows, see https://github.com/rust-lang/rust-bindgen/issues/1797
- name: Install LLVM and Clang
- name: Install LLVM and Clang (Windows)
uses: KyleMayes/install-llvm-action@v1
if: contains(matrix.os, 'windows')
with:
version: "14.0"
directory: ${{ runner.temp }}/llvm
- name: Set LIBCLANG_PATH
- name: Set LIBCLANG_PATH (Windows)
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
if: contains(matrix.os, 'windows')

Expand All @@ -68,23 +68,23 @@ jobs:

- name: Create release file (macOS)
run: |
bash ./scripts/macos/bundle.sh "./target/release/liboctasine.dylib" "OctaSine-$OCTASINE_SEMVER_VERSION"
bash ./scripts/unix/package.sh "OctaSine-$OCTASINE_SEMVER_VERSION.vst" "../releases/OctaSine-${{ steps.get_version.outputs.VERSION }}-macOS-Intel"
bash ./scripts/macos/bundle.sh "./target/release/liboctasine.dylib" "OctaSine $OCTASINE_SEMVER_VERSION"
bash ./scripts/unix/package.sh "OctaSine $OCTASINE_SEMVER_VERSION.vst" "../releases/OctaSine-${{ steps.get_version.outputs.VERSION }}-macOS-Intel"
if: contains(matrix.os, 'macos')

- name: Create release file (Windows)
run: |
New-Item "tmp\OctaSine" -ItemType Directory -ea 0
Copy-Item "LICENSE" -Destination "tmp\OctaSine\LICENSE.txt"
Copy-Item "target\release\octasine.dll" -Destination "tmp\OctaSine\OctaSine-$OCTASINE_SEMVER_VERSION.dll"
Copy-Item "target\release\octasine.dll" -Destination "tmp\OctaSine\OctaSine $OCTASINE_SEMVER_VERSION.dll"
Compress-Archive -Path "tmp\OctaSine" -DestinationPath releases\OctaSine-${{ steps.get_version.outputs.VERSION }}-Windows.zip -CompressionLevel Optimal
if: contains(matrix.os, 'windows')

- name: Create release file (Linux)
run: |
mkdir -p tmp
cp "./target/release/liboctasine.so" "tmp/OctaSine-$OCTASINE_SEMVER_VERSION.so"
bash ./scripts/unix/package.sh "OctaSine-$OCTASINE_SEMVER_VERSION.so" "../releases/OctaSine-${{ steps.get_version.outputs.VERSION }}-Ubuntu-20_04"
cp "./target/release/liboctasine.so" "tmp/OctaSine $OCTASINE_SEMVER_VERSION.so"
bash ./scripts/unix/package.sh "OctaSine $OCTASINE_SEMVER_VERSION.so" "../releases/OctaSine-${{ steps.get_version.outputs.VERSION }}-Ubuntu-20_04"
if: contains(matrix.os, 'ubuntu')

- uses: ncipollo/release-action@v1
Expand Down
2 changes: 1 addition & 1 deletion scripts/macos/bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ if [[ -z $1 ]]; then
echo "Usage: $0 [dylib path] [bundle name]"
echo "Example: $0 ./target/release/liboctasine.dylib OctaSine"
else
./contrib/osx_vst_bundler.sh "$2" $1
./contrib/osx_vst_bundler.sh "$2" "$1"
fi

0 comments on commit af09f09

Please sign in to comment.