Skip to content

FIX pull upstream patch for repair + always approve [MACRO-2319] (#112) #141

FIX pull upstream patch for repair + always approve [MACRO-2319] (#112)

FIX pull upstream patch for repair + always approve [MACRO-2319] (#112) #141

Workflow file for this run

name: Build and release for macOS
on:
push:
branches:
- main
jobs:
check_version:
uses: ./.github/workflows/check-version-tag.yml
build:
needs: [check_version]
if: ${{ needs.check_version.outputs.should_run != 'false' }}
runs-on: ${{ matrix.runner }}
name: Build Mac ${{ matrix.arch }}
strategy:
fail-fast: true
matrix:
include:
# - arch: x86_64
# runner: macro-x641
- arch: arm64
runner: macro-arm1
steps:
- name: Turn off line ending conversion in git
run: |
cd ${{ inputs.working_dir }}
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout
uses: actions/checkout@v3
- name: Fetch and build
run: |
cd libreoffice-core
export PATH=/opt/local/libexec/gnubin:/opt/local/bin:/opt/local/sbin:$PATH
./autogen.sh --with-distro=LOKit-Mac --with-external-tar="$RUNNER_TOOL_CACHE/lokit-external"
make build
tar -cJf ../libreofficekit-mac-${{ matrix.arch }}.tar.xz instdir
cd ..
./scripts/extract-symbols-mac.sh
(cd libreoffice-core/workdir && /usr/bin/tar -cJf ../../debug-symbols-mac-${{ matrix.arch }}.tar.xz debug)
shasum -a 256 libreofficekit-mac-${{ matrix.arch }}.tar.xz > libreofficekit-mac-${{ matrix.arch }}.tar.xz.sha256sum
shasum -a 256 debug-symbols-mac-${{ matrix.arch }}.tar.xz > debug-symbols-mac-${{ matrix.arch }}.tar.xz.sha256sum
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "libreofficekit-mac-${{ matrix.arch }}.tar.xz,libreofficekit-mac-${{ matrix.arch }}.tar.xz.sha256sum,debug-symbols-mac-${{ matrix.arch }}.tar.xz,debug-symbols-mac-${{ matrix.arch }}.tar.xz.sha256sum"
allowUpdates: true
artifactErrorsFailBuild: true
name: ${{ needs.check_version.outputs.version }}
tag: ${{ needs.check_version.outputs.version }}
body: |
This is an automated release built from the `main` branch.
For changes, please review the commit log.