* Add 10 min timeout to all workflows * Update ChangeLog * Set analysis jobs to 20 min timeouts * Update ChangeLog
44 lines
910 B
YAML
44 lines
910 B
YAML
name: Test CentOS
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.ref || github.run_id }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test-linux-centos:
|
|
name: ${{ matrix.distro }}
|
|
runs-on: ubuntu-latest
|
|
container: symless/synergy-core:${{ matrix.distro }}
|
|
timeout-minutes: 10
|
|
|
|
env:
|
|
GIT_COMMIT: ${{ github.sha }}
|
|
|
|
strategy:
|
|
matrix:
|
|
distro:
|
|
- centos7.6
|
|
- centos8
|
|
|
|
steps:
|
|
- name: Checkout git repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: "recursive"
|
|
|
|
- name: Build
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake3 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=$(pwd)/rpm/BUILDROOT/usr ..
|
|
. ./version
|
|
make -j
|
|
|
|
- name: Run unit test
|
|
run: ./build/bin/unittests
|