-
Notifications
You must be signed in to change notification settings - Fork 37
46 lines (42 loc) · 1.17 KB
/
ubuntu.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
name: Ubuntu build
on: [push, pull_request]
jobs:
build_clang:
name: clang [Ubuntu]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: |
sudo apt-get -qqq update
sudo apt-get install -y build-essential clang
- name: build as C
run: |
cd tinymt
make CC="clang -Wall -Wextra -Werror -Wsign-compare -Wconversion -O3"
build_gcc:
name: gcc [Ubuntu]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: |
sudo apt-get -qqq update
sudo apt-get install -y build-essential gcc
- name: build as C99
run: |
cd tinymt
make CC="gcc -Wall -Wextra -Werror -Wsign-compare -Wconversion -Wmissing-prototypes -O3 -std=c99"
build_gxx:
name: g++ [Ubuntu]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: |
sudo apt-get -qqq update
sudo apt-get install -y build-essential gcc g++
- name: build as C++
run: |
cd tinymt
make CC="g++ -Wall -Wextra -Werror -Wsign-compare -Wconversion -O3"