1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
#
# -- DEPRECATED Build for Linux and macOS - used as starting point for current workflows
#
name: Deprecated Build Linux and macOS Original
on:
workflow_dispatch:
#pull_request:
#push:
# branches: [main]
jobs:
build:
name: Build on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
build_type: [Release]
c_compiler: [gcc, clang, cl]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
set -x
touch configure.args
case $RUNNER_OS in
Linux)
sudo apt-get update
# Add libjbig-dev and libzstd-dev once GLE can find them without
# relying on nonexistent cmake config files.
# See https://github.com/vlabella/GLE/issues/16
sudo apt-get install cmake freeglut3-dev libboost-dev \
libcairo-dev libdeflate-dev libgs-dev \
libjpeg-turbo8-dev liblzma-dev libpixman-1-dev \
libpng-dev libtiff-dev libz-dev qtbase5-dev
jobs=$(nproc)
;;
macOS)
# Add jbigkit once GLE can find it without relying on nonexistent
# cmake config files.
# See https://github.com/vlabella/GLE/issues/16
# liblzma and libz are already in macOS.
# cmake is preinstalled with Homebrew on GitHub Actions runners and
# trying to install it again produces an unintelligible warning.
brew install --quiet boost cairo ghostscript jpeg-turbo \
libdeflate libpng libtiff pixman qt@5 zstd
echo "-D Qt5_DIR=$(brew --prefix qt@5)/lib/cmake/Qt5" >> configure.args
jobs=$(sysctl -n hw.activecpu)
;;
Windows)
# see build-windows.yml
;;
*)
jobs=1
esac
echo "--parallel $jobs" >> build.args
- name: Configure
run: |
xargs -t < configure.args cmake -S src -B build -D CMAKE_BUILD_TYPE=Release
- name: Build
run: |
xargs -t < build.args cmake --build build --verbose
- name: Install
run: |
DESTDIR=destroot cmake --install build
- name: Upload Artifacts - Binaries
uses: actions/upload-artifact@v4.4.3
with:
name: Binary Executables
path: ${{github.workspace}}/destroot
if-no-files-found: warn
retention-days: 0
compression-level: 0
|