summaryrefslogtreecommitdiff
path: root/.github/workflows/archlinux.sh
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2025-07-29 06:16:12 +0800
committerGitHub <[email protected]>2025-07-28 22:16:12 +0000
commitb3f039b66b058886fadc1c7b124a900625889924 (patch)
treefdcc67ba1dcf0ab3a795584b7b3e8df160d07a0d /.github/workflows/archlinux.sh
parent87aa5feb8790168eb7b2bc890938353116d26594 (diff)
downloadmarco-b3f039b66b058886fadc1c7b124a900625889924.tar.bz2
marco-b3f039b66b058886fadc1c7b124a900625889924.tar.xz
GitHub action (#795)
* CI: use github action * CI: Drop travis CI
Diffstat (limited to '.github/workflows/archlinux.sh')
-rwxr-xr-x.github/workflows/archlinux.sh43
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/archlinux.sh b/.github/workflows/archlinux.sh
new file mode 100755
index 00000000..08baed70
--- /dev/null
+++ b/.github/workflows/archlinux.sh
@@ -0,0 +1,43 @@
+#!/usr/bin/bash
+
+# Use grouped output messages
+infobegin() {
+ echo "::group::${1}"
+}
+infoend() {
+ echo "::endgroup::"
+}
+
+# Required packages on Archlinux
+requires=(
+ ccache # Use ccache to speed up build
+ clang # Build with clang on Archlinux
+ meson # Used for meson build
+)
+
+requires+=(
+ autoconf-archive
+ gcc
+ git
+ glib2
+ gtk3
+ intltool
+ libcanberra
+ libgtop
+ libxpresent
+ libxres
+ make
+ mate-common
+ mate-desktop
+ which
+ yelp-tools
+ zenity
+)
+
+infobegin "Update system"
+pacman --noconfirm -Syu
+infoend
+
+infobegin "Install dependency packages"
+pacman --noconfirm -S ${requires[@]}
+infoend