-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 971 Bytes
/
build.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
name: CI
on: [push, pull_request]
jobs:
linux-gcc:
strategy:
matrix:
os: [ubuntu-latest, ubuntu-18.04, ubuntu-16.04]
gcc-version: [8, 9]
runs-on: ${{ matrix.os }}
env:
CC: gcc-${{ matrix.gcc-version }}
CXX: g++-${{ matrix.gcc-version }}
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: newest gcc repo
run: |
sudo apt install -y software-properties-common && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test && \
sudo apt update
- name: install gcc and gcc-plugin
run: sudo apt install -y gcc-${{ matrix.gcc-version }} gcc-${{ matrix.gcc-version }}-plugin-dev
- name: configure
run: mkdir build && cd build && cmake ..
- name: build
run: cmake --build build -j 2
- name: test
run: |
cp build/gcc2cryptoline.so test && \
cd test && \
./test.sh