summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2020-02-27 12:49:12 +0000
committerSimon McVittie <smcv@collabora.com>2020-02-27 12:49:12 +0000
commit0d589997564bb782e18d3103a12b480207832c75 (patch)
tree08f5a11f797115396d39957585bbb9ede9e098b1 /.github
parent189394653cca45029adbe1979c60aa923da11e77 (diff)
downloadflatpak-0d589997564bb782e18d3103a12b480207832c75.tar.gz
CI: Do one build out-of-tree
With the gcc build out-of-tree and the clang build in-tree, we're testing both ways. Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/check.yml16
1 files changed, 11 insertions, 5 deletions
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index bbd9f0e6..7016fa53 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -46,24 +46,30 @@ jobs:
popd
- name: Create logs dir
run: mkdir test-logs
+ - name: autogen.sh
+ run: NOCONFIGURE=1 ./autogen.sh
- name: configure
# TODO: Enable gtk-doc builds
- run: ./autogen.sh
+ run: |
+ mkdir _build
+ pushd _build
+ ../configure
+ popd
env:
CFLAGS: -fsanitize=undefined -fsanitize-undefined-trap-on-error -fsanitize=address -O2 -Wp,-D_FORTIFY_SOURCE=2
- name: Build flatpak
- run: make -j $(getconf _NPROCESSORS_ONLN)
+ run: make -C _build -j $(getconf _NPROCESSORS_ONLN)
- name: Run tests
# TODO: Build with -j (currently ends up with hangs in the tests)
- run: make check
+ run: make -C _build check
env:
ASAN_OPTIONS: detect_leaks=0 # Right now we're not fully clean, but this gets us use-after-free etc
- name: Collect overall test logs on failure
if: failure()
- run: mv test-suite.log test-logs/ || true
+ run: mv _build/test-suite.log test-logs/ || true
- name: Collect individual test logs on cancel
if: failure() || cancelled()
- run: mv tests/*.log test-logs/ || true
+ run: mv _build/tests/*.log test-logs/ || true
- name: Upload test logs
uses: actions/upload-artifact@v1
if: failure() || cancelled()