Skip to content

v0.0.3

v0.0.3 #9

Workflow file for this run

name: Release
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: write
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
build-macos:
runs-on: macos-14
timeout-minutes: 180
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ./.github/actions/setup-build
- name: Resolve release version
id: version
shell: bash
run: |
VERSION="${{ github.event.release.tag_name }}"
if [ -z "$VERSION" ]; then
VERSION="${{ github.ref_name }}"
fi
PKG_VERSION="${VERSION#v}"
echo "tag=$VERSION" >> "$GITHUB_OUTPUT"
echo "pkg=$PKG_VERSION" >> "$GITHUB_OUTPUT"
- name: Configure
shell: bash
run: |
source .venv/bin/activate
cmake . -B build -DCMAKE_POLICY_VERSION_MINIMUM=3.5
- name: Build and stage AUv3 app
shell: bash
run: |
source .venv/bin/activate
cmake --build build --target package_mrt2_au -j"$(sysctl -n hw.ncpu)"
- name: Reclaim disk space before packaging
shell: bash
run: |
chmod +x scripts/ci-reclaim-disk.sh
./scripts/ci-reclaim-disk.sh
- name: Build .pkg and .dmg release artefacts
shell: bash
run: |
chmod +x scripts/build-installer-pkg.sh
./scripts/build-installer-pkg.sh \
--version "${{ steps.version.outputs.pkg }}" \
--sign-app
- name: Verify release artefacts
shell: bash
run: |
ver="${{ steps.version.outputs.pkg }}"
pkg="release-artifacts/MRT2-AU3-${ver}-macOS-Installer.pkg"
dmg="release-artifacts/MRT2-AU3-${ver}-macOS.dmg"
test -f "$pkg"
test -f "$dmg"
ls -lh release-artifacts/
- name: Print ccache stats
shell: bash
run: ccache -s
- name: Upload release assets
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: |
release-artifacts/MRT2-AU3-*-macOS-Installer.pkg
release-artifacts/MRT2-AU3-*-macOS.dmg
fail_on_unmatched_files: true
- name: Upload workflow artifacts
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: MRT2-AU3-macos-${{ steps.version.outputs.pkg }}
path: |
release-artifacts/MRT2-AU3-*-macOS-Installer.pkg
release-artifacts/MRT2-AU3-*-macOS.dmg
if-no-files-found: error