Remove workflows for slow self-hosted RPi runners (#7319)

* Delete job-build-raspberry-pi.yaml

* Update ChangeLog

* Delete job-test-raspberry-pi.yaml
This commit is contained in:
Nick Bolton 2024-01-09 12:21:06 +00:00 committed by GitHub
parent daf9292c80
commit fe8f405fe8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 127 deletions

View file

@ -1,92 +0,0 @@
name: Raspberry Pi
on:
release:
types: [created]
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]
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"
steps:
- name: Checkout git repo
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Version Info
id: version
run: |
python3 CI/build_version.py
mkdir -p version-info && cd version-info && cmake .. && cd ..
. ./version-info/version
rm -rf version-info
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}"
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
run: |
sed -i "s/ synergy/ ${PACKAGE_NAME}/g" ./debian/control
python3 CI/deb_changelog.py "${PACKAGE_NAME}" "${SYNERGY_DEB_VERSION}"
debuild --preserve-envvar SYNERGY_* --preserve-envvar GIT_COMMIT -us -uc
mkdir -p package
cd ..
filename=$(ls ${PACKAGE_NAME}_*${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
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'"
uses: garygrossgarten/github-action-scp@v0.7.3
with:
local: "${{ github.workspace }}/package/"
remote: "${{ secrets.BINARIES_SSH_DIR }}/${{ steps.version.outputs.SYNERGY_REMOTE_FOLDER }}/"
host: ${{ secrets.BINARIES_SSH_HOST }}
username: ${{ secrets.BINARIES_SSH_USER }}
privateKey: ${{ secrets.BINARIES_SSH_KEY }}

View file

@ -1,35 +0,0 @@
name: Raspberry Pi
on:
push:
branches: [master]
pull_request:
branches: [master]
concurrency:
group: "${{ github.workflow }}-${{ github.ref || github.run_id }}"
cancel-in-progress: true
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:
- name: Checkout git repo
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Build
run: |
mkdir -p build; cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
- name: Run unit test
run: ./build/bin/unittests

View file

@ -18,6 +18,7 @@ CI changes:
- #7313 Fix CodeQL workflow: Failed to perl 404 Not Found
- #7317 Bump sonar-scanner-cli to 5.0.1.3006
- #7318 Remove Azure Pipelines config entirely
- #7319 Remove workflows for slow self-hosted RPi runners
# 1.14.6