Skip to content

CI

CI #126

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 3 * * sun'
jobs:
build_linux_intel:
strategy:
matrix:
docker_image: ['realnc/qtads-build:linux-x86', 'realnc/qtads-build:linux-x64']
runs-on: ubuntu-latest
container: ${{ matrix.docker_image }}
steps:
- uses: actions/checkout@v1
- name: Build
run: |
qmake
make appimage
trigger-circleci-arm:
runs-on: ubuntu-latest
steps:
- name: Trigger CircleCI ARM builds
id: 'build-linux-arm'
uses: CircleCI-Public/trigger-circleci-pipeline-action@v1.0.4
env:
CCI_TOKEN: ${{ secrets.CCI_TOKEN }}
build_mxe:
strategy:
matrix:
config:
- {image: 'realnc/qtads-build:mxe-x86', mxe_target: i686-w64-mingw32.static}
- {image: 'realnc/qtads-build:mxe-x64', mxe_target: x86_64-w64-mingw32.static}
runs-on: ubuntu-latest
container: ${{ matrix.config.image }}
steps:
- uses: actions/checkout@v1
- name: Build
run: |
${{ matrix.config.mxe_target }}-qmake-qt5
make -j`nproc`
build_macOS:
runs-on: macos-12
env:
HOMEBREW_PREFIX: /Users/Shared/homebrew-qtads-hugor
HOMEBREW_CELLAR: /Users/Shared/homebrew-qtads-hugor/Cellar
HOMEBREW_SHELLENV_PREFIX: /Users/Shared/homebrew-qtads-hugor
PKG_CONFIG_PATH: /Users/Shared/homebrew-qtads-hugor/opt/readline/lib/pkgconfig
steps:
- run: echo "${HOMEBREW_PREFIX}/bin:${HOMEBREW_PREFIX}/sbin:${PATH}" >> $GITHUB_PATH
- name: Install custom homebrew
run: |
rm -rf "${HOMEBREW_PREFIX}"
mkdir "${HOMEBREW_PREFIX}"
cd "${HOMEBREW_PREFIX}"/..
curl -s -S -L 'https://github.com/realnc/stuff/releases/download/stuff/homebrew-qtads-hugor.tar.zst' | zstd -d | tar x
- name: Remove /usr/local homebrew
working-directory: /usr/local
run: |
sudo mkdir ~/oldbrew
sudo mv * ~/oldbrew/
- name: Download Qt
working-directory: /opt
run: |
curl -s -S -L 'https://github.com/realnc/stuff/releases/download/stuff/qt-5.15-macos-static.tar.zst' | zstd -d | sudo tar x
- name: Add 10.15 SDK
run: |
curl -s -S -L 'https://github.com/realnc/stuff/releases/download/stuff/MacOSX10.15.sdk.tar.zst' | zstd -d | tar x
sudo mv MacOSX10.15.sdk "`xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs/"
- uses: actions/checkout@v2
- name: Build
run: |
/opt/qt-5.15/bin/qmake -after CONFIG-=silent
make macdist
- name: Restore /usr/local homebrew
working-directory: /usr/local
run: |
sudo rm -rf *
sudo mv ~/oldbrew/* .