* Create tasks.json * Delete gui.pro * Swallow any exceptions from stopDesktop * Upgrade to C++20 * Update ChangeLog * Remove old versions of Ubuntu * Ignore VS Code workspace * Restore original CodeQL job name * Add problem matcher and suppress warnings from within old CMake lib * Bump CMake min version to 3.5 * Remove useless cmake_minimum_required * HACK: temp comment out failing code * Bump Qt to 5.12.6 * Delete tasks.json * Create CMakePresets.json * Fixed Qt link error: The input line is too long. * Fixed invalid call to map erase * Fixed incorrect use of RegCreateKeyEx * Add VS Code tasks.json for cmake build * Store `desktop` in char buf before using it * Generate compile_commands.json * Restore indentation * Revert "Restore indentation" This reverts commit d9f495460f337c37e8a01d8853b317e949ea085a. * Restore original indentation (for now) * Create extensions.json
49 lines
1 KiB
YAML
49 lines
1 KiB
YAML
name: Test Ubuntu
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.ref || github.run_id }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test-linux-ubuntu:
|
|
name: ubuntu${{ matrix.distro }}
|
|
runs-on: ubuntu-latest
|
|
container: symless/synergy-core:ubuntu${{ matrix.distro }}
|
|
|
|
env:
|
|
GIT_COMMIT: ${{ github.sha }}
|
|
|
|
strategy:
|
|
matrix:
|
|
distro:
|
|
- "22.04"
|
|
- "20.04"
|
|
flag:
|
|
- "-j"
|
|
|
|
steps:
|
|
- name: Checkout git repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: "recursive"
|
|
|
|
- name: Work around https://github.com/actions/checkout/issues/766
|
|
run: |
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
|
|
- name: Build
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
. ./version
|
|
make ${{ matrix.flag }}
|
|
|
|
- name: Run unit test
|
|
run: ./build/bin/unittests
|