Skip to content

Commit

Permalink
add GHA job w/ manual docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Oct 14, 2024
1 parent 0e93b70 commit 8e04720
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, ubuntu-20.04, windows-2022, windows-2019, macos-12, macos-11]
os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04, windows-latest, windows-2022, windows-2019, macos-latest, macos-12]
steps:
- uses: actions/checkout@v3
- name: Show initial environment
Expand Down Expand Up @@ -141,3 +141,46 @@ jobs:
run: python cue.py -T 15M test
- name: Collect and show test results
run: python cue.py test-results

build-docker:
name: Docker
runs-on: ubuntu-latest
env:
CMP: gcc
BCFG: default
CI_CROSS_TARGETS: ${{ matrix.cross }}
TEST: ${{ matrix.test }}

steps:
- uses: actions/checkout@v3

- name: Run...
run: |
env > env.list
cat <<EOF > runit.sh
#!/bin/sh
set -e -x
cd /io
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
yum -y install \
curl make gcc curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker \
python3 gdb make perl gcc-c++ glibc-devel readline-devel ncurses-devel perl-devel libevent-devel
[ -e /usr/bin/python ] || ln -sf /usr/bin/python3 /usr/bin/python
python --version
python cue.py prepare
python cue.py build
python cue.py -T 15M test
python cue.py test-results
EOF
chmod +x runit.sh
docker run --rm --quiet \
--user `id -u`:`id -g` \
--pull=always \
--env-file env.list \
-v `pwd`:/io \
centos:7 \
/io/runit.sh

0 comments on commit 8e04720

Please sign in to comment.