Notarize macOS executable #454
Workflow file for this run
This file contains hidden or 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
| name: Create Package | |
| on: [push, workflow_dispatch] | |
| jobs: | |
| build-macos: | |
| name: MacOS Univeral | |
| runs-on: macos-15-intel | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Check for Code-Signing secrets | |
| id: secret-check | |
| shell: bash | |
| run: | | |
| if [ "${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}" != '' ]; then | |
| echo "available=true" >> $GITHUB_OUTPUT; | |
| else | |
| echo "available=false" >> $GITHUB_OUTPUT; | |
| fi | |
| - name: Import Code-Signing Certificates | |
| uses: figleafteam/import-codesign-certs@v2 | |
| if: ${{ steps.secret-check.outputs.available == 'true' }} | |
| with: | |
| p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }} | |
| p12-password: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }} | |
| - name: Install dependencies | |
| working-directory: ${{github.workspace}} | |
| run: brew install dfu-util | |
| - name: Setup Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: "pip" | |
| - name: Run Packaging Script | |
| working-directory: ${{github.workspace}} | |
| env: | |
| AC_USERNAME: ${{ secrets.AC_USERNAME }} | |
| AC_PASSWORD: ${{ secrets.AC_PASSWORD }} | |
| run: CLEAR_INTL=1 ./build.sh | |
| - name: Compress Artifacts | |
| working-directory: ${{github.workspace}} | |
| run: tar -cJf Heavy-MacOS-Universal.tar.xz Toolchain | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Heavy-MacOS-Universal | |
| path: ${{github.workspace}}/Heavy-MacOS-Universal.tar.xz | |
| build-windows: | |
| name: Windows | |
| runs-on: windows-2022 | |
| steps: | |
| - name: Install Packages | |
| run: choco install make archiver -y | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: "pip" | |
| - name: Run Packaging Script | |
| working-directory: ${{github.workspace}} | |
| run: ./build.bat | |
| - name: Compress Artifacts | |
| working-directory: ${{github.workspace}} | |
| run: arc archive Heavy-Win64.tar.xz Toolchain | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Heavy-Win64 | |
| path: ${{github.workspace}}/Heavy-Win64.tar.xz | |
| build-linux: | |
| name: Linux-x64 | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Install Dependencies (apt) | |
| run: sudo apt update && sudo apt install -y git binutils curl tar gzip xz-utils make patchelf libusb-dev build-essential rsync wget dfu-util | |
| #deps for build-anywhere: csh gawk autoconf automake autotools-dev wget m4 flex bison texinfo unzip help2man meson gperf lzip libtool-bin patch ninja-build libstdc++6 libncurses5-dev | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| env: | |
| PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
| - name: Setup Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: "pip" | |
| - name: Run Packaging Script | |
| working-directory: ${{github.workspace}} | |
| run: bash ./build.sh | |
| - name: Compress Artifacts | |
| working-directory: ${{github.workspace}} | |
| run: tar -cJf Heavy-Linux-x64.tar.xz Toolchain | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Heavy-Linux-x64 | |
| path: ${{github.workspace}}/Heavy-Linux-x64.tar.xz |