Skip to content

Commit cb9e810

Browse files
committed
.github: import a test workflow
1 parent d97dcb7 commit cb9e810

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: DeforaOS C CI (ubuntu-latest)
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: install dependencies
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y \
19+
docbook-xsl \
20+
gtk-doc-tools \
21+
libgtk-3-dev \
22+
libxml2-utils \
23+
xsltproc
24+
- name: bootstrap libSystem
25+
run: git clone https://github.com/DeforaOS/libSystem.git libSystem && for dir in include data src; do (cd libSystem/$dir && make PREFIX="$HOME/opt/DeforaOS" CCSHARED="cc -shared" install); done
26+
- name: bootstrap configure
27+
run: git clone https://github.com/DeforaOS/configure.git configure && (cd configure/src && PKG_CONFIG_PATH="$HOME/opt/DeforaOS/lib/pkgconfig" make PREFIX="$HOME/opt/DeforaOS" CCSHARED="cc -shared" install)
28+
- name: bootstrap libDesktop
29+
run: git clone https://github.com/DeforaOS/libDesktop.git libDesktop && $HOME/opt/DeforaOS/bin/configure -p "$HOME/opt/DeforaOS" libDesktop && for dir in include data src; do (cd libDesktop/$dir && make PREFIX="$HOME/opt/DeforaOS" CCSHARED="cc -shared" install); done
30+
- name: configure
31+
run: $HOME/opt/DeforaOS/bin/configure -p "$HOME/opt/DeforaOS"
32+
- name: make
33+
run: PKG_CONFIG_PATH="$HOME/opt/DeforaOS/lib/pkgconfig" make CCSHARED="cc -shared"
34+
- name: make tests
35+
run: PKG_CONFIG_PATH="$HOME/opt/DeforaOS/lib/pkgconfig" make CCSHARED="cc -shared" tests
36+
- name: make distcheck
37+
run: PKG_CONFIG_PATH="$HOME/opt/DeforaOS/lib/pkgconfig" make CCSHARED="cc -shared" distcheck

0 commit comments

Comments
 (0)