@@ -3,39 +3,41 @@ name: test
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- build :
7
- runs-on : ${{ matrix.os }}
6
+ ubuntu :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - name : checkout
10
+ uses : actions/checkout@v4
11
+ - name : install brotli
12
+ run : sudo apt-get update && sudo apt-get install -y libbrotli-dev
13
+ - name : build and run tests
14
+ run : cd test && make -j4
15
+ - name : run fuzz test target
16
+ run : cd test && make fuzz_test
8
17
9
- strategy :
10
- matrix :
11
- os : [macOS-latest, ubuntu-latest, windows-latest]
18
+ macos :
19
+ runs-on : macos-latest
20
+ steps :
21
+ - name : checkout
22
+ uses : actions/checkout@v4
23
+ - name : build and run tests
24
+ run : |
25
+ cd test && make -j2
12
26
27
+ windows :
28
+ runs-on : windows-latest
13
29
steps :
14
30
- name : prepare git for checkout on windows
15
- if : matrix.os == 'windows-latest'
16
31
run : |
17
32
git config --global core.autocrlf false
18
33
git config --global core.eol lf
19
34
- name : checkout
20
35
uses : actions/checkout@v4
21
- - name : install brotli library on ubuntu
22
- if : matrix.os == 'ubuntu-latest'
23
- run : sudo apt update && sudo apt-get install -y libbrotli-dev
24
- - name : install brotli library on macOS
25
- if : matrix.os == 'macOS-latest'
26
- run : brew install brotli
27
- - name : make
28
- if : matrix.os != 'windows-latest'
29
- run : cd test && make -j2
30
- - name : check fuzz test target
31
- if : matrix.os == 'ubuntu-latest'
32
- run : cd test && make fuzz_test
33
36
- name : setup msbuild on windows
34
- if : matrix.os == 'windows-latest'
35
37
uses : microsoft/setup-msbuild@v2
36
38
- name : make-windows
37
- if : matrix.os == 'windows-latest'
38
39
run : |
39
40
cd test
40
41
msbuild.exe test.sln /verbosity:minimal /t:Build "/p:Configuration=Release;Platform=x64"
41
42
x64\Release\test.exe
43
+
0 commit comments