CI: Misc style cleanups (#2683)

This commit is contained in:
Unai Martinez-Corral 2020-12-10 18:33:26 +01:00 committed by GitHub
parent d94a8a28fa
commit 8e178ca4a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 30 deletions

View File

@ -12,21 +12,16 @@ on:
- cron: '0 0 * * 0' # weekly - cron: '0 0 * * 0' # weekly
jobs: jobs:
vlt: vlt:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-20.04]
compiler: [clang, gcc]
include: include:
- compiler: clang - { cc: clang, cxx: clang++ }
cc: clang - { cc: gcc, cxx: g++ }
cxx: clang++ runs-on: ubuntu-20.04
- compiler: gcc name: Ubuntu 20.04 | ${{ matrix.cc }} | build-test
cc: gcc
cxx: g++
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}-${{ matrix.compiler }}-build-test
env: env:
CI_OS_NAME: linux CI_OS_NAME: linux
CI_COMMIT: ${{ github.sha }} CI_COMMIT: ${{ github.sha }}
@ -36,48 +31,46 @@ jobs:
CC: ${{ matrix.cc }} CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }} CXX: ${{ matrix.cxx }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Cache - name: Cache
uses: actions/cache@v2 uses: actions/cache@v2
env: env:
cache-name: ccache cache-name: ccache
with: with:
path: ${{ github.workspace }}/.ccache path: ${{ github.workspace }}/.ccache
key: ${{ matrix.os }}-${{ matrix.compiler }}-${{ env.cache-name }}-${{ github.sha }} key: ubuntu-20.04-${{ matrix.cc }}-${{ env.cache-name }}-${{ github.sha }}
restore-keys: | restore-keys: |
${{ matrix.os }}-${{ matrix.compiler }}-${{ env.cache-name }} ubuntu-20.04-${{ matrix.cc }}-${{ env.cache-name }}
- name: Install packages for build - name: Install packages for build
env: env:
CI_BUILD_STAGE_NAME: build CI_BUILD_STAGE_NAME: build
run: bash ci/ci-install.bash run: bash ci/ci-install.bash
- name: CCACHE maintenance - name: CCACHE maintenance
run: mkdir -p $CCACHE_DIR && bash ci/ci-ccache-maint.bash run: mkdir -p $CCACHE_DIR && bash ci/ci-ccache-maint.bash
- name: Build - name: Build
env: env:
CI_BUILD_STAGE_NAME: build CI_BUILD_STAGE_NAME: build
run: bash ci/ci-script.bash run: bash ci/ci-script.bash
- name: Install packages for tests - name: Install packages for tests
env: env:
CI_BUILD_STAGE_NAME: test CI_BUILD_STAGE_NAME: test
run: bash ci/ci-install.bash run: bash ci/ci-install.bash
- name: Test dist-vlt-0
- name: Test
env: env:
CI_BUILD_STAGE_NAME: test CI_BUILD_STAGE_NAME: test
TESTS: dist-vlt-0 run: |
run: bash ci/ci-script.bash for item in dist-vlt-0 dist-vlt-1 vltmt-0 vltmt-1; do
- name: Test dist-vlt-1 echo "::group::${item}"
env:
CI_BUILD_STAGE_NAME: test TESTS="${item}" bash ci/ci-script.bash
TESTS: dist-vlt-1
run: bash ci/ci-script.bash echo '::endgroup::'
- name: Test vltmt-0 done
env:
CI_BUILD_STAGE_NAME: test
TESTS: vltmt-0
run: bash ci/ci-script.bash
- name: Test vltmt-1
env:
CI_BUILD_STAGE_NAME: test
TESTS: vltmt-1
run: bash ci/ci-script.bash