Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
Update README and fix gh installation, fixes #7 (#8)
Browse files Browse the repository at this point in the history
* Use Ubuntu 22.04

* Update gh installation technique, fixes #7
  • Loading branch information
rfay authored Sep 14, 2023
1 parent 3db53a5 commit baf8266
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
BUILDKIT_PROGRESS: plain
# Builds on arm64
machine:
image: ubuntu-2004:2022.10.1
image: ubuntu-2204:2023.07.2
resource_class: arm.large
steps:
- checkout
Expand Down
5 changes: 3 additions & 2 deletions .circleci/linux_circle_vm_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ if ! docker buildx inspect ddev-builder-multi --bootstrap >/dev/null; then docke
docker buildx inspect --bootstrap

# Install github's gh tool
type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y)
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt -qq update \
&& sudo apt -qq install gh -y
&& sudo apt update \
&& sudo apt install gh -y
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Current version: `8.0.34-29`
To build,

* Lookup the latest version at <https://www.percona.com/software/mysql-database/percona-xtrabackup>
* Change the version above and commit and push it
* Change the version above and commit and push it. This extra commit is essential, because otherwise the tag won't be unique.
* Create a release with the desired tag, for example `8.0.34-29`. It will build
and push the arm64 version to the release.

Expand Down
4 changes: 2 additions & 2 deletions xtrabackup-8.0/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# This script builds percona-xtrabackup-8.0 for arm64
# It's intended to run on an Ubuntu 20.04 arm64 machine, like CircleCI arm64
# It's intended to run on an Ubuntu 22.04 arm64 machine, like CircleCI arm64

set -eu -o pipefail
VERSION="$(git describe --tags)"
Expand All @@ -25,7 +25,7 @@ if [ ! -f ~/tmp/percona-xtrabackup.tar.gz ]; then
fi
mkdir -p percona-xtrabackup
tar -C percona-xtrabackup --strip-components=1 -xzf ~/tmp/percona-xtrabackup.tar.gz
mkdir -p build install
mkdir -p build install
cd percona-xtrabackup

# Since DOWNLOAD_BOOST seems to fail, we'll pre-download it
Expand Down

0 comments on commit baf8266

Please sign in to comment.