Skip to content

Commit

Permalink
Move scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Paleologue committed Aug 10, 2021
1 parent f90d2ba commit 583dcd0
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 26 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,20 @@ jobs:
run: mkdir -p /tmp/workspace

- name: ICU
working-directory: scripts/icu
run: bash build.sh
working-directory: scripts
run: bash build_icu.sh

- name: ZLib
working-directory: scripts/zlib
run: bash build.sh
working-directory: scripts
run: bash build_zlib.sh

- name: Boost
working-directory: scripts/boost
run: bash build.sh
working-directory: scripts
run: bash build_boost.sh

- name: OpenSSL
working-directory: scripts/openssl
run: bash build.sh
working-directory: scripts
run: bash build_openssl.sh

- name: Pre-Release Packages
uses: "marvinpinto/action-automatic-releases@latest"
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ jobs:
run: mkdir -p /tmp/workspace

- name: ICU
working-directory: scripts/icu
run: bash build.sh
working-directory: scripts
run: bash build_icu.sh

- name: ZLib
working-directory: scripts/zlib
run: bash build.sh
working-directory: scripts
run: bash build_zlib.sh

- name: Boost
working-directory: scripts/boost
run: bash build.sh
working-directory: scripts
run: bash build_boost.sh

- name: OpenSSL
working-directory: scripts/openssl
run: bash build.sh
working-directory: scripts
run: bash build_openssl.sh

- name: Release Packages
uses: "marvinpinto/action-automatic-releases@latest"
Expand Down
2 changes: 1 addition & 1 deletion scripts/boost/build.sh → scripts/build_boost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function build_and_install()
curl -L -v "${PKG_URL}" | tar -C ${EXTRACT_DIR}/ -xz
cd ${EXTRACT_DIR}/boost_1_${LIB_VER}_0/
build_and_install ${INSTALL_DIR}
sudo echo "${LIB_VER}" >> ${INSTALL_DIR}/VERSION
sudo echo '${LIB_VER}' | sudo tee -a ${INSTALL_DIR}/VERSION

# install on the system for the next tasks
build_and_install
Expand Down
3 changes: 1 addition & 2 deletions scripts/eigen3/build.sh → scripts/build_eigen3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ function build_and_install()
git clone ${GIT_URL} ${EXTRACT_DIR} -b ${LIB_VER}
cd ${EXTRACT_DIR}
build_and_install ${INSTALL_DIR}
sudo echo "${LIB_VER}" >> ${INSTALL_DIR}/VERSION

sudo echo '${LIB_VER}' | sudo tee -a ${INSTALL_DIR}/VERSION

# install on the system for the next tasks
build_and_install
Expand Down
2 changes: 1 addition & 1 deletion scripts/icu/build.sh → scripts/build_icu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function build_and_install()
git clone ${GIT_URL} ${EXTRACT_DIR} -b ${LIB_VER}
cd ${EXTRACT_DIR}/icu4c/source
build_and_install ${INSTALL_DIR}
sudo echo "${LIB_VER}" >> ${INSTALL_DIR}/VERSION
sudo echo '${LIB_VER}' | sudo tee -a ${INSTALL_DIR}/VERSION

# install on the system for the next tasks
build_and_install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function build_and_install()
git clone ${GIT_URL} ${EXTRACT_DIR} -b ${LIB_VER}
cd ${EXTRACT_DIR}
build_and_install ${INSTALL_DIR}
sudo echo "${LIB_VER}" >> ${INSTALL_DIR}/VERSION
sudo echo '${LIB_VER}' | sudo tee -a ${INSTALL_DIR}/VERSION

# install on the system for the next tasks
build_and_install
Expand Down
2 changes: 1 addition & 1 deletion scripts/libusb/build.sh → scripts/build_libusb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function build_and_install()
git clone ${GIT_URL} ${EXTRACT_DIR} -b ${LIB_VER}
cd ${EXTRACT_DIR}
build_and_install ${INSTALL_DIR}
sudo echo "${LIB_VER}" >> ${INSTALL_DIR}/VERSION
sudo echo '${LIB_VER}' | sudo tee -a ${INSTALL_DIR}/VERSION

# install on the system for the next tasks
build_and_install
Expand Down
2 changes: 1 addition & 1 deletion scripts/openssl/build.sh → scripts/build_openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function build_and_install()
git clone ${GIT_URL} ${EXTRACT_DIR} -b ${LIB_VER}
cd ${EXTRACT_DIR}
build_and_install ${INSTALL_DIR}
sudo echo "${LIB_VER}" >> ${INSTALL_DIR}/VERSION
sudo echo '${LIB_VER}' | sudo tee -a ${INSTALL_DIR}/VERSION

# install on the system for the next tasks
build_and_install
Expand Down
2 changes: 1 addition & 1 deletion scripts/sqlite3/build.sh → scripts/build_sqlite3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function build_and_install()
mkdir -p "${EXTRACT_DIR}" && cd "${EXTRACT_DIR}"
wget "${PKG_URL}" && tar -xf "sqlite-autoconf-${LIB_VER}.tar.gz" && cd "sqlite-autoconf-${LIB_VER}"
build_and_install ${INSTALL_DIR}
sudo echo "${LIB_VER}" >> ${INSTALL_DIR}/VERSION
sudo echo '${LIB_VER}' | sudo tee -a ${INSTALL_DIR}/VERSION

# install on the system for the next tasks
build_and_install
Expand Down
2 changes: 1 addition & 1 deletion scripts/tinyxml/build.sh → scripts/build_tinyxml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function build_and_install()
git clone ${GIT_URL} ${EXTRACT_DIR} -b ${LIB_VER}
cd ${EXTRACT_DIR}
build_and_install ${INSTALL_DIR}
sudo echo "${LIB_VER}" >> ${INSTALL_DIR}/VERSION
sudo echo '${LIB_VER}' | sudo tee -a ${INSTALL_DIR}/VERSION

# install on the system for the next tasks
build_and_install
Expand Down
2 changes: 1 addition & 1 deletion scripts/zlib/build.sh → scripts/build_zlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function build_and_install()
git clone ${GIT_URL} ${EXTRACT_DIR} -b ${LIB_VER}
cd ${EXTRACT_DIR}
build_and_install ${INSTALL_DIR}
echo "${LIB_VER}" >> ${INSTALL_DIR}/VERSION
sudo echo '${LIB_VER}' | sudo tee -a ${INSTALL_DIR}/VERSION

# install on the system for the next tasks
build_and_install
Expand Down
6 changes: 6 additions & 0 deletions scripts/functions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function clone_and_cd {
git clone ${GIT_URL} ${EXTRACT_DIR} -b ${LIB_VER}
cd ${EXTRACT_DIR}
}

export -f clone_and_cd

0 comments on commit 583dcd0

Please sign in to comment.