deskflow/.github/workflows/job-test-linux-ubuntu.yml
Nick Bolton d34d9eef86
Add timeout to all GitHub workflows (#7325)
* Add 10 min timeout to all workflows

* Update ChangeLog

* Set analysis jobs to 20 min timeouts

* Update ChangeLog
2024-01-11 17:44:42 +00:00

50 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 }}
timeout-minutes: 10
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