Update workflows (#7283)

* Update test actions

* Format stale issues

* Format jira issues workflow

* Format changelog check workflow

* Format build workflows

* Format create build

Also add make full action to remove core installs

* Format codeql analysis

* Add .nvmrc

* Update changelog

* Add concurrency group to CodeQL

* sudo install

* Update to windows latest

* Upgrade fedora distro list

* Add arch to runtime matrix

* Fix path for m1 builds

* Add enterprise and business flags
This commit is contained in:
Kyle Bloom 2023-09-25 17:26:06 +01:00 committed by GitHub
parent cfe20bea18
commit 446b0a2e95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 5203 additions and 378 deletions

View file

@ -0,0 +1 @@
node_modules

1
.github/actions/build-number/.nvmrc vendored Normal file
View file

@ -0,0 +1 @@
v20

View file

@ -1,10 +1,10 @@
name: 'Generate next build number'
description: 'Generate next build number'
name: "Generate next build number"
description: "Generate next build number"
outputs:
build-number:
description: 'Generated build number'
description: "Generated build number"
runs:
using: 'node12'
main: 'build-number.js'
using: "node20"
main: "dist/index.js"

4527
.github/actions/build-number/dist/index.js vendored Normal file

File diff suppressed because it is too large Load diff

190
.github/actions/build-number/package-lock.json generated vendored Normal file
View file

@ -0,0 +1,190 @@
{
"name": "build-number",
"version": "0.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "build-number",
"version": "0.0.0",
"license": "ISC",
"dependencies": {
"@actions/core": "^1.10.1",
"@octokit/core": "^5.0.0"
},
"devDependencies": {
"@vercel/ncc": "^0.38.0"
}
},
"node_modules/@actions/core": {
"version": "1.10.1",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.1.tgz",
"integrity": "sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==",
"dependencies": {
"@actions/http-client": "^2.0.1",
"uuid": "^8.3.2"
}
},
"node_modules/@actions/http-client": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.1.1.tgz",
"integrity": "sha512-qhrkRMB40bbbLo7gF+0vu+X+UawOvQQqNAA/5Unx774RS8poaOhThDOG6BGmxvAnxhQnDp2BG/ZUm65xZILTpw==",
"dependencies": {
"tunnel": "^0.0.6"
}
},
"node_modules/@octokit/auth-token": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz",
"integrity": "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==",
"engines": {
"node": ">= 18"
}
},
"node_modules/@octokit/core": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.0.0.tgz",
"integrity": "sha512-YbAtMWIrbZ9FCXbLwT9wWB8TyLjq9mxpKdgB3dUNxQcIVTf9hJ70gRPwAcqGZdY6WdJPZ0I7jLaaNDCiloGN2A==",
"dependencies": {
"@octokit/auth-token": "^4.0.0",
"@octokit/graphql": "^7.0.0",
"@octokit/request": "^8.0.2",
"@octokit/request-error": "^5.0.0",
"@octokit/types": "^11.0.0",
"before-after-hook": "^2.2.0",
"universal-user-agent": "^6.0.0"
},
"engines": {
"node": ">= 18"
}
},
"node_modules/@octokit/endpoint": {
"version": "9.0.0",
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.0.tgz",
"integrity": "sha512-szrQhiqJ88gghWY2Htt8MqUDO6++E/EIXqJ2ZEp5ma3uGS46o7LZAzSLt49myB7rT+Hfw5Y6gO3LmOxGzHijAQ==",
"dependencies": {
"@octokit/types": "^11.0.0",
"is-plain-object": "^5.0.0",
"universal-user-agent": "^6.0.0"
},
"engines": {
"node": ">= 18"
}
},
"node_modules/@octokit/graphql": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.0.1.tgz",
"integrity": "sha512-T5S3oZ1JOE58gom6MIcrgwZXzTaxRnxBso58xhozxHpOqSTgDS6YNeEUvZ/kRvXgPrRz/KHnZhtb7jUMRi9E6w==",
"dependencies": {
"@octokit/request": "^8.0.1",
"@octokit/types": "^11.0.0",
"universal-user-agent": "^6.0.0"
},
"engines": {
"node": ">= 18"
}
},
"node_modules/@octokit/openapi-types": {
"version": "18.0.0",
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-18.0.0.tgz",
"integrity": "sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw=="
},
"node_modules/@octokit/request": {
"version": "8.1.1",
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-8.1.1.tgz",
"integrity": "sha512-8N+tdUz4aCqQmXl8FpHYfKG9GelDFd7XGVzyN8rc6WxVlYcfpHECnuRkgquzz+WzvHTK62co5di8gSXnzASZPQ==",
"dependencies": {
"@octokit/endpoint": "^9.0.0",
"@octokit/request-error": "^5.0.0",
"@octokit/types": "^11.1.0",
"is-plain-object": "^5.0.0",
"universal-user-agent": "^6.0.0"
},
"engines": {
"node": ">= 18"
}
},
"node_modules/@octokit/request-error": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.0.0.tgz",
"integrity": "sha512-1ue0DH0Lif5iEqT52+Rf/hf0RmGO9NWFjrzmrkArpG9trFfDM/efx00BJHdLGuro4BR/gECxCU2Twf5OKrRFsQ==",
"dependencies": {
"@octokit/types": "^11.0.0",
"deprecation": "^2.0.0",
"once": "^1.4.0"
},
"engines": {
"node": ">= 18"
}
},
"node_modules/@octokit/types": {
"version": "11.1.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-11.1.0.tgz",
"integrity": "sha512-Fz0+7GyLm/bHt8fwEqgvRBWwIV1S6wRRyq+V6exRKLVWaKGsuy6H9QFYeBVDV7rK6fO3XwHgQOPxv+cLj2zpXQ==",
"dependencies": {
"@octokit/openapi-types": "^18.0.0"
}
},
"node_modules/@vercel/ncc": {
"version": "0.38.0",
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.0.tgz",
"integrity": "sha512-B4YKZMm/EqMptKSFyAq4q2SlgJe+VCmEH6Y8gf/E1pTlWbsUJpuH1ymik2Ex3aYO5mCWwV1kaSYHSQOT8+4vHA==",
"dev": true,
"bin": {
"ncc": "dist/ncc/cli.js"
}
},
"node_modules/before-after-hook": {
"version": "2.2.3",
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz",
"integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ=="
},
"node_modules/deprecation": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz",
"integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ=="
},
"node_modules/is-plain-object": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
"integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/once": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
"dependencies": {
"wrappy": "1"
}
},
"node_modules/tunnel": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",
"engines": {
"node": ">=0.6.11 <=0.7.0 || >=0.7.3"
}
},
"node_modules/universal-user-agent": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz",
"integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w=="
},
"node_modules/uuid": {
"version": "8.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
"bin": {
"uuid": "dist/bin/uuid"
}
},
"node_modules/wrappy": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
}
}
}

View file

@ -0,0 +1,19 @@
{
"name": "build-number",
"version": "0.0.0",
"description": "Calculate the current version",
"main": "dist/index.js",
"private": true,
"scripts": {
"build": "ncc build main.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"@actions/core": "^1.10.1",
"@octokit/core": "^5.0.0"
},
"devDependencies": {
"@vercel/ncc": "^0.38.0"
}
}

View file

@ -1,23 +1,15 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
# ******** NOTE ********
name: "CodeQL"
on:
push:
branches: [ master ]
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [master]
concurrency:
group: "${{ github.workflow }}-${{ github.ref || github.run_id }}"
cancel-in-progress: true
jobs:
analyze:
@ -27,14 +19,31 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
language: ["cpp"]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get install -y \
build-essential \
cmake \
debhelper \
devscripts \
git \
libavahi-compat-libdnssd-dev \
libgdk-pixbuf2.0-dev \
libgl1-mesa-dev \
libglib2.0-dev \
libnotify-dev \
libssl-dev \
libx11-dev \
libxtst-dev \
qtbase5-dev \
qttools5-dev \
qttools5-dev-tools
- name: Checkout git repo
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
@ -46,26 +55,6 @@ jobs:
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
- run: |
sudo sh -c 'export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y \
git \
cmake \
qtbase5-dev \
build-essential \
libx11-dev \
libxtst-dev \
libgl1-mesa-dev \
libssl-dev \
libavahi-compat-libdnssd-dev \
debhelper \
devscripts \
qttools5-dev \
qttools5-dev-tools \
libnotify-dev \
libglib2.0-dev \
libgdk-pixbuf2.0-dev \
&& rm -rf /var/lib/apt/lists'
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
@ -74,13 +63,5 @@ jobs:
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
#- run: |
# make bootstrap
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

View file

@ -2,40 +2,37 @@ name: Create Build
on:
push:
branches: [ master ]
branches: [master]
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout git repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 'Install git core'
run: |
npm install @actions/core
npm install @octokit/core
- name: 'Generate next build number'
- name: "Generate next build number"
id: build
uses: "./.github/actions/build-number"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_EVENT_PROPAGATION_TOKEN }}
with:
tag_name: ${{ steps.build.outputs.next-build }}
release_name: ${{ steps.build.outputs.next-build }}
commitish: master
draft: false
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_EVENT_PROPAGATION_TOKEN }}
- name: Run build on Azure
uses: Azure/pipelines@v1
with:
azure-devops-project-url: 'https://dev.azure.com/symless/synergy-core'
azure-pipeline-name: 'symless.synergy-core'
azure-devops-token: '${{ secrets.AZURE_DEVOPS_TOKEN }}'
azure-devops-project-url: "https://dev.azure.com/symless/synergy-core"
azure-pipeline-name: "symless.synergy-core"
azure-devops-token: "${{ secrets.AZURE_DEVOPS_TOKEN }}"

View file

@ -8,26 +8,35 @@ jobs:
build-flatpak-bundle:
name: ubuntu-flatpak
runs-on: ubuntu-latest
container:
image: symless/synergy-core:ubuntu20.04
options: --privileged
strategy:
matrix:
name: [synergy, synergy-enterprise, synergy-business]
include:
runtime:
- name: synergy
remote_folder: v1-core-standard
enterprise: ""
business: ""
- name: synergy-enterprise
remote_folder: v1-core-enterprise
enterprise: "1"
business: ""
- name: synergy-business
remote_folder: v1-core-business
enterprise: ""
business: "1"
env:
GIT_COMMIT: ${{ github.sha }}
SYNERGY_ENTERPRISE: ${{ matrix.enterprise }}
SYNERGY_BUSINESS: ${{ matrix.business }}
SYNERGY_ENTERPRISE: ${{ matrix.runtime.enterprise }}
SYNERGY_BUSINESS: ${{ matrix.runtime.business }}
steps:
- uses: actions/checkout@v3
- name: Checkout git repo
uses: actions/checkout@v3
with:
submodules: "recursive"
fetch-depth: "0"
@ -54,7 +63,7 @@ jobs:
rm -rf version-info
SYNERGY_VERSION="$SYNERGY_VERSION_MAJOR.$SYNERGY_VERSION_MINOR.$SYNERGY_VERSION_PATCH"
SYNERGY_REVISION=$(git rev-parse --short=8 HEAD)
SYNERGY_FLATPAK_NAME="${{ matrix.name }}_${SYNERGY_VERSION}-${SYNERGY_VERSION_STAGE}.${SYNERGY_REVISION}"
SYNERGY_FLATPAK_NAME="${{ matrix.runtime.name }}_${SYNERGY_VERSION}-${SYNERGY_VERSION_STAGE}.${SYNERGY_REVISION}"
echo "::set-output name=SYNERGY_VERSION_MAJOR::${SYNERGY_VERSION_MAJOR}"
echo "::set-output name=SYNERGY_VERSION_MINOR::${SYNERGY_VERSION_MINOR}"
echo "::set-output name=SYNERGY_VERSION_PATCH::${SYNERGY_VERSION_PATCH}"
@ -63,7 +72,7 @@ jobs:
echo "::set-output name=SYNERGY_VERSION::${SYNERGY_VERSION}"
echo "::set-output name=SYNERGY_REVISION::${SYNERGY_REVISION}"
echo "::set-output name=SYNERGY_FLATPAK_NAME::${SYNERGY_FLATPAK_NAME}"
echo "::set-output name=SYNERGY_REMOTE_FOLDER::${{ matrix.remote_folder }}/${SYNERGY_VERSION}/${SYNERGY_VERSION_STAGE}/b${SYNERGY_VERSION_BUILD}-${SYNERGY_REVISION}"
echo "::set-output name=SYNERGY_REMOTE_FOLDER::${{ matrix.runtime.remote_folder }}/${SYNERGY_VERSION}/${SYNERGY_VERSION_STAGE}/b${SYNERGY_VERSION_BUILD}-${SYNERGY_REVISION}"
- name: Install flatpak
run: |
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
@ -73,7 +82,7 @@ jobs:
- name: Build
run: |
cd flatpak
flatpak-builder build ${{ matrix.name }}.yml --disable-cache --force-clean
flatpak-builder build ${{ matrix.runtime.name }}.yml --disable-cache --force-clean
flatpak build-export export build
flatpak build-bundle export ${{ steps.version.outputs.SYNERGY_FLATPAK_NAME }}.flatpak com.symless.Synergy master --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo

View file

@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
include:
runtime:
- name: "synergy"
remote_folder: "v1-core-standard"
enterprise: ""
@ -23,16 +23,20 @@ jobs:
remote_folder: "v1-core-business"
enterprise: ""
business: "1"
env:
GIT_COMMIT: ${{ github.sha }}
SYNERGY_ENTERPRISE: ${{ matrix.enterprise }}
SYNERGY_BUSINESS: ${{ matrix.business }}
SYNERGY_ENTERPRISE: ${{ matrix.runtime.enterprise }}
SYNERGY_BUSINESS: ${{ matrix.runtime.business }}
Qt5_DIR: /usr/local/opt/qt/5.15.2/clang_64
OpenSSL_DIR: /usr/local/ssl
CODESIGN_ID: "Developer ID Application: Symless Ltd (4HX897Y6GJ)"
steps:
- uses: actions/checkout@v2
- name: Checkout git repo
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Setup Environment
run: |
@ -70,8 +74,8 @@ jobs:
echo "::set-output name=SYNERGY_VERSION::$SYNERGY_VERSION"
echo "::set-output name=SYNERGY_REVISION::$SYNERGY_REVISION"
echo "::set-output name=SYNERGY_DMG_VERSION::$SYNERGY_DMG_VERSION"
SYNERGY_PACKAGE_NAME=${{ matrix.name }}
SYNERGY_REMOTE_FOLDER="${{ matrix.remote_folder }}/${SYNERGY_VERSION}/${SYNERGY_VERSION_STAGE}/b${SYNERGY_VERSION_BUILD}-${SYNERGY_REVISION}"
SYNERGY_PACKAGE_NAME=${{ matrix.runtime.name }}
SYNERGY_REMOTE_FOLDER="${{ matrix.runtime.remote_folder }}/${SYNERGY_VERSION}/${SYNERGY_VERSION_STAGE}/b${SYNERGY_VERSION_BUILD}-${SYNERGY_REVISION}"
SYNERGY_DMG_FILENAME="${SYNERGY_PACKAGE_NAME}_${SYNERGY_DMG_VERSION}_macos-10.13_x86-64.dmg"
echo "SYNERGY_REMOTE_FOLDER: $SYNERGY_REMOTE_FOLDER"
echo "::set-output name=SYNERGY_REMOTE_FOLDER::$SYNERGY_REMOTE_FOLDER"

View file

@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
include:
runtime:
- name: "synergy"
remote_folder: "v1-core-standard"
enterprise: ""
@ -27,14 +27,28 @@ jobs:
remote_folder: "v1-core-business"
enterprise: ""
business: "1"
env:
GIT_COMMIT: ${{ github.sha }}
SYNERGY_ENTERPRISE: ${{ matrix.enterprise }}
SYNERGY_BUSINESS: ${{ matrix.business }}
SYNERGY_ENTERPRISE: ${{ matrix.runtime.enterprise }}
SYNERGY_BUSINESS: ${{ matrix.runtime.business }}
CODESIGN_ID: "Developer ID Application: Symless Ltd (4HX897Y6GJ)"
steps:
- uses: actions/checkout@v2
- name: Setup PATH
run: echo "/opt/homebrew/bin" >> $GITHUB_PATH
env:
ARCH: ${{ matrix.runtime.arch }}
- name: Checkout git repo
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Checkout git repo
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Setup Environment
run: |
@ -71,8 +85,8 @@ jobs:
echo "::set-output name=SYNERGY_VERSION::$SYNERGY_VERSION"
echo "::set-output name=SYNERGY_REVISION::$SYNERGY_REVISION"
echo "::set-output name=SYNERGY_DMG_VERSION::$SYNERGY_DMG_VERSION"
SYNERGY_PACKAGE_NAME=${{ matrix.name }}
SYNERGY_REMOTE_FOLDER="${{ matrix.remote_folder }}/${SYNERGY_VERSION}/${SYNERGY_VERSION_STAGE}/b${SYNERGY_VERSION_BUILD}-${SYNERGY_REVISION}"
SYNERGY_PACKAGE_NAME=${{ matrix.runtime.name }}
SYNERGY_REMOTE_FOLDER="${{ matrix.runtime.remote_folder }}/${SYNERGY_VERSION}/${SYNERGY_VERSION_STAGE}/b${SYNERGY_VERSION_BUILD}-${SYNERGY_REVISION}"
SYNERGY_DMG_FILENAME="${SYNERGY_PACKAGE_NAME}_${SYNERGY_DMG_VERSION}_macos-arm64.dmg"
echo "SYNERGY_REMOTE_FOLDER: $SYNERGY_REMOTE_FOLDER"
echo "::set-output name=SYNERGY_REMOTE_FOLDER::$SYNERGY_REMOTE_FOLDER"

View file

@ -7,11 +7,19 @@ on:
jobs:
build-on-pi:
runs-on: ${{ matrix.os }}
env:
GIT_COMMIT: ${{ github.sha }}
DEB_BUILD_OPTIONS: parallel=1
SYNERGY_ENTERPRISE: ${{ matrix.runtime.enterprise }}
SYNERGY_BUSINESS: ${{ matrix.runtime.business }}
strategy:
matrix:
os: [[self-hosted, linux, ARM, pi-3], [self-hosted, linux, ARM64, pi-4]]
name: [synergy, synergy-enterprise, synergy-business]
include:
os:
- [self-hosted, linux, ARM, pi-3]
- [self-hosted, linux, ARM64, pi-4]
runtime:
- name: synergy
remote_folder: v1-core-standard
enterprise: ""
@ -24,14 +32,12 @@ jobs:
remote_folder: v1-core-business
enterprise: ""
business: "1"
env:
GIT_COMMIT: ${{ github.sha }}
DEB_BUILD_OPTIONS: parallel=1
SYNERGY_ENTERPRISE: ${{ matrix.enterprise }}
SYNERGY_BUSINESS: ${{ matrix.business }}
steps:
- uses: actions/checkout@v2
- name: Checkout git repo
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Version Info
id: version
@ -51,16 +57,10 @@ jobs:
echo "::set-output name=SYNERGY_VERSION::${SYNERGY_VERSION}"
echo "::set-output name=SYNERGY_REVISION::${SYNERGY_REVISION}"
echo "::set-output name=SYNERGY_DEB_VERSION::${SYNERGY_DEB_VERSION}"
echo "::set-output name=SYNERGY_REMOTE_FOLDER::${{ matrix.remote_folder }}/${SYNERGY_VERSION}/${SYNERGY_VERSION_STAGE}/b${SYNERGY_VERSION_BUILD}-${SYNERGY_REVISION}"
echo "::set-output name=SYNERGY_PACKAGE_NAME::${{ matrix.name }}"
echo "::set-output name=SYNERGY_REMOTE_FOLDER::${{ matrix.runtime.remote_folder }}/${SYNERGY_VERSION}/${SYNERGY_VERSION_STAGE}/b${SYNERGY_VERSION_BUILD}-${SYNERGY_REVISION}"
echo "::set-output name=SYNERGY_PACKAGE_NAME::${{ matrix.runtime.name }}"
- name: Build deb
env:
SYNERGY_VERSION: ${{ steps.version.outputs.SYNERGY_VERSION }}
SYNERGY_REVISION: ${{ steps.version.outputs.SYNERGY_REVISION }}
SYNERGY_DEB_VERSION: ${{ steps.version.outputs.SYNERGY_DEB_VERSION }}
PACKAGE_NAME: ${{ steps.version.outputs.SYNERGY_PACKAGE_NAME }}
SYNERGY_VERSION_STAGE: ${{ steps.version.outputs.SYNERGY_VERSION_STAGE }}
run: |
sed -i "s/ synergy/ ${PACKAGE_NAME}/g" ./debian/control
python3 CI/deb_changelog.py "${PACKAGE_NAME}" "${SYNERGY_DEB_VERSION}"
@ -74,6 +74,12 @@ jobs:
md5sum $filename_new >> ${filename_new}.checksum.txt
sha1sum $filename_new >> ${filename_new}.checksum.txt
sha256sum $filename_new >> ${filename_new}.checksum.txt
env:
SYNERGY_VERSION: ${{ steps.version.outputs.SYNERGY_VERSION }}
SYNERGY_REVISION: ${{ steps.version.outputs.SYNERGY_REVISION }}
SYNERGY_DEB_VERSION: ${{ steps.version.outputs.SYNERGY_DEB_VERSION }}
PACKAGE_NAME: ${{ steps.version.outputs.SYNERGY_PACKAGE_NAME }}
SYNERGY_VERSION_STAGE: ${{ steps.version.outputs.SYNERGY_VERSION_STAGE }}
- name: Send package to Binary Storage
if: "github.event_name == 'release'"

View file

@ -8,17 +8,19 @@
name: ChangeLog Updated
on:
pull_request:
branches: [ master ]
branches: [master]
jobs:
check:
runs-on: ubuntu-latest
steps:
- id: file_changes
name: Get changed files
- name: Get changed files
id: file_changes
uses: trilom/file-changes-action@v1.2.4
with:
output: ','
output: ","
- name: echo changes
run: |
echo Files
@ -29,6 +31,7 @@ jobs:
echo '${{ steps.file_changes.outputs.files_added}}'
echo Removed
echo '${{ steps.file_changes.outputs.files_removed}}'
- name: List files
run: |
if [[ "${{ steps.file_changes.outputs.files_modified}}" == *"ChangeLog"* ]]; then

View file

@ -1,6 +1,6 @@
on:
issues:
types: [ opened ]
types: [opened]
name: Send Issue to Jira
jobs:
@ -30,8 +30,8 @@ jobs:
${{ github.event.issue.body }}
- name: Create comment
uses: jungwinter/comment@v1
id: createComment
uses: jungwinter/comment@v1
with:
type: create
body: |

View file

@ -2,13 +2,16 @@ name: SonarCloud Static Analysis
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
concurrency:
group: "${{ github.workflow }}-${{ github.ref || github.run_id }}"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
container: symless/synergy-core:debian10
@ -17,7 +20,8 @@ jobs:
SONAR_SCANNER_OPTS: -server
steps:
- uses: actions/checkout@v2
- name: Checkout git repo
uses: actions/checkout@v3
with:
fetch-depth: 0
@ -26,6 +30,7 @@ jobs:
apt-get update
apt-get install -y python python-pip
pip install gcovr
- name: Installing Sonar Scanner
run: |
export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-4.4.0.2170-linux

View file

@ -2,26 +2,34 @@ name: CentOS
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
concurrency:
group: "${{ github.workflow }}-${{ github.ref || github.run_id }}"
cancel-in-progress: true
jobs:
build-arch64:
name: ${{ matrix.distro }}
runs-on: ubuntu-latest
container: symless/synergy-core:${{ matrix.distro }}
env:
GIT_COMMIT: ${{ github.sha }}
strategy:
matrix:
include:
- distro: centos7.6
- distro: centos8
name: ${{ matrix.distro }}
distro:
- centos7.6
- centos8
steps:
- uses: actions/checkout@v2
- name: Checkout git repo
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Build
run: |

View file

@ -2,27 +2,35 @@ name: Debian
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
concurrency:
group: "${{ github.workflow }}-${{ github.ref || github.run_id }}"
cancel-in-progress: true
jobs:
build-arch64:
name: ${{ matrix.distro }}
runs-on: ubuntu-latest
container: symless/synergy-core:${{ matrix.distro }}
env:
GIT_COMMIT: ${{ github.sha }}
strategy:
matrix:
include:
- distro: debian9
- distro: debian10
- distro: debian11
name: ${{ matrix.distro }}
distro:
- debian9
- debian10
- debian11
steps:
- uses: actions/checkout@v2
- name: Checkout git repo
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Build
run: |

View file

@ -2,32 +2,38 @@ name: Fedora
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
concurrency:
group: "${{ github.workflow }}-${{ github.ref || github.run_id }}"
cancel-in-progress: true
jobs:
build-arch64:
name: ${{ matrix.distro }}
runs-on: ubuntu-latest
container: symless/synergy-core:${{ matrix.distro }}
env:
GIT_COMMIT: ${{ github.sha }}
strategy:
matrix:
include:
- distro: fedora29
- distro: fedora30
- distro: fedora33
- distro: fedora34
- distro: fedora35
- distro: fedora36
name: ${{ matrix.distro }}
distro:
- fedora33
- fedora34
- fedora35
- fedora36
- fedora37
- fedora38
steps:
- uses: actions/checkout@v2
- name: Checkout git repo
uses: actions/checkout@v3
with:
submodules: 'recursive'
submodules: "recursive"
- name: Work around https://github.com/actions/checkout/issues/766
run: |

View file

@ -6,27 +6,36 @@ on:
pull_request:
branches: [master]
concurrency:
group: "${{ github.workflow }}-${{ github.ref || github.run_id }}"
cancel-in-progress: true
jobs:
build-arch64:
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', '18.04']
flag: ['-j']
distro:
- "22.04"
- "20.04"
- "18.04"
flag:
- "-j"
include:
- distro: '16.04'
flag: '-j1'
name: ubuntu${{ matrix.distro }}
- distro: "16.04"
flag: "-j1"
steps:
- uses: actions/checkout@v2
- name: Checkout git repo
uses: actions/checkout@v3
with:
submodules: 'recursive'
submodules: "recursive"
- name: Work around https://github.com/actions/checkout/issues/766
run: |

View file

@ -6,21 +6,27 @@ on:
pull_request:
branches: [master]
concurrency:
group: "${{ github.workflow }}-${{ github.ref || github.run_id }}"
cancel-in-progress: true
jobs:
test-macos:
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.runtime.os }}
defaults:
run:
shell: ${{ matrix.shell }}
shell: ${{ matrix.runtime.shell }}
strategy:
matrix:
include:
runtime:
- os: "macos-latest"
arch: x64
target: "10.14"
shell: "bash"
- os: [self-hosted, macOS, arm64]
arch: arm64
target: "11"
shell: "/usr/bin/arch -arch arm64e /bin/bash --noprofile --norc -eo pipefail {0}"
@ -28,14 +34,27 @@ jobs:
GIT_COMMIT: ${{ github.sha }}
steps:
- uses: actions/checkout@v2
- name: Setup PATH
run: |
case "$ARCH" in
"arm64")
echo "/opt/homebrew/bin" >> $GITHUB_PATH
;;
esac
env:
ARCH: ${{ matrix.runtime.arch }}
- name: Checkout git repo
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Install brew dependencies
run: brew bundle --file=- <<< "brew 'qt5'; brew 'openssl'"
- name: Build
env:
CMAKE_OSX_DEPLOYMENT_TARGET: ${{ matrix.target }}
CMAKE_OSX_DEPLOYMENT_TARGET: ${{ matrix.runtime.target }}
run: |
mkdir build
cd build

View file

@ -2,9 +2,13 @@ name: Raspberry Pi
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
concurrency:
group: "${{ github.workflow }}-${{ github.ref || github.run_id }}"
cancel-in-progress: true
jobs:
test-on-pi:
@ -16,7 +20,10 @@ jobs:
GIT_COMMIT: ${{ github.sha }}
steps:
- uses: actions/checkout@v2
- name: Checkout git repo
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Build
run: |

View file

@ -2,13 +2,17 @@ name: Windows
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
concurrency:
group: "${{ github.workflow }}-${{ github.ref || github.run_id }}"
cancel-in-progress: true
jobs:
build-arch64:
runs-on: windows-2019
runs-on: windows-latest
env:
GIT_COMMIT: ${{ github.sha }}
@ -19,7 +23,10 @@ jobs:
QT_LIB_DIR: ${{ github.workspace }}\deps\Qt\5.12.6
steps:
- uses: actions/checkout@v2
- name: Checkout git repo
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Cache Qt
id: cache-qt

View file

@ -1,21 +1,22 @@
name: 'Close stale issues and PRs'
name: "Close stale issues and PRs"
on:
schedule:
- cron: '30 1 * * *'
- cron: "30 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v6
with:
stale-issue-message: 'This issue is stale because it has been open 1 year with no activity. Remove the stale label or add a comment, otherwise this will be closed in 30 days.'
stale-pr-message: 'This PR is stale because it has been open 1 year with no activity. Remove the stale label or add a comment, otherwise this will be closed in 30 days.'
close-issue-message: 'This issue was closed because it has been stale for 1 year with no activity.'
close-pr-message: 'This PR was closed because it has been stale for 1 year with no activity.'
stale-issue-message: "This issue is stale because it has been open 1 year with no activity. Remove the stale label or add a comment, otherwise this will be closed in 30 days."
stale-pr-message: "This PR is stale because it has been open 1 year with no activity. Remove the stale label or add a comment, otherwise this will be closed in 30 days."
close-issue-message: "This issue was closed because it has been stale for 1 year with no activity."
close-pr-message: "This PR was closed because it has been stale for 1 year with no activity."
days-before-issue-stale: 365
days-before-pr-stale: 365
days-before-issue-close: 30
days-before-pr-close: 30
stale-issue-label: 'stale'
stale-pr-label: 'stale'
stale-issue-label: "stale"
stale-pr-label: "stale"

View file

@ -12,6 +12,9 @@ Enhancements:
- #7274 Only build necessary binaries
- #7277 Change start errors to fatal
GitHub Actions:
- #7283 Update all workflows and fix broken macOS workflows
1.14.6
======