Skip to content

Switch to github actions for CI #8

Switch to github actions for CI

Switch to github actions for CI #8

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
main:
strategy:
fail-fast: false
matrix:
c-compiler: [gcc, clang]
config:
- os-image: ubuntu-latest
container: ubuntu:20.04
- os-image: ubuntu-latest
container: ubuntu:22.04
name: ${{ matrix.c-compiler }} • ${{ matrix.config.container }}
runs-on: ${{ matrix.config.os-image }}
container: ${{ matrix.config.container }}
steps:
- uses: actions/checkout@v3
- name: Install build tools
run: |
set -ex
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y build-essential cmake ${{ matrix.c-compiler }}
echo "CC=${{ matrix.c-compiler }}" >> $GITHUB_ENV
- name: Build QCBOR
run: |
set -ex
make
- name: Run tests
run: qcbortest