Skip to content

Commit

Permalink
Update Tarball generation for Ubuntu 20.04 Focal Fossa.
Browse files Browse the repository at this point in the history
NodeJS v18 is not compatible with Ubuntu 16.04, due to the GLIBC mismatch.
  • Loading branch information
mcserep committed Apr 30, 2024
1 parent e681750 commit 425cd53
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 76 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ jobs:
## TARBALL JOB
tarball:
needs: parse
if: ${{ github.repository == 'Ericsson/CodeCompass' && (github.ref_name == 'master' || startsWith(github.ref_name, 'release/') == true) }}
if: ${{ github.repository == 'Ericsson/CodeCompass' && (github.ref_name == 'master' || github.ref_name == 'tarball-ubuntu-focal' || startsWith(github.ref_name, 'release/') == true) }}
uses: ./.github/workflows/tarball.yml
secrets:
GITLAB_TRIGGER_TOKEN: ${{ secrets.GITLAB_TRIGGER_TOKEN }}
8 changes: 4 additions & 4 deletions .gitlab/build-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,12 @@ rm -f $PACKAGES_DIR/release-1.10.0.tar.gz
#######

cd $PACKAGES_DIR
wget --no-verbose --no-clobber https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.xz
tar -xf node-v16.20.2-linux-x64.tar.xz -C $DEPS_INSTALL_RUNTIME_DIR
rm -f node-v16.20.2-linux-x64.tar.xz
wget --no-verbose --no-clobber https://nodejs.org/dist/v18.20.2/node-v18.20.2-linux-x64.tar.xz
tar -xf node-v18.20.2-linux-x64.tar.xz -C $DEPS_INSTALL_RUNTIME_DIR
rm -f node-v18.20.2-linux-x64.tar.xz

cd $DEPS_INSTALL_RUNTIME_DIR
mv node-v16.20.2-linux-x64 node-install
mv node-v18.20.2-linux-x64 node-install
export PATH=$DEPS_INSTALL_RUNTIME_DIR/node-install/bin:$PATH

############
Expand Down
77 changes: 6 additions & 71 deletions .gitlab/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,65 +61,14 @@ variables:
echo "GLIBC version: $GLIBC_VERSION"
echo "GLIBCXX versions: $GLIBCXX_VERSIONS"
tarball suse-15:
tarball ubuntu-20.04:
extends: .tarball
image: opensuse/leap:15
image: ubuntu:20.04
cache:
key: "leap"
key: "focal"
variables:
GCC_VERSION: 9.3.0
ODB_VERSION: 2.5.0
before_script:
- zypper refresh
- zypper update -y
# download tools
- zypper install -y curl wget gzip bzip2 unzip ca-certificates
# build tools for CodeCompass
- zypper install -y -t pattern devel_basis
- zypper install -y binutils gcc-c++ gmp-devel
# build tools for OpenLDAP
- zypper install -y groff
# build tools for ccdb-tools
- zypper install -y libffi-devel
# show GLIBC verison
- *show-glibc-version

# Permanently disabled job
# (Distribution package repository metadata not available anymore.)
.tarball suse-42.1:
extends: .tarball
image: opensuse/archive:42.1
cache:
key: "malachite"
variables:
GCC_VERSION: 5.5.0
ODB_VERSION: 2.4.0
before_script:
- zypper refresh
- zypper update -y
# download tools
- zypper install -y curl wget gzip bzip2 unzip ca-certificates
# build tools for CodeCompass
- zypper install -y -t pattern devel_basis
- zypper install -y binutils gcc-c++ gmp-devel
# build tools for OpenLDAP
- zypper install -y groff
# build tools for ccdb-tools
- zypper install -y libffi-devel
# disable SSL certificate check (distribution's cacert is outdated)
- echo "check_certificate = off" >> /etc/wgetrc
- echo insecure >> ~/.curlrc
# show GLIBC verison
- *show-glibc-version

tarball ubuntu-16.04:
extends: .tarball
image: ubuntu:16.04
cache:
key: "xenial"
variables:
GCC_VERSION: 5.5.0
ODB_VERSION: 2.4.0
before_script:
- apt-get update -yqq
# download tools
Expand Down Expand Up @@ -154,22 +103,8 @@ tarball ubuntu-16.04:
- scp -P22 build/codecompass.tar.gz gitlab-deployer@codecompass.net:/var/www/codecompass/$FILENAME
- ssh -p22 gitlab-deployer@codecompass.net "mv -f /var/www/codecompass/$FILENAME /var/www/codecompass/live/wwwroot/tarball/$FILENAME"

upload suse-15:
extends: .upload
variables:
ARCH_SUFFIX: suse-15
needs: ["tarball suse-15"]

# Permanently disabled job
# (Distribution package repository metadata not available anymore.)
.upload suse-42.1:
extends: .upload
variables:
ARCH_SUFFIX: suse-42.1
needs: ["tarball suse-42.1"]

upload ubuntu-16.04:
upload ubuntu-20.04:
extends: .upload
variables:
ARCH_SUFFIX: ubuntu-16.04
needs: ["tarball ubuntu-16.04"]
ARCH_SUFFIX: ubuntu-20.04
needs: ["tarball ubuntu-20.04"]

0 comments on commit 425cd53

Please sign in to comment.