File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build (Linux + Windows)
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ jobs :
10+ build :
11+ name : Build on ${{ matrix.os }}
12+ runs-on : ${{ matrix.os }}
13+ strategy :
14+ matrix :
15+ os : [ubuntu-latest, windows-latest]
16+
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
20+
21+ - name : Set up build environment
22+ if : matrix.os == 'ubuntu-latest'
23+ run : |
24+ sudo apt-get update
25+ sudo apt-get install -y make gcc
26+
27+ - name : Set up build environment (Windows)
28+ if : matrix.os == 'windows-latest'
29+ run : |
30+ choco install make mingw
31+ shell : pwsh
32+
33+ - name : Build library and tests
34+ run : make all
35+ shell : bash
36+
37+ - name : Show build output
38+ run : ls -R build
39+ shell : bash
You can’t perform that action at this time.
0 commit comments