Fix aarch64 build. #35
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: Rocky 9 Packaging | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
linux: | |
name: RPM Packaging (x86_64 + noarch) | |
runs-on: ubuntu-22.04 | |
container: rockylinux:9 | |
steps: | |
- name: Install Dependencies | |
run: | | |
cat /etc/redhat-release | |
yum -y install epel-release | |
/usr/bin/crb enable | |
yum -y install gcc gcc-c++ git libXt-devel make python3-Cython python3-devel python3-extension-helpers python3-numpy python3-packaging python3-pip python3-pyparsing python3-pyyaml python3-rpm-macros rpm-build rpm-sign | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
- name: Package RPMs | |
run: | | |
make astropy-deps | |
rpm -i python3-pyerfa-*.rpm | |
make general web | |
- name: Clone Package Repository | |
uses: actions/checkout@v4 | |
with: | |
repository: rockit-astro/packages | |
token: ${{ secrets.DEPLOY_TOKEN }} | |
path: packages | |
- name: Push Packages | |
env: | |
RPM_SIGNING_KEY: ${{ secrets.RPM_SIGNING_KEY }} | |
run: | | |
packages/sign-and-push-packages.sh *.rpm | |
linux-arm64: | |
runs-on: ubuntu-20.04 | |
name: RPM Packaging (aarch64) | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
- name: Build aarch64 rpms | |
uses: uraimo/run-on-arch-action@v2 | |
with: | |
arch: none | |
distro: none | |
base_image: arm64v8/rockylinux:9.2 | |
shell: /bin/bash | |
setup: | | |
mkdir -p "${PWD}/artifacts" | |
dockerRunArgs: | | |
--volume "${PWD}/artifacts:/artifacts" | |
run: | | |
cat /etc/redhat-release | |
yum -y install epel-release | |
/usr/bin/crb enable | |
yum -y install gcc gcc-c++ git libXt-devel make python3-Cython python3-devel python3-extension-helpers python3-numpy python3-packaging python3-pip python3-pyparsing python3-pyyaml python3-rpm-macros rpm-build rpm-sign | |
make astropy-deps | |
rpm -i python3-pyerfa-*.rpm | |
make aarch64 | |
mv *.rpm /artifacts | |
- name: Clone Package Repository | |
uses: actions/checkout@v4 | |
with: | |
repository: rockit-astro/packages | |
token: ${{ secrets.DEPLOY_TOKEN }} | |
path: packages | |
- name: Push Packages | |
env: | |
RPM_SIGNING_KEY: ${{ secrets.RPM_SIGNING_KEY }} | |
run: | | |
packages/sign-and-push-packages.sh artifacts/*.rpm |