-
Notifications
You must be signed in to change notification settings - Fork 147
43 lines (38 loc) · 1.39 KB
/
c.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
name: Test Generated C
on:
push:
pull_request:
merge_group:
schedule:
- cron: '0 0 1 * *'
jobs:
test-c:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: install gcc
run: |
sudo sed -i 's/azure\.//' /etc/apt/sources.list
sudo apt-get -o Acquire::Retries=30 update -q
sudo apt-get -o Acquire::Retries=30 install -y --allow-unauthenticated \
g++ libssl-dev \
ninja-build libunwind-dev cmake
#sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7
- name: GCC Problem Matcher
uses: ammaraskar/[email protected]
- name: Set up Go
uses: actions/setup-go@v4
id: go
- name: make only-test-c-files CC=gcc
run: make only-test-c-files CC=gcc EXTERNAL_DEPENDENCIES=1
- name: make only-test-bedrock2-files CC=gcc
run: make only-test-bedrock2-files CC=gcc EXTERNAL_DEPENDENCIES=1
- name: BoringSSL C test
run: EXTRA_CFLAGS="" etc/ci/test-fiat-c-boringssl.sh fiat-c/src
- name: BoringSSL bedrock2 test
run: EXTRA_CFLAGS="$(make bedrock2-extra-cflags SKIP_INCLUDE=1 2>/dev/null)" etc/ci/test-fiat-c-boringssl.sh fiat-bedrock2/src