-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.23 KB
/
Copy pathci.yml
File metadata and controls
33 lines (31 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: CI
on:
push:
pull_request:
# Run both crypto backends, plain and under sanitizers.
jobs:
unit:
name: Unit suite (${{ matrix.backend }}${{ matrix.sanitize && format(', {0}', matrix.sanitize) || '' }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- { backend: mbedtls, sanitize: "", cc: gcc }
- { backend: mbedtls, sanitize: "address,undefined", cc: gcc }
- { backend: tiny, sanitize: "", cc: gcc }
- { backend: tiny, sanitize: "address,undefined", cc: gcc }
- { backend: tiny, sanitize: "memory", cc: clang }
steps:
- uses: actions/checkout@v4
- name: Install the toolchain
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends build-essential clang libclang-rt-18-dev libmbedtls-dev
- name: Fetch tiny-crypto-c
uses: actions/checkout@v4
with:
repository: mistial-dev/tiny-crypto-c
ref: 180b054706bc951c0105e44ab3015028a66a7e3a
path: dependencies/tiny-crypto-c
- run: make -C tests test CRYPTO_BACKEND=${{ matrix.backend }} TINY_CRYPTO_DIR=../dependencies/tiny-crypto-c CC=${{ matrix.cc }} SANITIZE=${{ matrix.sanitize }}