-
Notifications
You must be signed in to change notification settings - Fork 20
62 lines (57 loc) · 1.72 KB
/
sanitize.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Ensure repository healthy state over time
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
bindings-headers-sync:
# Assert .h and .hpp bindings files are the ones generated
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: install
args: cbindgen
- name: Test C header
working-directory: bindings/C
run: cbindgen --config cbindgen_c.toml | diff - mla.h
- name: Test C++ header
working-directory: bindings/C
run: cbindgen --config cbindgen_cpp.toml | diff - mla.hpp
changelog-format:
# Ensure CHANGELOGs respect the KeepAChangelog format
strategy:
matrix:
changelog: [curve25519-parser, mla, mlar]
include:
- changelog: curve25519-parser
path: curve25519-parser
- changelog: mla
path: mla
- changelog: mlar
path: mlar
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get ${{ matrix.changelog }} Changelog Entry
uses: mindsers/changelog-reader-action@v2
id: changelog_reader
with:
# Check format for the last 10 entries
validation_depth: 10
path: ${{ matrix.path }}/CHANGELOG.md
- name: Information
run: |
echo -e "\e[1mVersion\e[0m ${{ steps.changelog_reader.outputs.version }}"
echo -e "\e[1mStatus\e[0m ${{ steps.changelog_reader.outputs.status }}"
echo -en "\e[1mBody\e[0m"
cat << 'EOF'
${{ steps.changelog_reader.outputs.changes }}
EOF