i386 build try #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build (arm64) redis | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
branches: | |
- master | |
- '[0-9].[0-9]' | |
- '[0-9].[0-9].[0-9]' | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-buildarm64 | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
start-arm64-runner: | |
name: Start self-hosted EC2 runner | |
runs-on: ubuntu-latest | |
outputs: | |
label: ${{ steps.start-ec2-runner.outputs.label }} | |
ec2-instance-id: ${{ steps.start-ec2-runner.outputs.ec2-instance-id }} | |
steps: | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ secrets.AWS_REGION_ID }} | |
- name: Start EC2 runner | |
id: start-ec2-runner | |
uses: machulav/ec2-github-runner@v2 | |
with: | |
mode: start | |
github-token: ${{ secrets.GH_ACCESS_TOKEN }} | |
ec2-image-id: ${{ secrets.AWS_AMI_ID }} | |
ec2-instance-type: t4g.small | |
subnet-id: ${{ secrets.AWS_SUBNET_ID }} | |
security-group-id: ${{ secrets.AWS_SECGROUP_ID }} | |
debian-bullseye-arm64: | |
uses: ./.github/workflows/REUSABLE-linux.yml | |
secrets: inherit | |
with: | |
docker_image: debian:bullseye-slim | |
deps: apt-get update -qq && apt-get install -qqy build-essential libssl-dev python3 python3-pip jq wget | |
osnick: bullseye | |
arch: arm64 | |
ubuntu-bionic-arm64: | |
needs: start-arm64-runner | |
uses: ./.github/workflows/REUSABLE-linux.yml | |
with: | |
docker_image: ubuntu:18.04 | |
deps: apt-get update -qq && apt-get install -qqy build-essential libssl-dev python3 python3-pip jq wget | |
osnick: ubuntu18.04 | |
arch: arm64 | |
secrets: inherit | |
ubuntu-focal-arm64: | |
needs: start-arm64-runner | |
uses: ./.github/workflows/REUSABLE-linux.yml | |
with: | |
docker_image: ubuntu:20.04 | |
deps: apt-get update -qq && apt-get install -qqy build-essential libssl-dev python3 python3-pip jq wget | |
osnick: ubuntu20.04 | |
arch: arm64 | |
secrets: inherit | |
ubuntu-jammy-arm64: | |
needs: start-arm64-runner | |
uses: ./.github/workflows/REUSABLE-linux.yml | |
with: | |
docker_image: ubuntu:22.04 | |
deps: apt-get update -qq && apt-get install -qqy build-essential libssl-dev python3 python3-pip jq wget | |
osnick: ubuntu22.04 | |
arch: arm64 | |
secrets: inherit | |
rhel7-arm64: | |
uses: ./.github/workflows/REUSABLE-linux.yml | |
secrets: inherit | |
with: | |
docker_image: centos:7 | |
deps: | | |
yum install -y epel-release | |
yum install -y gcc make jemalloc-devel openssl-devel python3 python3-pip jq wget | |
osnick: rhel7 | |
arch: arm64 | |
rhel8-arm64: | |
uses: ./.github/workflows/REUSABLE-linux.yml | |
secrets: inherit | |
with: | |
docker_image: rockylinux:8 | |
deps: | | |
dnf install -y epel-release | |
dnf install -y gcc make jemalloc-devel openssl-devel tar git python3 python3-pip jq wget | |
osnick: rhel8 | |
arch: arm64 | |
rhel9-arm64: | |
uses: ./.github/workflows/REUSABLE-linux.yml | |
secrets: inherit | |
with: | |
docker_image: rockylinux:9 | |
deps: | | |
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm | |
dnf install -y gcc make jemalloc-devel openssl-devel tar git python3 python3-pip jq wget | |
osnick: rhel9 | |
arch: arm64 | |
stop-arm64-runner: | |
name: Stop self-hosted EC2 runner | |
needs: | |
- start-arm64-runner | |
- ubuntu-bionic-arm64 | |
- ubuntu-focal-arm64 | |
- ubuntu-jammy-arm64 | |
- rhel7-arm64 | |
- rhel8-arm64 | |
- rhel9-arm64 | |
runs-on: ubuntu-latest | |
if: ${{ always() }} # required to stop the runner even if the error happened in the previous jobs | |
steps: | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ secrets.AWS_REGION_ID }} | |
- name: Stop EC2 runner | |
uses: machulav/ec2-github-runner@v2 | |
with: | |
mode: stop | |
github-token: ${{ secrets.GH_ACCESS_TOKEN }} | |
label: ${{ needs.start-arm64-runner.outputs.label }} | |
ec2-instance-id: ${{ needs.start-arm64-runner.outputs.ec2-instance-id }} |