Skip to content

Commit 68413c7

Browse files
authored
ci: upgrade gcc to v13 in arm64 release workflow (#468)
* ci: release workflow debug * ci: debug release workflow * ci: debug release workflow * ci: add gcc upgrade step in release workflow * revert debug change * native wrappers test debug * fix: replace mc config command with mc alias * revert debug change
1 parent b7e103c commit 68413c7

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,36 @@ jobs:
5252
with:
5353
fetch-depth: 0
5454

55+
- name: upgrade gcc to 13 on Ubuntu 20.04
56+
run: |
57+
ubuntu_version=$(lsb_release -rs)
58+
echo "Detected Ubuntu version: $ubuntu_version"
59+
60+
if [[ "$ubuntu_version" == "20.04" ]]; then
61+
echo "Upgrading GCC to version 13 on Ubuntu 20.04..."
62+
63+
sudo apt update
64+
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
65+
sudo apt update
66+
sudo apt install -y build-essential gcc-13 g++-13
67+
68+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 100
69+
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 100
70+
71+
echo "Using GCC version:"
72+
gcc --version
73+
else
74+
echo "No upgrade needed for this version."
75+
fi
76+
5577
- name: build release artifacts
5678
run: |
5779
cd wrappers
5880
5981
# Add postgres package repo and install requested postgres version
6082
sudo apt update
6183
sudo apt remove -y postgres*
62-
sudo apt -y install curl ca-certificates build-essential pkg-config libssl-dev
84+
sudo apt -y install curl ca-certificates pkg-config libssl-dev
6385
sudo install -d /usr/share/postgresql-common/pgdg
6486
sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
6587
. /etc/os-release

wrappers/.ci/docker-compose-native.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ services:
154154
- ../dockerfiles/s3/iceberg_seed.py:/iceberg_seed.py
155155
entrypoint: |
156156
/bin/sh -c "
157-
until (/mc config host add s3 http://s3:8000 admin password) do echo '...waiting...' && sleep 1; done;
157+
until (/mc alias set s3 http://s3:8000 admin password) do echo '...waiting...' && sleep 1; done;
158158
/mc rm -r --force s3/warehouse;
159159
/mc mb s3/warehouse;
160160
/mc policy set public s3/warehouse;

0 commit comments

Comments
 (0)