Skip to content

Commit

Permalink
Fix CircleCI jobs for Maven installation and python builds (#693)
Browse files Browse the repository at this point in the history
## Usage and product changes
We fix two CircleCI issues:
* `brew install maven` [has been
failing](https://app.circleci.com/pipelines/github/typedb/typedb-driver/911/workflows/9571978a-e2c7-40cc-afd6-372356f267f7/jobs/7072)
for Rosetta configuration;
* python installation for Linux machines required a different process
after we updated from `python3.8` to `python3.9` as a minimal version.

## Implementation
* for the first issue, we update `xcode` version to match the first
suitable macOS 13 version from [this
table](https://circleci.com/docs/using-macos/#supported-xcode-versions),
which is [required by brew](https://docs.brew.sh/Installation);
* to install python3.9 on an amazonlinux machine, we build it with
`make` as it's absent through `amazon-linux-extras` or `yum`.
  • Loading branch information
farost authored Oct 4, 2024
1 parent f78d518 commit 5f1b2d2
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ executors:

mac-arm64:
macos:
xcode: "13.4.1"
xcode: "14.3.1"
resource_class: macos.m1.medium.gen1
working_directory: ~/typedb-driver

Expand All @@ -64,9 +64,19 @@ commands:
type: string
steps:
- run: |
amazon-linux-extras install python3.9 java-openjdk11 -y
yum install -y git tar gcc gcc-c++ file lsof which procps
ln -s /usr/bin/python3.9 /usr/bin/python3
amazon-linux-extras install java-openjdk11 -y
yum install wget make gcc gcc-c++ openssl-devel bzip2-devel libffi-devel zlib-devel file lsof which procps tar git -y
cd /tmp
wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz
tar -xvf Python-3.9.6.tgz
cd Python-3.9.6
./configure --enable-optimizations --enable-shared
make altinstall
echo "/usr/local/lib" >> /etc/ld.so.conf.d/python3.9.conf
ldconfig
ln -s /usr/local/bin/python3.9 /usr/bin/python3
curl -OL "https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-<<parameters.bazel-arch>>"
mv "bazelisk-linux-<<parameters.bazel-arch>>" /usr/local/bin/bazel
chmod a+x /usr/local/bin/bazel
Expand Down

0 comments on commit 5f1b2d2

Please sign in to comment.