mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
Fix the following warning: Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. Signed-off-by: Bart Van Assche <bvanassche@acm.org>
28 lines
772 B
YAML
28 lines
772 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
compiler: [gcc, 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: -Werror ${{ matrix.arch == 'x86' && '-m32' || '' }}
|
|
LDFLAGS: ${{ matrix.arch == 'x86' && '-m32' || '' }}
|
|
run: make CC=${{matrix.compiler}} dpkg
|