Add matrix configuration #609
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Standard Build Check | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
buildtest: | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
matrix: # this needs to be an array. We should only list "known good/expected to work" vss-tools versions here | |
vss-tools-version: [master] | |
experimental: [false] | |
include: # this need to be single entities, this should list master and poentially other experimental versions | |
- vss-tools-version: v4 | |
experimental: true | |
name: Build Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install vss-tools dependencies | |
#continue-on-error: ${{ matrix.experimental }} | |
run: | | |
python -V | |
python -m pip --quiet --no-input install --upgrade pip | |
python -m pip --quiet --no-input install --upgrade wheel | |
pip install pytest | |
# idlc currently used both during python test and later in this script | |
pip install cyclonedds | |
pip install git+https://github.com/COVESA/vss-tools@${{ matrix.vss-tools-version }} | |
sudo apt install -y protobuf-compiler | |
echo done! | |
- name: Test mandatory targets | |
#continue-on-error: ${{ matrix.experimental }} | |
run: | | |
make mandatory_targets | |
- name: Test that ddsidl is correct | |
#continue-on-error: ${{ matrix.experimental }} | |
run: | | |
idlc vss_rel_*.idl | |
- name: Prepare for CSV check | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
cache: false | |
- name: Test that CSV generated by vss-tools is correct | |
#continue-on-error: ${{ matrix.experimental }} | |
run: | | |
# Install csvlint to check compliance with https://datatracker.ietf.org/doc/html/rfc4180 | |
go install github.com/Clever/csvlint/cmd/csvlint@latest | |
csvlint vss_rel_*.csv | |
- name: Test optional targets. NOTE - always succeeds | |
run: | | |
make -k optional_targets || true | |
docubuild: | |
name: Build Docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install hugo | |
env: | |
HUGO_VER : 0.129.0 | |
run: | | |
curl -LO https://github.com/gohugoio/hugo/releases/download/v${HUGO_VER}/hugo_${HUGO_VER}_linux-amd64.deb | |
sudo dpkg -i hugo_${HUGO_VER}_linux-amd64.deb | |
- name: Make docs | |
run: | | |
hugo -s ./docs-gen | |
- name: Deploy docs | |
# Only deploy docs if this was a push to master | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: docs # The folder the action should deploy. | |
commit-message: Auto-deploy docs built from commit ${{ github.sha }} |