-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
29 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,57 +11,13 @@ jobs: | |
- uses: ./.github/actions/latest-mac-toolchain | ||
- name: build | ||
run: ./tools/build-ossia-max.sh clean silent release | ||
- name: Code Signing | ||
shell: bash | ||
env: | ||
|
||
- uses: ./.github/actions/mac-codesign | ||
with: | ||
path-to-sign: ossia | ||
MAC_CERT_B64: ${{ secrets.MAC_CERT_B64 }} | ||
MAC_CERT_PASSWORD: ${{ secrets.MAC_CERT_PASSWORD }} | ||
MAC_ALTOOL_PASSWORD: ${{ secrets.MAC_ALTOOL_PASSWORD }} | ||
run: | | ||
# Setup codesigning | ||
# Thanks https://www.update.rocks/blog/osx-signing-with-travis/ | ||
( | ||
set +x | ||
KEY_CHAIN=build.keychain | ||
echo "$MAC_CERT_B64" | base64 --decode > ossia-cert.p12 | ||
security create-keychain -p azure $KEY_CHAIN | ||
security default-keychain -s $KEY_CHAIN | ||
security unlock-keychain -p azure $KEY_CHAIN | ||
security import ossia-cert.p12 -k $KEY_CHAIN -P "$MAC_CERT_PASSWORD" -T /usr/bin/codesign; | ||
security set-key-partition-list -S apple-tool:,apple: -s -k azure $KEY_CHAIN | ||
rm -rf *.p12 | ||
) | ||
security unlock-keychain -p azure build.keychain | ||
echo "Checking codesigning" | ||
find . -name libossia-max.dylib | ||
( | ||
cd artifacts | ||
echo "===== Content of artifacts" | ||
ls | ||
echo "===== Content of artifacts/ossia/support" | ||
ls ossia/support | ||
echo "===== Content of artifacts/ossia/externals" | ||
ls ossia/externals | ||
codesign --force --timestamp --sign "ossia.io" ossia/support/libossia-max.dylib | ||
for mxo in ossia/externals/*.mxo; | ||
do | ||
codesign --force --timestamp --sign "ossia.io" $mxo | ||
done | ||
ditto -c -k --sequesterRsrc --keepParent ossia ossia-max.zip | ||
xcrun altool \ | ||
--notarize-app \ | ||
-t osx \ | ||
-f "ossia-max.zip" \ | ||
--primary-bundle-id "io.ossia.ossia-max" \ | ||
-u [email protected] -p "@env:MAC_ALTOOL_PASSWORD" | ||
rm ossia-max.zip | ||
) | ||
- name: Archive Max Package | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,44 +22,13 @@ jobs: | |
cmake --build build | ||
cmake --build build --target install | ||
- name: Code Signing | ||
shell: bash | ||
env: | ||
- uses: ./.github/actions/mac-codesign | ||
with: | ||
path-to-sign: "install/ossia-pd-package" | ||
MAC_CERT_B64: ${{ secrets.MAC_CERT_B64 }} | ||
MAC_CERT_PASSWORD: ${{ secrets.MAC_CERT_PASSWORD }} | ||
MAC_ALTOOL_PASSWORD: ${{ secrets.MAC_ALTOOL_PASSWORD }} | ||
run: | | ||
# Setup codesigning | ||
# Thanks https://www.update.rocks/blog/osx-signing-with-travis/ | ||
( | ||
set +x | ||
KEY_CHAIN=build.keychain | ||
echo "$MAC_CERT_B64" | base64 --decode > ossia-cert.p12 | ||
security create-keychain -p azure $KEY_CHAIN | ||
security default-keychain -s $KEY_CHAIN | ||
security unlock-keychain -p azure $KEY_CHAIN | ||
security import ossia-cert.p12 -k $KEY_CHAIN -P "$MAC_CERT_PASSWORD" -T /usr/bin/codesign; | ||
security set-key-partition-list -S apple-tool:,apple: -s -k azure $KEY_CHAIN | ||
rm -rf *.p12 | ||
) | ||
security unlock-keychain -p azure build.keychain | ||
( | ||
cd install/ossia-pd-package | ||
codesign --force --timestamp --sign "ossia.io" ossia/ossia.d_* | ||
zip ossia-pd.zip ossia/ossia.d_* | ||
xcrun altool \ | ||
--notarize-app \ | ||
-t osx \ | ||
-f "ossia-pd.zip" \ | ||
--primary-bundle-id "io.ossia.ossia-pd" \ | ||
-u [email protected] -p "@env:MAC_ALTOOL_PASSWORD" | ||
rm ossia-pd.zip | ||
) | ||
|
||
- name: Archive Package | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|
@@ -92,11 +61,8 @@ jobs: | |
run: | | ||
sudo apt-get update -yqq | ||
sudo apt-get upgrade -yqq | ||
sudo apt-get install -yqq build-essential gcc-11 g++-11 ninja-build libavahi-client-dev | ||
sudo apt-get install -yqq build-essential ninja-build libavahi-client-dev | ||
- name: Build | ||
env: | ||
CC: gcc-11 | ||
CXX: g++-11 | ||
run: | | ||
cmake -B build -S ${GITHUB_WORKSPACE} -GNinja -DOSSIA_CI=1 -DCMAKE_BUILD_TYPE=Release -DOSSIA_PD_ONLY=1 -DCMAKE_INSTALL_PREFIX=install | ||
cmake --build build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,44 +22,14 @@ jobs: | |
cmake --build build | ||
cmake --build build --target install | ||
- name: Code Signing | ||
shell: bash | ||
env: | ||
- uses: ./.github/actions/mac-codesign | ||
with: | ||
path-to-sign: "install/ossia-pd-package" | ||
MAC_CERT_B64: ${{ secrets.MAC_CERT_B64 }} | ||
MAC_CERT_PASSWORD: ${{ secrets.MAC_CERT_PASSWORD }} | ||
MAC_ALTOOL_PASSWORD: ${{ secrets.MAC_ALTOOL_PASSWORD }} | ||
run: | | ||
# Setup codesigning | ||
# Thanks https://www.update.rocks/blog/osx-signing-with-travis/ | ||
( | ||
set +x | ||
KEY_CHAIN=build.keychain | ||
echo "$MAC_CERT_B64" | base64 --decode > ossia-cert.p12 | ||
security create-keychain -p azure $KEY_CHAIN | ||
security default-keychain -s $KEY_CHAIN | ||
security unlock-keychain -p azure $KEY_CHAIN | ||
security import ossia-cert.p12 -k $KEY_CHAIN -P "$MAC_CERT_PASSWORD" -T /usr/bin/codesign; | ||
security set-key-partition-list -S apple-tool:,apple: -s -k azure $KEY_CHAIN | ||
rm -rf *.p12 | ||
) | ||
security unlock-keychain -p azure build.keychain | ||
( | ||
cd install/ossia-pd-package | ||
codesign --force --timestamp --sign "ossia.io" ossia/ossia.d_* | ||
zip ossia-pd.zip ossia/ossia.d_* | ||
xcrun altool \ | ||
--notarize-app \ | ||
-t osx \ | ||
-f "ossia-pd.zip" \ | ||
--primary-bundle-id "io.ossia.ossia-pd" \ | ||
-u [email protected] -p "@env:MAC_ALTOOL_PASSWORD" | ||
rm ossia-pd.zip | ||
) | ||
|
||
- name: Archive Package | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters