-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BDDE: Move setup from CI config to script
Allow seamless updates for all users.
- Loading branch information
Showing
4 changed files
with
64 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#! /bin/bash | ||
# | ||
# Copyright 2024 Alexander Grund | ||
# Distributed under the Boost Software License, Version 1.0. | ||
# (See accompanying file LICENSE_1_0.txt or copy at | ||
# http://www.boost.org/LICENSE_1_0.txt) | ||
# | ||
# Setup the Boost Docker Development Environment (BDDE) | ||
# Requires a Linux environment with root/sudo privileges | ||
|
||
set -ex | ||
|
||
$(dirname "${BASH_SOURCE[0]}")/../setup_bdde.sh | ||
|
||
echo "$(pwd)/bdde/bin/linux" >> ${GITHUB_PATH} | ||
|
||
for var in "${!BDDE_@}"; do | ||
echo "$var=${!var}" >> ${GITHUB_ENV} | ||
done | ||
|
||
echo "B2_WRAPPER=bdde" >> ${GITHUB_ENV} | ||
|
||
if [[ "${BDDE_FIX_MANIFEST:-yes}" == "yes" ]]; then | ||
# Avoid: /usr/bin/windres: Can't detect architecture. | ||
echo "B2_DONT_EMBED_MANIFEST=1" >> ${GITHUB_ENV} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#! /bin/bash | ||
# | ||
# Copyright 2024 Alexander Grund | ||
# Distributed under the Boost Software License, Version 1.0. | ||
# (See accompanying file LICENSE_1_0.txt or copy at | ||
# http://www.boost.org/LICENSE_1_0.txt) | ||
# | ||
# Setup the Boost Docker Development Environment (BDDE) | ||
# | ||
# The BDDE project at https://github.com/jeking3/bdde includes | ||
# build containers for different operating systems and architectures | ||
# using multiarch containers. | ||
# This allows e.g. building in a big-endian environment on CI | ||
# Simply set $BDDE_DISTRO, $BDDE_EDITION & $BDDE_ARCH | ||
# and run your commands with the prefix `bdde`, e.g. `bdde true` | ||
# | ||
# Requires a Linux environment with root/sudo privileges | ||
|
||
set -ex | ||
|
||
if [ -f "/etc/debian_version" ]; then | ||
sudo apt-get install --no-install-recommends -y binfmt-support qemu-user-static | ||
fi | ||
|
||
# this prepares the VM for multiarch docker | ||
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | ||
|
||
git clone --depth=1 https://github.com/jeking3/bdde.git | ||
|
||
export PATH="$(pwd)/bdde/bin/linux:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters