Skip to content
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
40 changes: 20 additions & 20 deletions .github/workflows/_test-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,31 @@ jobs:
shell: bash

steps:
- name: Install System Dependencies (Container)
shell: bash
run: |
# POSIX-compatible redirection so it works even without bash
if command -v dnf >/dev/null 2>&1; then
echo "dnf found"
dnf install -y --allowerasing libxml2 wget gcc gcc-c++ make curl sudo git
elif command -v yum >/dev/null 2>&1; then
echo "yum found"
yum install -y libxml2 wget gcc gcc-c++ make curl sudo git
elif command -v apt-get >/dev/null 2>&1; then
echo "apt-get found"
apt-get update
apt-get install -y libxml2 curl wget build-essential sudo git
fi

- name: Show Container Information
run: |
df -h
df -h || true
echo "-------"
lscpu
cat /proc/cpuinfo || true
echo "-------"
cat /etc/os-release
cat /etc/os-release || true
echo "-------"
free -h
free -h || true

- name: Expand Disk Space
run: |
Expand All @@ -60,22 +76,6 @@ jobs:
echo "-------"
df -h

- name: Install System Dependencies (Container)
shell: bash
run: |
# POSIX-compatible redirection so it works even without bash
if command -v dnf >/dev/null 2>&1; then
echo "dnf found"
dnf install -y --allowerasing libxml2 wget gcc gcc-c++ make curl
elif command -v yum >/dev/null 2>&1; then
echo "yum found"
yum install -y libxml2 wget gcc gcc-c++ make curl
elif command -v apt-get >/dev/null 2>&1; then
echo "apt-get found"
apt-get update
apt-get install -y libxml2 curl wget build-essential
fi

- name: Checkout
uses: actions/checkout@v5

Expand Down