|
| 1 | +# This file is part of BOINC. |
| 2 | +# https://boinc.berkeley.edu |
| 3 | +# Copyright (C) 2026 University of California |
| 4 | +# |
| 5 | +# BOINC is free software; you can redistribute it and/or modify it |
| 6 | +# under the terms of the GNU Lesser General Public License |
| 7 | +# as published by the Free Software Foundation, |
| 8 | +# either version 3 of the License, or (at your option) any later version. |
| 9 | +# |
| 10 | +# BOINC is distributed in the hope that it will be useful, |
| 11 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 | +# See the GNU Lesser General Public License for more details. |
| 14 | +# |
| 15 | +# You should have received a copy of the GNU Lesser General Public License |
| 16 | +# along with BOINC. If not, see <http://www.gnu.org/licenses/>. |
| 17 | + |
| 18 | +name: Linux release |
| 19 | +on: |
| 20 | + push: |
| 21 | + branches: [ master ] |
| 22 | + tags: [ 'vboxwrapper/**', 'wrapper/**', 'dockerwrapper/**', 'worker/**' ] |
| 23 | + pull_request: |
| 24 | + branches: [ master ] |
| 25 | + schedule: |
| 26 | + - cron: '0 0 * * *' |
| 27 | + |
| 28 | +concurrency: |
| 29 | + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
| 30 | + cancel-in-progress: true |
| 31 | + |
| 32 | +jobs: |
| 33 | + build-release: |
| 34 | + name: ${{ matrix.type }}-build-release |
| 35 | + runs-on: ubuntu-latest |
| 36 | + container: |
| 37 | + image: debian:buster |
| 38 | + strategy: |
| 39 | + matrix: |
| 40 | + type: [apps, apps-x86, apps-arm64, apps-armhf] |
| 41 | + fail-fast: false |
| 42 | + env: |
| 43 | + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true |
| 44 | + steps: |
| 45 | + - name: Fix debian sources |
| 46 | + run: | |
| 47 | + sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list |
| 48 | + sed -i 's/security.debian.org/archive.debian.org/g' /etc/apt/sources.list |
| 49 | +
|
| 50 | + - name: Install dependencies |
| 51 | + run: | |
| 52 | + apt-get update |
| 53 | + apt-get install -y make build-essential m4 pkg-config autoconf libtool git p7zip-full python3 |
| 54 | +
|
| 55 | + - name: Install dependencies for x86 |
| 56 | + if: success() && matrix.type == 'apps-x86' |
| 57 | + run: | |
| 58 | + dpkg --add-architecture i386 |
| 59 | + apt-get update |
| 60 | + apt-get install -y gcc-multilib g++-multilib libcurl4-openssl-dev:i386 libssl-dev:i386 libzip-dev:i386 |
| 61 | +
|
| 62 | + - name: Install dependencies for x64 |
| 63 | + if: success() && matrix.type == 'apps' |
| 64 | + run: | |
| 65 | + apt-get install -y libcurl4-openssl-dev libssl-dev libzip-dev |
| 66 | +
|
| 67 | + - name: Install dependencies for arm64 |
| 68 | + if: success() && matrix.type == 'apps-arm64' |
| 69 | + run: | |
| 70 | + dpkg --add-architecture arm64 |
| 71 | + apt-get update |
| 72 | + apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu wget ca-certificates libcurl4-openssl-dev:arm64 libssl-dev:arm64 libzip-dev:arm64 |
| 73 | +
|
| 74 | + - name: Install dependencies for armhf |
| 75 | + if: success() && matrix.type == 'apps-armhf' |
| 76 | + run: | |
| 77 | + dpkg --add-architecture armhf |
| 78 | + apt-get update |
| 79 | + apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf binutils-arm-linux-gnueabihf wget ca-certificates libcurl4-openssl-dev:armhf libssl-dev:armhf libzip-dev:armhf |
| 80 | +
|
| 81 | + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd |
| 82 | + with: |
| 83 | + fetch-depth: 2 |
| 84 | + |
| 85 | + - name: Automake |
| 86 | + if: success() |
| 87 | + run: ./_autosetup |
| 88 | + |
| 89 | + - name: Make x64 apps |
| 90 | + if: success() && matrix.type == 'apps' |
| 91 | + run: | |
| 92 | + export CFLAGS="-O3 -flto" |
| 93 | + export CXXFLAGS="-O3 -flto -std=c++11" |
| 94 | + export LDFLAGS="-O3 -flto -static-libstdc++ -s" |
| 95 | + export RELEASE_ARCH=x86_64 |
| 96 | + ./configure --enable-apps --enable-apps-vbox --disable-server --disable-client --disable-manager --disable-shared --enable-static |
| 97 | + make -j $(nproc --all) |
| 98 | +
|
| 99 | + - name: Make x86 apps |
| 100 | + if: success() && matrix.type == 'apps-x86' |
| 101 | + run: | |
| 102 | + export CFLAGS="-O3 -flto -m32" |
| 103 | + export CXXFLAGS="-O3 -flto -m32 -std=c++11" |
| 104 | + export LDFLAGS="-O3 -flto -static-libstdc++ -s -m32" |
| 105 | + export RELEASE_ARCH=i686 |
| 106 | + ./configure --host=i686-linux-gnu --enable-apps --enable-apps-vbox --disable-server --disable-client --disable-manager --disable-shared --enable-static |
| 107 | + make -j $(nproc --all) |
| 108 | +
|
| 109 | + - name: Make arm64 apps |
| 110 | + if: success() && matrix.type == 'apps-arm64' |
| 111 | + run: | |
| 112 | + export CC=aarch64-linux-gnu-gcc |
| 113 | + export CXX=aarch64-linux-gnu-g++ |
| 114 | + export LD=aarch64-linux-gnu-ld |
| 115 | + export CFLAGS="-march=armv8-a -O3 -flto" |
| 116 | + export CXXFLAGS="-march=armv8-a -O3 -flto -std=c++11" |
| 117 | + export LDFLAGS="-march=armv8-a -O3 -flto -static-libstdc++ -s" |
| 118 | + export RELEASE_ARCH=arm64 |
| 119 | + export PKG_CONFIG_LIBDIR=/usr/lib/aarch64-linux-gnu/pkgconfig:/usr/share/pkgconfig |
| 120 | + ./configure --host=aarch64-linux --with-boinc-platform="aarch64-unknown-linux-gnu" --with-boinc-alt-platform="arm-unknown-linux-gnueabihf" --enable-apps --disable-server --disable-manager --disable-client --disable-shared --enable-static |
| 121 | + make -j $(nproc --all) |
| 122 | +
|
| 123 | + - name: Make armhf apps |
| 124 | + if: success() && matrix.type == 'apps-armhf' |
| 125 | + run: | |
| 126 | + export CC=arm-linux-gnueabihf-gcc |
| 127 | + export CXX=arm-linux-gnueabihf-g++ |
| 128 | + export LD=arm-linux-gnueabihf-ld |
| 129 | + export CFLAGS="-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -O3 -flto" |
| 130 | + export CXXFLAGS="-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -O3 -flto -std=c++11" |
| 131 | + export LDFLAGS="-march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -O3 -flto -static-libstdc++ -s" |
| 132 | + export RELEASE_ARCH=armhf |
| 133 | + export PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig |
| 134 | + ./configure --host=arm-linux-gnueabihf --with-boinc-platform="arm-unknown-linux-gnueabihf" --with-boinc-alt-platform="aarch64-unknown-linux-gnu" --enable-apps --disable-server --disable-manager --disable-client --disable-shared --enable-static |
| 135 | + make -j $(nproc --all) |
| 136 | +
|
| 137 | + - name: Prepare logs on failure |
| 138 | + if: ${{ failure() }} |
| 139 | + run: python3 ./deploy/prepare_deployment.py logs |
| 140 | + |
| 141 | + - name: Upload logs on failure |
| 142 | + if: ${{ failure() }} |
| 143 | + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f |
| 144 | + with: |
| 145 | + name: linux_release_logs_${{ matrix.type }}_${{ github.event.pull_request.head.sha }} |
| 146 | + path: deploy/logs.7z |
| 147 | + |
| 148 | + - name: Prepare artifacts for deploy |
| 149 | + if: success() |
| 150 | + run: python3 ./deploy/prepare_deployment.py linux_apps |
| 151 | + |
| 152 | + - name: Upload wrapper artifacts |
| 153 | + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f |
| 154 | + if: success() |
| 155 | + with: |
| 156 | + name: linux_release_${{ matrix.type }}_${{ github.event.pull_request.head.sha }} |
| 157 | + path: deploy/linux_apps.7z |
0 commit comments