Files
deskflow/.github/workflows/job-test-linux.yml
Kyle Bloom 4c7456d3cc Core builds (#6908)
* Fix formatting in CMakeLists

* Add SYNERGY_NO_LEGACY environment flag

* Add build script for Windows

* Find_package for OpenSSL

* Move build scrits to scripts folder

* Add macOS and Linux build scripts

* Add environment variable

* Compile core with static openssl

* Default builds to Release

* Streamline OpenSSL dependancies

* Remove openssl from repo

* Change actions to test actions

* Add zip creation to build scripts

* Re-add original tests

* Add action value output

* Build per platform on release

* Fix path for core build

* Temporarily keep artifacts

* Set execute flag

* Zip before archiving

* Static build only for windows

* Remove -m flag from zip

* Change zip to tar

* Fix workflow name

* Add hints to openssl on mac

* Fix zip files

* Fix verbose flag on tar

* Remove path on download artifacts

* Try an array of build targets

* Extract action binaries

* Install full openssl

* Add 32bit openssl

* Modify installer to use the openssl.exe from ext

* Install OpenSSL full for windows release build

* Add openssl installation during windows CI

* Modify changelog

* Add enhancments section

* Remove bottom line in changelog
2021-01-20 14:47:56 +00:00

61 lines
1.4 KiB
YAML

name: Linux
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-test-artifacts:
name: Building on ${{ matrix.source }}
strategy:
matrix:
source: [debian10, centos8]
runs-on: ubuntu-latest
container: symless/synergy-core:${{ matrix.source }}
env:
GIT_COMMIT: ${{ github.sha }}
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Build
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
. ./version
make -j
tar -cvf synergy.tar ./bin/*
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: linux-test-artifacts-${{ matrix.source }}
path: build/synergy.tar
retention-days: 1
test-artifacts:
runs-on: ubuntu-latest
needs: build-test-artifacts
name: ${{ matrix.distro }} running ${{ matrix.source }}
container: symless/synergy-core:${{ matrix.distro }}
strategy:
matrix:
distro: [ubuntu20.04, ubuntu19.10, debian10, fedora30, fedora29, centos8]
source: [debian10, centos8]
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: linux-test-artifacts-${{ matrix.source }}
- name: Extract Archive
run: tar -xvf synergy.tar
- name: Run unit test
run: ./bin/unittests