[CI] Update Github actions

This commit is contained in:
Marko Viitanen 2022-04-29 13:33:50 +03:00
parent a8c458469c
commit 3479218ca8
2 changed files with 43 additions and 43 deletions

View file

@ -1,4 +1,4 @@
name: Kvazaar_pr_tests name: uvg266_pr_tests
on: on:
pull_request_target: pull_request_target:
@ -14,12 +14,12 @@ jobs:
with: with:
ref: ${{github.event.pull_request.head.ref}} ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}} repository: ${{github.event.pull_request.head.repo.full_name}}
- name: configure - name: cmake
run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
- name: make - name: make
run: make -j run: make install -j
- name: Run tests - name: Run tests
run: export PATH="/home/docker/bin:${PATH}" && make check -j VERBOSE=1 run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
test-ubsan: test-ubsan:
runs-on: self-hosted runs-on: self-hosted
@ -33,12 +33,12 @@ jobs:
with: with:
ref: ${{github.event.pull_request.head.ref}} ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}} repository: ${{github.event.pull_request.head.repo.full_name}}
- name: configure - name: cmake
run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
- name: make - name: make
run: make -j run: make install -j
- name: Run tests - name: Run tests
run: export PATH="/home/docker/bin:${PATH}" && make check -j4 VERBOSE=1 run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
test-asan: test-asan:
runs-on: self-hosted runs-on: self-hosted
@ -56,12 +56,12 @@ jobs:
with: with:
ref: ${{github.event.pull_request.head.ref}} ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}} repository: ${{github.event.pull_request.head.repo.full_name}}
- name: configure - name: cmake
run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
- name: make - name: make
run: make -j run: make install -j
- name: Run tests - name: Run tests
run: export PATH="/home/docker/bin:${PATH}" && make check -j4 VERBOSE=1 run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
test-tsan: test-tsan:
runs-on: self-hosted runs-on: self-hosted
@ -75,12 +75,12 @@ jobs:
with: with:
ref: ${{github.event.pull_request.head.ref}} ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}} repository: ${{github.event.pull_request.head.repo.full_name}}
- name: configure - name: cmake
run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
- name: make - name: make
run: make -j run: make install -j
- name: Run tests - name: Run tests
run: export PATH="/home/docker/bin:${PATH}" && make check -j4 VERBOSE=1 run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
test-valgrind: test-valgrind:
runs-on: self-hosted runs-on: self-hosted
@ -94,9 +94,9 @@ jobs:
with: with:
ref: ${{github.event.pull_request.head.ref}} ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}} repository: ${{github.event.pull_request.head.repo.full_name}}
- name: configure - name: cmake
run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
- name: make - name: make
run: make -j run: make install -j
- name: Run tests - name: Run tests
run: export PATH="/home/docker/bin:${PATH}" && KVZ_TEST_VALGRIND=1 make check -j4 VERBOSE=1 run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test

View file

@ -1,4 +1,4 @@
name: Kvazaar_tests name: uvg266_tests
on: on:
push: push:
@ -11,12 +11,12 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: configure - name: cmake
run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
- name: make - name: make
run: make -j run: make install -j
- name: Run tests - name: Run tests
run: export PATH="/home/docker/bin:${PATH}" && make check -j VERBOSE=1 run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
test-ubsan: test-ubsan:
runs-on: self-hosted runs-on: self-hosted
@ -26,12 +26,12 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: configure - name: cmake
run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
- name: make - name: make
run: make -j run: make install -j
- name: Run tests - name: Run tests
run: export PATH="/home/docker/bin:${PATH}" && make check -j4 VERBOSE=1 run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
test-asan: test-asan:
runs-on: self-hosted runs-on: self-hosted
@ -41,16 +41,16 @@ jobs:
ASAN_OPTIONS: detect_leaks=0 ASAN_OPTIONS: detect_leaks=0
# AddressSanitizer adds some extra symbols so we expect a failure from # AddressSanitizer adds some extra symbols so we expect a failure from
# the external symbols test. # the external symbols test.
XFAIL_TESTS: test_external_symbols.sh XFAIL_TESTS: test_external_symbols
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: configure - name: cmake
run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
- name: make - name: make
run: make -j run: make install -j
- name: Run tests - name: Run tests
run: export PATH="/home/docker/bin:${PATH}" && make check -j4 VERBOSE=1 run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
test-tsan: test-tsan:
runs-on: self-hosted runs-on: self-hosted
@ -60,12 +60,12 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: configure - name: cmake
run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
- name: make - name: make
run: make -j run: make install -j
- name: Run tests - name: Run tests
run: export PATH="/home/docker/bin:${PATH}" && make check -j4 VERBOSE=1 run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
test-valgrind: test-valgrind:
runs-on: self-hosted runs-on: self-hosted
@ -75,9 +75,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: configure - name: cmake
run: ./autogen.sh && ./configure --enable-werror || (cat config.log && false) run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
- name: make - name: make
run: make -j run: make install -j
- name: Run tests - name: Run tests
run: export PATH="/home/docker/bin:${PATH}" && KVZ_TEST_VALGRIND=1 make check -j4 VERBOSE=1 run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test