mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-29 12:17:15 +00:00
Keep the standalone CI matrix focused on Clang. GCC is already exercised by Ubuntu DEB and RPM package builds with WERROR enabled.
37 lines
840 B
YAML
37 lines
840 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
env:
|
|
WERROR: 'y'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
compiler: [clang]
|
|
arch: [x86_64]
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
- name: Install build-essential
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y build-essential debhelper devscripts dpkg-dev quilt
|
|
- name: Install multilib
|
|
run: |
|
|
sudo apt-get install -y gcc-multilib g++-multilib
|
|
if: ${{ matrix.arch == 'x86' }}
|
|
- name: Build
|
|
env:
|
|
CC: ${{ matrix.compiler }}
|
|
CFLAGS: ${{ matrix.arch == 'x86' && '-m32' || '' }}
|
|
LDFLAGS: ${{ matrix.arch == 'x86' && '-m32' || '' }}
|
|
run: make CC=${{matrix.compiler}} dpkg
|