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 29, 2024
1 parent 0e93b70 commit 729b179
Showing 1 changed file with 54 additions and 3 deletions.
57 changes: 54 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ci-scripts build/test

on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]

env:
SETUP_PATH: .:.ci
Expand All @@ -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-12]
steps:
- uses: actions/checkout@v3
- name: Show initial environment
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-12, macos-11]
os: [macos-12]
cmp: [clang]
configuration: [default, debug]
steps:
Expand Down Expand Up @@ -141,3 +141,54 @@ 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
id
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 epel-release
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 \
sudo re2c
[ -e /usr/bin/python ] || ln -sf /usr/bin/python3 /usr/bin/python
# fake out cue.py
ln -s /bin/true /usr/bin/apt-get
# quiet warnings spam from perl
export LANG=C
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 \
--pull=always \
--env-file env.list \
-v `pwd`:/io \
centos:7 \
/io/runit.sh

0 comments on commit 729b179

Please sign in to comment.