Standard YAML spacing is 2 spaces.

This commit is contained in:
Wilson Snyder 2020-12-04 17:39:53 -05:00
parent b9f2400d17
commit 666d0ab552
1 changed files with 59 additions and 58 deletions

View File

@ -1,70 +1,71 @@
# DESCRIPTION: Github actions config # DESCRIPTION: Github actions config
# This name is key to badges in README.adoc, so we use the name build # This name is key to badges in README.adoc, so we use the name build
name: build name: build
on: on:
push: push:
pull_request: pull_request:
schedule: schedule:
- cron: '0 0 * * 0' # weekly - cron: '0 0 * * 0' # weekly
jobs: jobs:
vlt: vlt:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
name: build and test name: build and test
env:
CI_OS_NAME: linux
CCACHE_COMPRESS: 1
CCACHE_DIR: ${{ github.workspace }}/.ccache
CCACHE_MAXSIZE: 4Gi
CC: ccache gcc
CXX: ccache g++
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2
env: env:
CI_OS_NAME: linux cache-name: ccache
CCACHE_COMPRESS: 1 with:
CCACHE_DIR: ${{ github.workspace }}/.ccache path: ${{ github.workspace }}/.ccache
CCACHE_MAXSIZE: 4Gi key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.ref }}-${{ github.sha }}
CC: ccache gcc restore-keys: |
CXX: ccache g++ ${{ runner.os }}-build-${{ env.cache-name }}-
steps: ${{ runner.os }}-build-
- name: Checkout ${{ runner.os }}-
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2
env:
cache-name: ccache
with:
path: ${{ github.workspace }}/.ccache
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.ref }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- 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 dist-vlt-0
env: env:
CI_BUILD_STAGE_NAME: test CI_BUILD_STAGE_NAME: test
TESTS: dist-vlt-0 TESTS: dist-vlt-0
run: bash ci/ci-script.bash run: bash ci/ci-script.bash
- name: Test dist-vlt-1 - name: Test dist-vlt-1
env: env:
CI_BUILD_STAGE_NAME: test CI_BUILD_STAGE_NAME: test
TESTS: dist-vlt-1 TESTS: dist-vlt-1
run: bash ci/ci-script.bash run: bash ci/ci-script.bash
- name: Test vltmt-0 - name: Test vltmt-0
env: env:
CI_BUILD_STAGE_NAME: test CI_BUILD_STAGE_NAME: test
TESTS: vltmt-0 TESTS: vltmt-0
run: bash ci/ci-script.bash run: bash ci/ci-script.bash
- name: Test vltmt-1 - name: Test vltmt-1
env: env:
CI_BUILD_STAGE_NAME: test CI_BUILD_STAGE_NAME: test
TESTS: vltmt-1 TESTS: vltmt-1
run: bash ci/ci-script.bash run: bash ci/ci-script.bash