From 4e894e813f66285fbdb3b962d30c793013eedd35 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 25 Feb 2024 23:47:04 +0300 Subject: [PATCH] CI(GHActions): Build on Linux/aarch64 --- .github/workflows/test-publish.yaml | 33 +++++++++++++++++++++++++++++ docs/news.rst | 4 ++++ 2 files changed, 37 insertions(+) diff --git a/.github/workflows/test-publish.yaml b/.github/workflows/test-publish.yaml index 25966af3..416a4a7e 100644 --- a/.github/workflows/test-publish.yaml +++ b/.github/workflows/test-publish.yaml @@ -126,3 +126,36 @@ jobs: skipIfReleaseExists: false updateOnlyUnreleased: false if: ${{ startsWith(github.ref, 'refs/tags/') }} + + - name: Build on Linux/aarch64 + uses: uraimo/run-on-arch-action@v2 + with: + arch: aarch64 + distro: ubuntu22.04 + # Mount the repo directory as /cheetah3 in the container + dockerRunArgs: | + --volume "${PWD}:/cheetah3" + env: | + PY_VER: ${{ matrix.python-version }} + RUNNER_OS: ${{ runner.os }} + install: | + set -ex + apt-get update -q -y + apt-get install -q -y curl + run: | + set -ex + curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" + bash Miniforge3-$(uname)-$(uname -m).sh -b + source "$HOME"/miniforge3/etc/profile.d/conda.sh + conda update -n base -c conda-forge --yes conda + "$HOME"/miniforge3/condabin/conda create -n $PY_VER --yes python=$PY_VER + conda activate $PY_VER + python --version + pip --version + cd /cheetah3 + ls -lAF . + ls -lAF devscripts + ls -lAF devscripts/CI + ls -lAF devscripts/CI/ghactions-release + exec devscripts/CI/ghactions-release + if: ${{ runner.os == 'Linux' }} diff --git a/docs/news.rst b/docs/news.rst index 4f2d7d7c..010c639c 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -4,6 +4,10 @@ News Development (master) -------------------- +CI: + + - GHActions: Build on Linux/aarch64. + 3.3.3 (2023-10-22) ------------------