Skip to content

Fix: Chart ranges set too large sometimes #102

Fix: Chart ranges set too large sometimes

Fix: Chart ranges set too large sometimes #102

Workflow file for this run

name: Build and test
on:
workflow_dispatch:
push:
branches:
- main
- dev
pull_request:
env:
QT_RELEASE_VER: 6.7.0
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: "6.7.0"
modules: "qtcharts"
cache: true
- name: Get number of CPU cores
if: runner.os != 'Windows'
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores
- name: Setup Visual Studio Tools
if: runner.os == 'Windows'
uses: egor-tensin/vs-shell@v2
with:
arch: x64
- name: Install jom
if: runner.os == 'Windows'
run: choco install jom
- name: Setup Linux
if: runner.os == 'Linux'
run: |
echo "DISTRIBUTION=AppImage" >> "$GITHUB_ENV"
sudo apt-get install libxkbcommon-dev libxkbcommon-x11-0 fuse libxcb-cursor-dev
- name: Run QMake
run: |
mkdir build
cd build
qmake ../PAL.pro -config test_conf "DISTRIBUTION=$DISTRIBUTION"
- name: Compile for Windows
if: runner.os == 'Windows'
run: |
cd build
jom
- name: Compile for Linux
if: runner.os != 'Windows'
run: |
cd build
make -k -j${{ steps.cpu-cores.outputs.count }}
- name: Run tests on Windows
if: runner.os == 'Windows'
run: |
cd build\release
.\PAL_test.exe -platform offscreen
- name: Run tests on Linux
if: runner.os != 'Windows'
run: |
cd build
./PAL_test -platform offscreen