-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (50 loc) · 1.21 KB
/
test.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
name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
example:
name: example
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v4
- name: Install clang
uses: ConorMacBride/install-package@v1
with:
apt: clang libc6-dev-i386
- name: Install GOAT
run: go install .
- name: Run GOAT
run: |
for file in src/*.c; do
goat $file -O3 -mavx -mfma
done
working-directory: example
- name: Run tests
run: go test -v ./...
working-directory: example
cases:
name: cases
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v4
- name: Install clang
uses: ConorMacBride/install-package@v1
with:
apt: clang libc6-dev-i386
- name: Install GOAT
run: go install .
- name: Run tests
run: |
for file in tests/*.c; do
goat $file -O3 -mavx -mfma
done
- name: Run amd64-only tests
run: |
for file in tests/amd64/*.c; do
goat $file -O3 -mavx -mfma
done