name: Build on: [push, pull_request, workflow_dispatch] jobs: coding_style: name: Check code formatting runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 2 - name: Install dependency run: | sudo apt update sudo apt install \ clang-format-14 \ git - name: Check with clang-format run: | ./scripts/format_code.py git --no-pager diff --exit-code build_archlinux: name: Build with Archlinux container runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 2 - name: Change diff run: git --no-pager show -m "$GITHUB_SHA" --color - name: Docker Action uses: ./.github/actions/archlinux build_debian: name: Build with Debian container runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 2 - name: Change diff run: git --no-pager show -m "$GITHUB_SHA" --color - name: Docker Action uses: ./.github/actions/debian build_centos8: name: Build with CentOS 8 container runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 2 - name: Change diff run: git --no-pager show -m "$GITHUB_SHA" --color - name: Docker Action uses: ./.github/actions/centos8 build_almalinux: name: Build with AlmaLinux container runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 2 - name: Change diff run: git --no-pager show -m "$GITHUB_SHA" --color - name: Docker Action uses: ./.github/actions/almalinux