Skip to content

Commit

Permalink
CI(GHActions): Build on Linux/aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
phdru committed Feb 26, 2024
1 parent 371f803 commit 4e894e8
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
4 changes: 4 additions & 0 deletions docs/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ News
Development (master)
--------------------

CI:

- GHActions: Build on Linux/aarch64.

3.3.3 (2023-10-22)
------------------

Expand Down

0 comments on commit 4e894e8

Please sign in to comment.