diff --git a/.github/workflows/create-build.yml b/.github/workflows/create-build.yml index 35fff1dae..a61ca7efc 100644 --- a/.github/workflows/create-build.yml +++ b/.github/workflows/create-build.yml @@ -29,7 +29,7 @@ jobs: id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.RELEASE_EVENT_PROPAGATION_TOKEN }} with: tag_name: ${{ steps.build.outputs.next-build }} release_name: ${{ steps.build.outputs.next-build }} diff --git a/.github/workflows/job-build-raspberry-pi.yaml b/.github/workflows/job-build-raspberry-pi.yaml new file mode 100644 index 000000000..f6d9a5c27 --- /dev/null +++ b/.github/workflows/job-build-raspberry-pi.yaml @@ -0,0 +1,78 @@ +name: Raspberry Pi + +on: + release: + types: [created] + +jobs: + build-on-pi: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [[self-hosted, linux, ARM, pi-3], [self-hosted, linux, ARM64, pi-4]] + enterprise: ['1', ''] + env: + GIT_COMMIT: ${{ github.sha }} + DEB_BUILD_OPTIONS: parallel=1 + SYNERGY_ENTERPRISE: ${{ matrix.enterprise }} + + steps: + - uses: actions/checkout@v2 + + - name: Version Info + id: version + run: | + python3 CI/build_version.py + mkdir -p version-info; cd version-info + cmake .. + cd .. + . ./version-info/version + SYNERGY_VERSION="$SYNERGY_VERSION_MAJOR.$SYNERGY_VERSION_MINOR.$SYNERGY_VERSION_PATCH" + SYNERGY_REVISION=`git rev-parse --short=8 HEAD` + SYNERGY_DEB_VERSION="${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}" + echo "::set-output name=SYNERGY_VERSION_STAGE::${SYNERGY_VERSION_STAGE}" + echo "::set-output name=SYNERGY_VERSION_BUILD::${SYNERGY_VERSION_BUILD}" + 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}" + if [$SYNERGY_ENTERPRISE == '1'] + then + echo "::set-output name=SYNERGY_REMOTE_FOLDER::synergy-core/v1-core-enterprise/${SYNERGY_VERSION}/${SYNERGY_VERSION_STAGE}/b${SYNERGY_VERSION_BUILD}-${SYNERGY_REVISION}" + echo "::set-output name=SYNERGY_PACKAGE_NAME::synergy-enterprise" + else + echo "::set-output name=SYNERGY_REMOTE_FOLDER::synergy-core/v1-core-standard/${SYNERGY_VERSION}/${SYNERGY_VERSION_STAGE}/b${SYNERGY_VERSION_BUILD}-${SYNERGY_REVISION}" + echo "::set-output name=SYNERGY_PACKAGE_NAME::synergy" + fi + rm -rf version-info + + - 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 }} + run: | + dch --create --package "${PACKAGE_NAME}" --controlmaint --distribution unstable --newversion $SYNERGY_DEB_VERSION "Initial release" + export GPG_TTY=$(tty) + debuild --preserve-envvar SYNERGY_* --preserve-envvar GIT_COMMIT -us -uc + mkdir -p package + cd .. + filename=$(ls synergy*${SYNERGY_REVISION}*.deb) + filename_new="${PACKAGE_NAME}_${SYNERGY_VERSION}-${SYNERGY_VERSION_STAGE}.${SYNERGY_REVISION}_raspios${filename##*${SYNERGY_REVISION}}" + mv $filename ${{ github.workspace }}/package/$filename_new + cd ${{ github.workspace }}/package + md5sum $filename_new >> ${filename_new}.checksum.txt + sha1sum $filename_new >> ${filename_new}.checksum.txt + sha256sum $filename_new >> ${filename_new}.checksum.txt + + - name: Send package to Sandor + uses: horochx/deploy-via-scp@master + with: + host: ${{ secrets.SANDOR_HOST }} + user: ${{ secrets.SANDOR_USERNAME }} + key: ${{ secrets.SANDOR_KEY }} + local: "./package/*" + remote: "${{ steps.version.outputs.SYNERGY_REMOTE_FOLDER }}" diff --git a/.github/workflows/job-build-linux-centos.yml b/.github/workflows/job-test-linux-centos.yml similarity index 100% rename from .github/workflows/job-build-linux-centos.yml rename to .github/workflows/job-test-linux-centos.yml diff --git a/.github/workflows/job-build-linux-debian.yml b/.github/workflows/job-test-linux-debian.yml similarity index 100% rename from .github/workflows/job-build-linux-debian.yml rename to .github/workflows/job-test-linux-debian.yml diff --git a/.github/workflows/job-build-linux-fedora.yml b/.github/workflows/job-test-linux-fedora.yml similarity index 100% rename from .github/workflows/job-build-linux-fedora.yml rename to .github/workflows/job-test-linux-fedora.yml diff --git a/.github/workflows/job-build-linux-ubuntu.yml b/.github/workflows/job-test-linux-ubuntu.yml similarity index 100% rename from .github/workflows/job-build-linux-ubuntu.yml rename to .github/workflows/job-test-linux-ubuntu.yml diff --git a/.github/workflows/job-build-mac.yml b/.github/workflows/job-test-mac.yml similarity index 100% rename from .github/workflows/job-build-mac.yml rename to .github/workflows/job-test-mac.yml diff --git a/.github/workflows/job-test-raspberry-pi.yaml b/.github/workflows/job-test-raspberry-pi.yaml new file mode 100644 index 000000000..3438b98a1 --- /dev/null +++ b/.github/workflows/job-test-raspberry-pi.yaml @@ -0,0 +1,28 @@ +name: Raspberry Pi + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test-on-pi: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [[self-hosted, linux, ARM, pi-3], [self-hosted, linux, ARM64, pi-4]] + env: + GIT_COMMIT: ${{ github.sha }} + + steps: + - uses: actions/checkout@v2 + + - name: Build + run: | + mkdir -p build; cd build + cmake -DCMAKE_BUILD_TYPE=Release .. + make + + - name: Run unit test + run: ./build/bin/unittests diff --git a/.github/workflows/job-build-windows.yml b/.github/workflows/job-test-windows.yml similarity index 100% rename from .github/workflows/job-build-windows.yml rename to .github/workflows/job-test-windows.yml diff --git a/ChangeLog b/ChangeLog index dca78e9f2..6abbb68e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24,7 +24,7 @@ Enhancements: - #6931 Update build pipeline to support macOS 10.13 - #6937 Modern C++ compiler for centOS7 - #6938 Remove auto config message from the main window - +- #6941 Add Raspberry Pi Builds v1.13.0-stable ===========