-
Notifications
You must be signed in to change notification settings - Fork 10
31 lines (30 loc) · 1.2 KB
/
Copy pathdocker_build.yml
File metadata and controls
31 lines (30 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: CI
on:
push:
branches: [ ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Run the build process inside Docker container
uses: addnab/docker-run-action@v3
with:
image: wltjr/docker-efl:latest
options: |
-e SONAR_TOKEN=${{ secrets.SONAR_TOKEN }}
--privileged
-v ${{ github.workspace }}:/tmp/entrance
run: |
cd /tmp/entrance
meson setup --prefix /usr --buildtype=debug -Dpam=true -Dlogind=true . build
build-wrapper-linux-x86-64 --out-dir bw-output ninja -C build
ninja -C build install
./tests/run-tests.sh
cd build ; find . -name '*.gcno' -exec sh -c 'gcov -b -p {} -o $(dirname {})' \;; cd ../
export PATH="/sonar-scanner-linux-x64/bin:${PATH}"; sonar-scanner