* 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
80 lines
2 KiB
YAML
80 lines
2 KiB
YAML
name: Build Release
|
|
|
|
on:
|
|
release:
|
|
types: [created]
|
|
|
|
jobs:
|
|
build-linux-release:
|
|
runs-on: ubuntu-latest
|
|
container: symless/synergy-core:ubuntu20.04
|
|
|
|
env:
|
|
GIT_COMMIT: ${{ github.sha }}
|
|
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
id: build-script
|
|
run: ./scripts/buildCoreLinux.sh
|
|
|
|
- name: Upload binaries to release
|
|
uses: svenstaro/upload-release-action@v2
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: ${{ steps.build-script.outputs.location }}
|
|
asset_name: ${{ steps.build-script.outputs.name }}
|
|
tag: ${{ github.ref }}
|
|
overwrite: false
|
|
|
|
build-macos-release:
|
|
runs-on: macos-10.15
|
|
|
|
env:
|
|
GIT_COMMIT: ${{ github.sha }}
|
|
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
id: build-script
|
|
run: ./scripts/buildCoreMacos.sh
|
|
|
|
- name: Upload binaries to release
|
|
uses: svenstaro/upload-release-action@v2
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: ${{ steps.build-script.outputs.location }}
|
|
asset_name: ${{ steps.build-script.outputs.name }}
|
|
tag: ${{ github.ref }}
|
|
overwrite: false
|
|
|
|
build-windows-release:
|
|
runs-on: windows-2019
|
|
|
|
env:
|
|
GIT_COMMIT: ${{ github.sha }}
|
|
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install OpenSSL (full)
|
|
run: choco install openssl --no-progress
|
|
|
|
- name: Build
|
|
id: build-script
|
|
shell: pwsh
|
|
run: ./scripts/buildCoreWindows.ps1
|
|
|
|
- name: Upload binaries to release
|
|
uses: svenstaro/upload-release-action@v2
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: ${{ steps.build-script.outputs.location }}
|
|
asset_name: ${{ steps.build-script.outputs.name }}
|
|
tag: ${{ github.ref }}
|
|
overwrite: false
|