Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workaround centos:7 issue #803

Merged
merged 1 commit into from
Aug 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: pull_request
on: pull_request

jobs:
ubuntu-20:
timeout-minutes: 10
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: pre-push
run: |
sudo apt-get update
Expand All @@ -17,7 +18,7 @@ jobs:
timeout-minutes: 10
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: pre-push
run: |
sudo apt-get update
Expand All @@ -30,9 +31,16 @@ jobs:
runs-on: ubuntu-latest
container: centos:7
steps:
- uses: actions/checkout@v3
- name: pre-push
run: |
# Sigh.
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
# Avoid https://github.com/actions/checkout/issues/1590
curl -L -o libvfio-user.tar.gz https://github.com/${GITHUB_REPOSITORY}/archive/${GITHUB_SHA}.tar.gz
tar xvf libvfio-user.tar.gz
cd libvfio-user-${GITHUB_SHA}
# NB: no working flake8
yum -y install make gcc-4.8.5 epel-release pciutils
yum -y install clang clang-analyzer json-c-devel libcmocka-devel \
Expand All @@ -43,7 +51,7 @@ jobs:
runs-on: ubuntu-latest
container: fedora:35
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: pre-push
run: |
dnf -y install --releasever=35 \
Expand All @@ -56,7 +64,7 @@ jobs:
runs-on: ubuntu-20.04
container: debian:11
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: pre-push
run: |
apt-get update
Expand All @@ -69,7 +77,7 @@ jobs:
runs-on: ubuntu-22.04
container: debian:12
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: pre-push
run: |
apt-get update
Expand All @@ -81,6 +89,6 @@ jobs:
runs-on: ubuntu-latest
container: vlajos/misspell-fixer
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: run misspell-fixer
run: /misspell-fixer/misspell-fixer -sv .