Skip to content

Support azure linux 3 arm (#1357) #1359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/event-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
os: jammy rocky9 amazonlinux2 azurelinux3
redis-ref: ${{needs.prepare-values.outputs.redis-ref}}
secrets: inherit
azurelinux3-arm64:
uses: ./.github/workflows/flow-azurelinux3-arm.yml
needs: [prepare-values]
with:
redis-ref: ${{needs.prepare-values.outputs.redis-ref}}
secrets: inherit
linux-valgrind:
uses: ./.github/workflows/flow-linux-x86.yml
needs: [prepare-values]
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/event-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ jobs:
with:
redis-ref: ${{needs.prepare-values.outputs.redis-ref}}
secrets: inherit
azurelinux3-arm64:
uses: ./.github/workflows/flow-azurelinux3-arm.yml
needs: [prepare-values]
with:
redis-ref: ${{needs.prepare-values.outputs.redis-ref}}
secrets: inherit
alpine:
uses: ./.github/workflows/flow-alpine.yml
needs: [prepare-values]
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/event-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
with:
redis-ref: ${{needs.prepare-values.outputs.redis-ref}}
secrets: inherit
azurelinux3-arm64:
uses: ./.github/workflows/flow-azurelinux3-arm.yml
needs: [prepare-values]
with:
redis-ref: ${{needs.prepare-values.outputs.redis-ref}}
secrets: inherit
alpine:
uses: ./.github/workflows/flow-alpine.yml
needs: [prepare-values]
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/event-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
with:
redis-ref: ${{needs.prepare-values.outputs.redis-ref}}
secrets: inherit
azurelinux3-arm64:
uses: ./.github/workflows/flow-azurelinux3-arm.yml
needs: [prepare-values]
with:
redis-ref: ${{needs.prepare-values.outputs.redis-ref}}
secrets: inherit
alpine:
uses: ./.github/workflows/flow-alpine.yml
needs: [prepare-values]
Expand Down
155 changes: 155 additions & 0 deletions .github/workflows/flow-azurelinux3-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
name: Build and Test Azure Linux 3 ARM instances

on:
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
inputs:
redis-ref:
description: 'Redis ref to checkout'
required: true
default: 'unstable'
run-test:
type: boolean
default: true
workflow_call: # Allows to run this workflow from another workflow
inputs:
redis-ref:
description: 'Redis ref to checkout'
type: string
required: true
run-test:
type: boolean
default: true

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
setup-environment:
runs-on: ubuntu-latest
outputs:
TAGGED: ${{ steps.set-env.outputs.TAGGED }}
TAG: ${{ steps.set-env.outputs.TAG }}
BRANCH: ${{ steps.set-env.outputs.BRANCH }}
TAG_OR_BRANCH: ${{ steps.set-env.outputs.TAG }}${{ steps.set-env.outputs.BRANCH }}
redis-ref: ${{ steps.set-env.outputs.redis-ref }}
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: set env
id: set-env
uses: ./.github/actions/setup-env
with:
github-ref: ${{ github.ref }}
redis-ref: ${{ inputs.redis-ref }}

azurelinux3-arm64:
runs-on: ubuntu24-arm64-4-16 # ubuntu24-arm64-2-8
needs: setup-environment
strategy:
matrix:
docker:
- image: "mcr.microsoft.com/azurelinux/base/core:3.0"
nick: "azurelinux3"
install_git: |
tdnf install --noplugins --skipsignature -y ca-certificates git
install_deps: |
tdnf -y update
tdnf install -y \
git \
wget \
gcc \
clang-devel \
llvm-devel \
make \
cmake \
libffi-devel \
openssl-devel \
build-essential \
zlib-devel \
bzip2-devel \
python3-devel \
which \
unzip \
ca-certificates \
python3-pip \
curl \
rsync
defaults:
run:
shell: bash
env:
TAGGED: ${{ needs.setup-environment.outputs.TAGGED }}
VERSION: ${{ needs.setup-environment.outputs.TAG }}
BRANCH: ${{ needs.setup-environment.outputs.BRANCH }}
TAG_OR_BRANCH: ${{ needs.setup-environment.outputs.TAG_OR_BRANCH}}
container:
image: ${{ matrix.docker.image }}
steps:
- name: Install git
run: |
${{ matrix.docker.install_git }}
- name: git checkout
run: |
# Perform checkout
REPO_URL="https://github.com/${{ github.repository }}.git"
# Clone the repository to the current directory
git config --global --add safe.directory /__w/${{ github.repository }}
git clone --recurse-submodules --depth=1 $REPO_URL .
REF=${{github.sha}}
git fetch origin ${REF}
git checkout ${REF}
git submodule update --init --recursive
- name: Install dependencies
run: |
${{ matrix.docker.install_deps }}
- name: Get Redis
run: |
# Perform checkout
REPO_URL="https://github.com/redis/redis.git"
# Clone the repository to the current directory
git clone --recurse-submodules $REPO_URL redis
cd redis
git fetch origin ${{ needs.setup-environment.outputs.redis-ref }}
git checkout ${{ needs.setup-environment.outputs.redis-ref }}
git submodule update --init --recursive
- name: Get Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
rustup update
rustup update nightly
rustup component add rust-src --toolchain nightly
- name: Install python dependencies
run: |
echo ::group::activate venv
python3 -m venv venv
echo "source $PWD/venv/bin/activate" >> ~/.bash_profile
source venv/bin/activate
echo ::endgroup::
echo ::group::install requirements
pip install -q --upgrade setuptools
# Upgrade pip to latest version to ensure ARM64 wheel support
pip install -q --upgrade "pip>=21.0"
# Install compatible Cython version as fallback for source builds
pip install -q "Cython<3.0"
# Prefer binary wheels to avoid compilation issues on ARM64
pip install -q --prefer-binary -r tests/pytest/requirements.txt
pip install -q --prefer-binary -r .install/build_package_requirements.txt
echo ::endgroup::
env:
PIP_BREAK_SYSTEM_PACKAGES: 1
- name: build
uses: ./.github/actions/build-json-module-and-redis-with-cargo
- name: Run tests
uses: ./.github/actions/run-tests
- name: Pack module
uses: ./.github/actions/pack-module
- name: Upload artifacts to S3
uses: ./.github/actions/upload-artifacts-to-s3-without-make
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
github-ref: ${{ github.ref }}
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy