Skip to content

Commit

Permalink
Try to build apps for release on CI
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Koshura <[email protected]>
  • Loading branch information
AenBleidd committed Dec 9, 2023
1 parent 6d7e3fd commit 386abdb
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 12 deletions.
63 changes: 62 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: Linux
on:
push:
branches: [ master, 'client_release/**' ]
tags: [ 'client_release/**' ]
tags: [ 'client_release/**', 'vboxwrapper/**', 'wrapper/**' ]
pull_request:
branches: [ master ]
schedule:
Expand Down Expand Up @@ -200,3 +200,64 @@ jobs:
fail_ci_if_error: true
gcov: true
verbose: false
build-release:
name: ${{ matrix.type }}-build-release
runs-on: ubuntu-latest
container:
image: ubuntu:13.04
env:
AWS_ACCESS_KEY_ID: env.AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: env.AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: env.AWS_DEFAULT_REGION
strategy:
matrix:
type: [apps]
fail-fast: false
steps:
- name: Install dependencies
run: |
sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
apt-get -qq update
apt-get install -y libstdc++6 make build-essential m4 pkg-config autoconf libtool git python3 curl zip unzip tar bison p7zip-full libx11-dev libxft-dev libxext-dev libdbus-1-dev libxi-dev libxtst-dev libxrandr-dev libnotify-dev
- name: Check glibcxx version
run: |
echo "glibcxx version: $(strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX | sort | uniq)"
- uses: actions/checkout@v1
with:
fetch-depth: 2

- name: Automake
if: success()
run: ./_autosetup

- name: Configure apps
if: success() && matrix.type == 'apps'
run: ./configure --enable-apps --enable-apps-vbox --disable-server --disable-client --disable-manager

- name: Make
if: success()
run: make -j $(nproc --all) LDFLAGS="-static-libstdc++ -s"

- name: Prepare logs on failure
if: ${{ failure() }}
run: python ./deploy/prepare_deployment.py logs

- name: Upload logs on failure
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: linux_release_logs_${{ matrix.type }}_${{ github.event.pull_request.head.sha }}
path: deploy/logs.7z

- name: Prepare artifacts for deploy
if: success()
run: python ./deploy/prepare_deployment.py linux_release_${{ matrix.type }}

- name: Upload artifacts
uses: actions/upload-artifact@v3
if: success()
with:
name: linux_release_${{ matrix.type }}_${{ github.event.pull_request.head.sha }}
path: deploy/linux_${{ matrix.type }}.7z
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: Windows
on:
push:
branches: [ master, 'client_release/**' ]
tags: [ 'client_release/**' ]
tags: [ 'client_release/**', 'vboxwrapper/**', 'wrapper/**' ]
pull_request:
branches: [ master ]
schedule:
Expand Down
12 changes: 9 additions & 3 deletions api/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,26 @@ AM_CXXFLAGS += @GLUT_CFLAGS@
endif

lib_LTLIBRARIES = libboinc_api.la
pkgconfig_DATA = libboinc_api.pc
if ENABLE_PKG_CONFIG
pkgconfig_DATA = libboinc_api.pc
endif
libboinc_api_la_SOURCES = $(api_files)
libboinc_api_la_LDFLAGS = -version-number $(LIBBOINC_VERSION)

if BUILD_GRAPHICS_API
lib_LTLIBRARIES += libboinc_graphics2.la
pkgconfig_DATA += libboinc_graphics2.pc
if ENABLE_PKG_CONFIG
pkgconfig_DATA += libboinc_graphics2.pc
endif
libboinc_graphics2_la_SOURCES = $(graphics2_files)
libboinc_graphics2_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_srcdir)/samples/image_libs
libboinc_graphics2_la_LDFLAGS = -version-number $(LIBBOINC_VERSION) -ljpeg
endif #BUILD_GRAPHICS_API

lib_LTLIBRARIES += libboinc_opencl.la
pkgconfig_DATA += libboinc_opencl.pc
if ENABLE_PKG_CONFIG
pkgconfig_DATA += libboinc_opencl.pc
endif
libboinc_opencl_la_SOURCES = $(opencl_files)
libboinc_opencl_la_LDFLAGS = -version-number $(LIBBOINC_VERSION)

Expand Down
16 changes: 13 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ SAH_LINKS
AC_LANG_PUSH(C)
AM_PROG_CC_C_O

PKG_PROG_PKG_CONFIG
PKG_INSTALLDIR

m4_divert_once([HELP_ENABLE],
AS_HELP_STRING([BOINC Default enable values], [--enable-server --enable-client --enable-libraries --enable-manager: builds server, client, and libraries]))

Expand Down Expand Up @@ -232,6 +229,17 @@ AC_ARG_ENABLE(pkg-manager,
],
[])

AC_ARG_ENABLE(pks-config,
AS_HELP_STRING([--enable-pkg-config],
[Adds support of pgkconfig files.]),
[enable_pkg_config=${enableval}],
[enable_pkg_config=no])

if test "${enable_pkg_config}" = yes ; then
PKG_PROG_PKG_CONFIG
PKG_INSTALLDIR
fi

BOINC_SET_COMPILE_FLAGS

configured_to_build=
Expand Down Expand Up @@ -1151,6 +1159,8 @@ AM_CONDITIONAL(INSTALL_HEADERS, [test "${enable_install_headers}" = yes])
AM_CONDITIONAL(HAVE_CUDA_LIB, [test "${enable_client}" = yes -a -f ./coprocs/CUDA/posix/${boinc_platform}/libcudart.so])
AM_CONDITIONAL(BUILD_WITH_OPENCL, [test "x$with_opencl" = "xyes"])

AMCONDITIONAL(ENABLE_PKG_CONFIG, [test "${enable_pkg_config}" = yes])

dnl ======================================================================
dnl some more vodoo required for building portable client-binary (client, clientgui)
dnl ======================================================================
Expand Down
12 changes: 9 additions & 3 deletions lib/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ noinst_HEADERS = \
unix_util.h

lib_LTLIBRARIES = libboinc.la
pkgconfig_DATA = libboinc.pc
if ENABLE_PKG_CONFIG
pkgconfig_DATA = libboinc.pc
endif
libboinc_la_SOURCES = $(generic_sources) $(mac_sources) $(win_sources)
libboinc_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
libboinc_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
Expand All @@ -192,7 +194,9 @@ libboinc_la_LIBADD =

if ENABLE_BOINCCRYPT
lib_LTLIBRARIES += libboinc_crypt.la
pkgconfig_DATA += libboinc_crypt.pc
if ENABLE_PKG_CONFIG
pkgconfig_DATA += libboinc_crypt.pc
endif
libboinc_crypt_la_SOURCES = crypt.cpp
libboinc_crypt_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) $(SSL_CFLAGS)
libboinc_crypt_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) $(SSL_CXXFLAGS)
Expand All @@ -202,7 +206,9 @@ endif

if ENABLE_FCGI
lib_LTLIBRARIES += libboinc_fcgi.la
pkgconfig_DATA += libboinc_fcgi.pc
if ENABLE_PKG_CONFIG
pkgconfig_DATA += libboinc_fcgi.pc
endif
libboinc_fcgi_la_SOURCES = $(libfcgi_sources) $(mac_sources) $(win_sources)
libboinc_fcgi_la_CFLAGS = -D_USING_FCGI_ $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
libboinc_fcgi_la_CXXFLAGS = -D_USING_FCGI_ $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
Expand Down
4 changes: 3 additions & 1 deletion zip/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ libboinc_zip_sources += \
endif

lib_LTLIBRARIES = libboinc_zip.la
pkgconfig_DATA = libboinc_zip.pc
if ENABLE_PKG_CONFIG
pkgconfig_DATA = libboinc_zip.pc
endif
libboinc_zip_la_SOURCES = $(libboinc_zip_sources)
libboinc_zip_la_LDFLAGS = -version-number $(LIBBOINC_VERSION)
libboinc_zip_la_LIBADD =
Expand Down

0 comments on commit 386abdb

Please sign in to comment.