Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI-macOS

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
mac-build:
name: Build On macOS
runs-on: macos-11
timeout-minutes: 120

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install Dependencies
run: |
brew install freetype libjpeg qt@5 cmake ccache
brew link qt@5
- name: Create Build Dir
run: mkdir -p ${{github.workspace}}/build
- name: Build using CMake
working-directory: ${{github.workspace}}/build
run: cmake ${{github.workspace}} -DBUILD_TESTS=on && make -j8
- name: Test
run: cd ${{github.workspace}}/build && QT_QPA_PLATFORM=offscreen ctest -V
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ set (TEXMACS_REVISION ${TEXMACS_VERSION})
### Options
### --------------------------------------------------------------------
if (NOT TEXMACS_GUI)
if (APPLE)
set (TEXMACS_GUI "Qt4" CACHE STRING "TeXmacs Gui (Qt, X11, Aqua)")
else (APPLE)
set (TEXMACS_GUI "Qt" CACHE STRING "TeXmacs Gui (Qt, X11, Aqua)")
endif (APPLE)
set (TEXMACS_GUI "Qt" CACHE STRING "TeXmacs Gui (Qt, X11, Aqua)")
endif (NOT TEXMACS_GUI)

option (QTPIPES "use Qt pipes" ON)
Expand Down