Fix build on linux arm64 #45
Workflow file for this run
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: LocusPocus CI Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: [3.11, 3.12] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install | |
run: | | |
sudo apt-get update -q | |
sudo apt-get install libcurl4-openssl-dev libssl-dev libpango1.0-dev libcairo2-dev libyaml-dev | |
python -m pip install --upgrade pip | |
python -m pip install pyyaml pycurl pandas | |
python -m pip install setuptools | |
python -m pip install pytest pytest-cov pycodestyle | |
data/scripts/github-actions-prereqs.sh | |
- name: Style check | |
run: make style | |
- name: Test with pytest | |
run: | | |
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 | |
# Use conda to be able to install newer Python that is not available in the main Ubuntu repository | |
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 | |
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 | |
set -u | |
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 |