Skip to content

Commit

Permalink
Add CI using GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Chih-Hsuan Yen committed Jun 18, 2022
1 parent c813391 commit 7f7b52c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .ci/build.sh
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7f7b52c

Please sign in to comment.