Fix macOS packaging by restoring previous state

This commit is contained in:
redtide 2023-05-29 09:18:48 +02:00
parent 2752c8c1c8
commit ad052fe0c1
No known key found for this signature in database

View file

@ -21,7 +21,7 @@ env:
# working-directory: ${{ github.workspace }} # working-directory: ${{ github.workspace }}
jobs: jobs:
clang_tidy: clang_tidy:
# if: ${{ false }} if: ${{ false }}
name: Clang Tidy name: Clang Tidy
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
@ -35,7 +35,7 @@ jobs:
run: ./scripts/run_clang_tidy.sh run: ./scripts/run_clang_tidy.sh
build_for_linux: build_for_linux:
# if: ${{ false }} if: ${{ false }}
name: Linux Ubuntu 22.04 name: Linux Ubuntu 22.04
runs-on: ubuntu-22.04 # abseil (libabsl) is not available in 20.04 repository runs-on: ubuntu-22.04 # abseil (libabsl) is not available in 20.04 repository
steps: steps:
@ -146,28 +146,29 @@ jobs:
) )
cmake "${options[@]}" cmake "${options[@]}"
- name: Package bundles - name: Package bundles
if: ${{ github.ref_type == 'tag' }} # if: ${{ github.ref_type == 'tag' }}
run: ./scripts/package-osx-bundles.sh run: ./scripts/package-osx-bundles.sh
- name: Create installer - name: Create installer
if: ${{ github.ref_type == 'tag' }} # if: ${{ github.ref_type == 'tag' }}
working-directory: ${{ github.workspace }}/build
run: | run: |
options=( options=(
--distribution ${{ github.workspace }}/scripts/plugin.pkg/package.xml --distribution ${{ github.workspace }}/scripts/plugin.pkg/package.xml
--identifier "sfz.tools.sfizz" --identifier "sfz.tools.sfizz"
--package-path "${{ github.workspace }}" --package-path "${{ github.workspace }}/build"
--version 0 --version 0
${{ env.install_name }}.pkg ${{ env.install_name }}.pkg
) )
productbuild "${options[@]}" productbuild "${options[@]}"
- name: Upload - name: Upload
if: ${{ github.ref_type == 'tag' }} # if: ${{ github.ref_type == 'tag' }}
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: macOS package name: macOS package
path: "${{ github.workspace }}/${{ env.install_name }}.pkg" path: "${{ github.workspace }}/build/${{ env.install_name }}.pkg"
build_for_windows: build_for_windows:
# if: ${{ false }} if: ${{ false }}
name: Windows 2019 name: Windows 2019
runs-on: windows-2019 runs-on: windows-2019
strategy: strategy: