* SYNERGY-1254 Fix core builds * Changelog * Uncomment debian9 * Fix artifact name * Fix workflow name * Remove -j1 flag * Turn off pull_request operations * Add qt for ubuntu core builds * Switch to python3-yaml * Update ubuntu * Cmake automatically manages include_directories * Remove older fedora versions * Add DBus to platform to ensure dependancy * Change to synergy-vcpkg * build macos * Remove pull_request * Add centos 8 * Change container * Test core builds * Remove setup * Remove VCPKG_INSTALLATION_ROOT * change checkout to use submodules * Setup newer version of git for ubuntu * Remove git requirement * Remove pull_request event
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
name: Fedora - Core
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
# pull_request:
|
|
|
|
jobs:
|
|
build-core-fedora:
|
|
runs-on: ubuntu-latest
|
|
container: symless/synergy-vcpkg:${{ matrix.distro }}
|
|
env:
|
|
GIT_COMMIT: ${{ github.sha }}
|
|
SYNERGY_NO_LEGACY: "1"
|
|
SYNERGY_NO_TESTS: "1"
|
|
SYNERGY_STATIC_OPENSSL: "1"
|
|
VCPKG_LIBRARY_LINKAGE: "static"
|
|
strategy:
|
|
matrix:
|
|
distro:
|
|
- fedora33
|
|
- fedora34
|
|
|
|
name: ${{ matrix.distro }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX:PATH=$(pwd)/rpm/BUILDROOT/usr \
|
|
-DCMAKE_TOOLCHAIN_FILE=${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake \
|
|
..
|
|
. ./version
|
|
make -j
|
|
|
|
- uses: shallwefootball/s3-upload-action@master
|
|
if: "github.event_name == 'release'"
|
|
with:
|
|
aws_key_id: ${{ secrets.AWS_S3_UPLOAD_KEY_ID }}
|
|
aws_secret_access_key: ${{ secrets.AWS_S3_UPLOAD_SECRET }}
|
|
aws_bucket: ${{ secrets.AWS_BUCKET }}
|
|
source_dir: ./build/bin
|
|
destination_dir: "./synergy3/latest/${{matrix.distro}}/"
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
if: "github.event_name == 'pull_request'"
|
|
with:
|
|
name: ${{ matrix.distro }}
|
|
path: build/bin/*
|
|
retention-days: 1
|