Skip to content

Commit a1632cd

Browse files
committed
Added Arch Linux to the CI.
1 parent 9cea432 commit a1632cd

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/shunit2.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,27 @@ jobs:
4141
- name: Run tests
4242
run: make test
4343

44+
archlinux:
45+
runs-on: ubuntu-latest
46+
container: archlinux:latest
47+
name: "Run tests on ArchLinux"
48+
steps:
49+
- uses: actions/checkout@v4
50+
- name: Install dependencies
51+
run: |
52+
pacman-key --init && \
53+
pacman -Syu --noconfirm && \
54+
pacman -Sy --noconfirm git base base-devel make patch wget && \
55+
useradd -d /home/makepkg makepkg && \
56+
mkdir -p /home/makepkg/{.config/pacman,.gnupg,out} && \
57+
chown -R makepkg:users /home/makepkg && \
58+
sudo -u makepkg /bin/bash -c "cd /home/makepkg && git clone --quiet --depth 1 https://aur.archlinux.org/shunit2.git && cd shunit2/ && makepkg" && \
59+
pacman -U --noconfirm /home/makepkg/shunit2/shunit2-*.pkg.tar.zst
60+
- name: Configure env
61+
run: echo "SHUNIT2=$(command -v shunit2 2>/dev/null)" >> $GITHUB_ENV
62+
- name: Run tests
63+
run: make test
64+
4465
macos:
4566
runs-on: macos-latest
4667
name: "Run tests on macOS"

0 commit comments

Comments
 (0)