1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-16 03:44:56 +02:00

Merge branch 'rpm-pkg' into develop

This commit is contained in:
Henrik Hautakoski 2023-04-05 19:38:21 +02:00
commit 61ce4c751d
3 changed files with 64 additions and 2 deletions

View file

@ -16,7 +16,7 @@ jobs:
build-opts: --cli --no-gui -t Release --pkg-type deb
- component: gui
build-opts: --no-cli --gui -t Release --pkg-type deb
name: ${{matrix.os}} (${{matrix.component}})
name: DBM ${{matrix.os}} (${{matrix.component}})
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v1
@ -50,6 +50,55 @@ jobs:
asset_path: ${{ steps.package.outputs.filename }}
asset_content_type: application/x-deb
# RPM package for redhat based systems.
rpm:
strategy:
matrix:
container: [ "fedora:36" ]
component: [ cli, gui ]
include:
- component: cli
build-opts: --cli --no-gui -t Release --pkg-type rpm
- component: gui
build-opts: --no-cli --gui -t Release --pkg-type rpm
name: RPM ${{matrix.container}} (${{matrix.component}})
runs-on: ubuntu-latest
container: ${{ matrix.container}}
steps:
- uses: actions/checkout@v1
- name: Dependancies
run: |
sudo dnf install -y util-linux rpmdevtools git \
gcc-12.2.1-4.fc36.x86_64 \
gcc-c++-12.2.1-4.fc36.x86_64 \
cmake-3.25.2-1.fc36.x86_64 \
openssl1.1-devel-1.1.1q-1.fc36.x86_64
- name: Qt
if: startsWith(matrix.component, 'gui')
shell: bash
run: |
sudo dnf install -y qt5-qtbase-devel-5.15.3-1.fc36.x86_64
- name: Package
id: package
run: |
./build.sh ${{matrix.build-opts}}
FILE=$(ls build/eosio-*.rpm | head -1)
echo "::set-output name=filename::$FILE"
echo "::set-output name=name::$(basename $FILE)"
- name: Upload
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_name: ${{ steps.package.outputs.name }}
asset_path: ${{ steps.package.outputs.filename }}
asset_content_type: application/octet-stream
# Windows installer
windows:
strategy:

View file

@ -29,7 +29,7 @@ while true; do
;;
--pkg-type)
shift
[[ ! "$1" =~ ^(nsis|deb|zip|tgz)$ ]] && {
[[ ! "$1" =~ ^(nsis|deb|rpm|zip|tgz)$ ]] && {
echo "Incorrect package type '$1' provided"
usage
}

View file

@ -97,6 +97,19 @@ set( CPACK_DEBIAN_PACKAGE_HOMEPAGE "${PROJECT_HOMEPAGE_URL}" )
set( CPACK_DEB_COMPONENT_INSTALL ON )
# RPM
# Always build components for rpm packages
set( CPACK_RPM_COMPONENT_INSTALL ON )
# Same as with DEB package.
set( CPACK_RPM_PACKAGE_HOMEPAGE "${PROJECT_HOMEPAGE_URL}" )
set( CPACK_RPM_PACKAGE_RELEASE_DIST ON )
set( CPACK_RPM_PACKAGE_RELEASE "1" CACHE STRING "RPM package release version" )
set( CPACK_RPM_PACKAGE_LICENSE "MIT" )
set( CPACK_RPM_FILE_NAME "RPM-DEFAULT" )
# --------------------------------
# Generator default
# --------------------------------