Update librevenge to 0.0.5 #317
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
# SPDX-FileCopyrightText: 2021 René de Hesselle <dehesselle@web.de> | |
# | |
# SPDX-License-Identifier: GPL-2.0-or-later | |
name: Build | |
on: | |
push: | |
env: | |
WRK_DIR: /Users/Shared/work | |
CCACHE_DIR: /Users/Shared/work/ccache | |
jobs: | |
############################################################################## | |
dependencies: | |
runs-on: macos-14 | |
env: | |
CCACHE_MAXSIZE: 1GiB | |
steps: | |
#------------------------------------------------- prepare the environment | |
- name: Checkout mibap repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Create timestamp | |
id: timestamp | |
uses: josStorer/get-current-time@v2 | |
with: | |
format: "YYYY-MM-DD-HH-mm-ss" | |
# Create a new cache, building ontop the most recent old one. | |
- name: Set up cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.CCACHE_DIR }} | |
key: ccache-dependencies-${{ steps.timestamp.outputs.formattedTime }} | |
restore-keys: ccache-dependencies- | |
- name: Disable Homebrew | |
run: sudo mv /opt/homebrew /opt/homebrew.disabled | |
#---------------------------------------------- run the actual build steps | |
- name: Bootstrap JHBuild | |
run: ./110-bootstrap_jhb.sh | |
- name: Build GTK 4 stack | |
run: ./120-build_gtk4.sh | |
- name: Build Inkscape dependencies | |
run: ./130-build_inkdeps.sh | |
- name: Build packaging components | |
run: ./140-build_packaging.sh | |
#------------------------------------ package everything into a disk image | |
- name: Remove non-essential files | |
run: | | |
jhb/usr/bin/jhb run rustup self uninstall -y || true | |
jhb/usr/bin/archive remove_nonessentials | |
- name: Create disk image | |
run: jhb/usr/bin/archive create_dmg | |
#------------------------------------------------------- upload disk image | |
- name: Re-enable Homebrew | |
run: sudo mv /opt/homebrew.disabled /opt/homebrew | |
- name: Upload disk image | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dependencies | |
path: mibap*.dmg | |
############################################################################## | |
inkscape: | |
name: Inkscape | |
needs: dependencies | |
runs-on: macos-14 | |
env: | |
CCACHE_MAXSIZE: 512MiB | |
steps: | |
#------------------------------------------------- prepare the environment | |
- name: Checkout mibap repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Create timestamp | |
id: timestamp | |
uses: josStorer/get-current-time@v2 | |
with: | |
format: "YYYY-MM-DD-HH-mm-ss" | |
# Create a new cache, building ontop the most recent old one. | |
- name: Set up cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.CCACHE_DIR }} | |
key: ccache-inkscape-${{ steps.timestamp.outputs.formattedTime }} | |
restore-keys: ccache-inkscape- | |
- name: Download dependencies disk image | |
uses: actions/download-artifact@v4 | |
with: | |
name: dependencies | |
- name: Install dependencies | |
env: | |
REP_DIR: ${{ github.workspace }} | |
run: jhb/usr/bin/archive install_dmg | |
#---------------------------------------------------------- build Inkscape | |
- name: Build Inkscape | |
run: ./210-inkscape_build.sh | |
- name: Create Inkscape application bundle | |
run: ./220-inkscape_package.sh | |
- name: Create Inkscape disk image | |
run: ./230-inkscape_distrib.sh | |
#------------------------------------------------------- upload disk image | |
- name: Upload Inkscape disk image | |
uses: actions/upload-artifact@v4 | |
with: | |
name: inkscape | |
path: Inkscape*.dmg |