From 7f7b52c3d8544ab993d2b54b6e8ec88e096f0df0 Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen Date: Sat, 18 Jun 2022 20:34:42 +0800 Subject: [PATCH] Add CI using GitHub Actions Ref: https://github.com/lxqt/lxqt/issues/1644 --- .ci/build.sh | 9 +++++++++ .github/workflows/test.yml | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .ci/build.sh create mode 100644 .github/workflows/test.yml diff --git a/.ci/build.sh b/.ci/build.sh new file mode 100644 index 00000000..bd44971c --- /dev/null +++ b/.ci/build.sh @@ -0,0 +1,9 @@ +set -ex + +source shared-ci/prepare-archlinux.sh + +# See *depends in https://github.com/archlinuxcn/repo/blob/master/archlinuxcn/qterminal-git/PKGBUILD +pacman -S --noconfirm --needed git cmake lxqt-build-tools-git qt5-tools qtermwidget-git qt5-x11extras qt5-translations + +cmake -B build -S . +make -C build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..f35bf11b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +name: Testing + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-20.04 + container: archlinux:base-devel + steps: + - name: Checkout the repo + uses: actions/checkout@v2 + - name: Checkout shared CI repo + uses: actions/checkout@v2 + with: + repository: lxqt/ci + path: shared-ci + - name: Build + run: bash ./.ci/build.sh