From 0990b2ec81c75800bfeebe0e8ac15169cf45ab4b Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Wed, 30 Nov 2022 22:20:08 -0500 Subject: [PATCH] CI: minor improvements to build/test workflow - add a concurrency group so things aren't run on push *and* pull_request update - add a name to steps missing one --- .github/workflows/ci.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 46abe996..370ab0ab 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,5 +1,15 @@ name: Tests -on: [push, pull_request] +on: + pull_request: + push: + branches: + - 'master' + - 'ci-**' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: testsuite: strategy: @@ -23,7 +33,8 @@ jobs: container: ${{ matrix.void_image }} steps: - uses: actions/checkout@v1 - - run: | + - name: Prepare container + run: | xbps-install -Syu || xbps-install -yu xbps xbps-install -Sy ${{ matrix.c_compiler }} ${{ matrix.extra_deps }} make pkg-config zlib-devel openssl-devel libarchive-devel kyua atf-devel - name: Build @@ -32,4 +43,5 @@ jobs: run: | ./configure --enable-tests make -j - - run: make check + - name: Check + run: make check