Skip to content

Use the official v3 hook #95

Use the official v3 hook

Use the official v3 hook #95

Workflow file for this run

name: Build and Test
on: [push, pull_request]
jobs:
linux0:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Qt
run: |
sudo apt-mark hold grub-efi-amd64-signed
sudo apt update
sudo apt upgrade
sudo apt install language-pack-de qtbase5-dev libqt5xmlpatterns5-dev qttools5-dev qttools5-dev-tools
- name: Build
run: |
qmake -o "$RUNNER_TEMP" -r -Wall -Wlogic -Wparser CONFIG+=release "$GITHUB_WORKSPACE"
make -C "$RUNNER_TEMP" all
- name: Test
run: |
make -C "$RUNNER_TEMP" check
BIPOLAR_TEST_LOCALE=de_DE.UTF-8 make -C "$RUNNER_TEMP" check
- name: Test i18n
run: |
make -C "$RUNNER_TEMP" check
env:
BIPOLAR_TEST_LOCALE: de_DE.UTF-8
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: linux
path: ${{ runner.temp }}/src/release/Bipolar
if-no-files-found: error
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
qt: [ '5.9.9', '5.10.1', '5.11.3', '5.12.12', '5.13.2', '5.14.2', '5.15.2' ]
steps:
- uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt }}
- name: Build
run: |
qmake -o "$RUNNER_TEMP" -r -Wall -Wlogic -Wparser CONFIG+=release "$GITHUB_WORKSPACE"
make -C "$RUNNER_TEMP" all
- name: Test
run: make -C "$RUNNER_TEMP" check
- name: Install additional locale for testing
run: |
sudo apt-mark hold grub-efi-amd64-signed
sudo apt update
sudo apt upgrade
sudo apt install language-pack-de
- name: Test i18n
run: make -C "$RUNNER_TEMP" check
env:
BIPOLAR_TEST_LOCALE: de_DE.UTF-8
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: linux-${{ matrix.qt }}
path: ${{ runner.temp }}/src/release/Bipolar
if-no-files-found: error
mac:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
qt: [ '5.9.9', '5.10.1', '5.11.3', '5.12.12', '5.13.2', '5.14.2', '5.15.2' ]
steps:
- uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt }}
- name: Build
run: |
qmake -o "$RUNNER_TEMP" -r -Wall -Wlogic -Wparser CONFIG+=release "$GITHUB_WORKSPACE"
make -C "$RUNNER_TEMP" all
- name: Test
run: make -C "$RUNNER_TEMP" check
- name: Test i18n
run: make -C "$RUNNER_TEMP" check
env:
BIPOLAR_TEST_LOCALE: de_DE.UTF-8
- name: Make macOS disk image
run: make -C "$RUNNER_TEMP/pkg/osx" dmg
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: macos-${{ matrix.qt }}
path: ${{ runner.temp }}/pkg/osx/Bipolar-*.dmg
if-no-files-found: error
win:
runs-on: windows-latest
defaults: { run: { shell: cmd } }
strategy:
fail-fast: false
matrix:
qt: [ '5.9.9', '5.10.1', '5.11.3', '5.12.12', '5.13.2', '5.14.2', '5.15.2' ]
steps:
- uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt }}
- name: Configure MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Build
run: |
qmake -o "%RUNNER_TEMP%" -r -Wall -Wlogic -Wparser CONFIG+=release "%GITHUB_WORKSPACE%"
cd "%RUNNER_TEMP%" && nmake.exe all
env:
CONFIGURATION: release
- name: Test
run: nmake.exe check
working-directory: ${{ runner.temp }}
- name: Test i18n
run: nmake.exe check
env:
BIPOLAR_TEST_LOCALE: german
working-directory: ${{ runner.temp }}
- name: Package NSIS installer
run: nmake.exe nsis
env:
CONFIGURATION: release
working-directory: ${{ runner.temp }}/pkg/nsis
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: win-${{ matrix.qt }}
path: ${{ runner.temp }}/pkg/nsis/Bipolar-*.exe
if-no-files-found: error