Skip to content

Commit

Permalink
GHA: Merge sanity checks workflows (#38)
Browse files Browse the repository at this point in the history
Merge shellcheck and build test into one workflow file.
  • Loading branch information
syncom authored Oct 18, 2023
1 parent a5a6627 commit ab8e3c5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 42 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/build-libg2hec.yml

This file was deleted.

41 changes: 32 additions & 9 deletions .github/workflows/shellcheck.yml → .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,39 @@
# Shellcheck: Opinionated shell script analysis
name: "Shellcheck"

on:
name: Sanity Checks
on:
push:
branches: [master]
branches:
- master
pull_request:
# The branches below must be a subset of the branches above
branches: [master]

branches:
- master
jobs:
build-libg2hec-linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
compiler_c: [gcc, clang]
compiler_cxx: [g++, clang++]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y texinfo
sudo apt install -y texlive-latex-extra
sudo apt install -y autotools-dev autoconf build-essential bear
- name: Build
env:
CC: ${{ matrix.compiler_c }}
CXX: ${{ matrix.compiler_cxx }}
run: |
cd ${{ github.workspace }}
autoreconf -vi
./scripts/build.sh distcheck
shellcheck:
name: "shellcheck"
name: 'shellcheck'
strategy:
fail-fast: false
# Run on Linux and macos
Expand Down

0 comments on commit ab8e3c5

Please sign in to comment.