Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Feb 12, 2024
1 parent 7c7bc9e commit 51c7296
Showing 1 changed file with 1 addition and 70 deletions.
71 changes: 1 addition & 70 deletions .github/workflows/cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,74 +18,6 @@ env:
CONFIGFLAGS: "--enable-debug"

jobs:
test_on_arch:
# The host should always be linux
runs-on: ubuntu-22.04
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}

# Run steps on a matrix of arch/distro combinations
strategy:
fail-fast: false
matrix:
include:
- arch: aarch64
distro: ubuntu18.04
- arch: ppc64le
distro: alpine_latest
- arch: s390x
distro: fedora_latest
steps:
- uses: actions/checkout@v4
- name: Download required GAP packages
run: |
wget https://github.com/gap-system/PackageDistro/releases/download/latest/packages-required.tar.gz
mkdir pkg
cd pkg
tar xvf ../packages-required.tar.gz
- name: Build GAP and run tests
uses: uraimo/run-on-arch-action@v2
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}

# Not required, but speeds up builds
githubToken: ${{ github.token }}

# The shell to run commands with in the container
shell: /bin/sh

# Install some dependencies in the container. This speeds up builds if
# you are also using githubToken. Any dependencies installed here will
# be part of the container image that gets cached, so subsequent
# builds don't have to re-install them. The image layer is cached
# publicly in your project's package repository, so it is vital that
# no secrets are present in the container state or logs.
install: |
case "${{ matrix.distro }}" in
ubuntu*|jessie|stretch|buster|bullseye)
apt-get update -q -y
apt-get install -q -y git build-essential expect autoconf libgmp-dev libreadline-dev zlib1g-dev
;;
fedora*)
dnf -y update
dnf -y install diffutils git gcc gcc-c++ make expect autoconf gmp gmp-devel readline readline-devel zlib zlib-devel
;;
alpine*)
apk update
apk add bash git build-base expect autoconf gmp-dev readline-dev zlib-dev
;;
esac
# Do the thing
run: |
set -x
git config --global --add safe.directory $PWD # see https://github.com/gap-system/gap/issues/4861
./autogen.sh
./configure
make -j2 V=1
make citests
cross_compile:
# The host should always be linux
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -193,5 +125,4 @@ jobs:
./autogen.sh
./configure --with-gmp=/usr/local --without-readline
gmake -j2 V=1
gmake check
#gmake citests
gmake citests

0 comments on commit 51c7296

Please sign in to comment.