Skip to content

Commit

Permalink
Add CI on Linux ARM64
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g committed Jan 16, 2024
1 parent 00a308b commit 66cd861
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion .github/workflows/LocusPocus.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: LocusPocus CI Build

on: [push]
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
Expand Down Expand Up @@ -33,3 +39,48 @@ jobs:
export PATH=$HOME/local/bin:$PATH
export LD_LIBRARY_PATH=$HOME/local/lib
make test ci-test
build-aarch64:
name: Build on Linux ARM64 / Python 3.11
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build and test on Linux ARM64
uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
distro: ubuntu22.04
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}:/AEGeAn"
install: |
set -x
apt-get update -q
apt-get install -y libcurl4-openssl-dev libssl-dev libpango1.0-dev libcairo2-dev libyaml-dev wget make gcc binutils
mkdir -p ~/miniconda3
wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm -rf ~/miniconda3/miniconda.sh
export PATH=~/miniconda3/bin:$PATH
conda create -n aegean python==3.11.0
conda init bash
run: |
set -x
export PATH=~/miniconda3/bin:$PATH
cat ~/.bashrc
set +u # disable failures due to usage of undeclared env vars in .bashrc
export PS1="\u@\h:\w\$ " # needed to fully source ~/.bashrc
source ~/.bashrc # needed to init/enable conda
conda activate aegean
python --version
conda install --yes pyyaml pycurl pandas setuptools pytest pytest-cov pycodestyle
cd /AEGeAn
# Build
data/scripts/github-actions-prereqs.sh
# Test
export PATH=$HOME/local/bin:$PATH
export LD_LIBRARY_PATH=$HOME/local/lib
make test ci-test

0 comments on commit 66cd861

Please sign in to comment.