File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Simple Test CI
2+
3+ on :
4+ push :
5+ branches : [ main, master, v* ]
6+ pull_request :
7+ branches : [ main, master, v* ]
8+
9+ jobs :
10+ test :
11+ strategy :
12+ matrix :
13+ os : [ubuntu-latest, macos-latest, windows-latest]
14+ fail-fast : false
15+
16+ runs-on : ${{ matrix.os }}
17+
18+ steps :
19+ - name : Checkout code
20+ uses : actions/checkout@v4
21+
22+ # Linux setup
23+ - name : Install dependencies (Linux)
24+ if : runner.os == 'Linux'
25+ run : |
26+ sudo apt-get update
27+ sudo apt-get install -y build-essential gcc make
28+
29+ # macOS setup
30+ - name : Install dependencies (macOS)
31+ if : runner.os == 'macOS'
32+ run : |
33+ # Xcode command line tools should already be available
34+ # Just verify gcc and make are available
35+ which gcc || which clang
36+ which make
37+
38+ # Windows setup with MSYS2
39+ - name : Setup MSYS2 (Windows)
40+ if : runner.os == 'Windows'
41+ uses : msys2/setup-msys2@v2
42+ with :
43+ msystem : UCRT64
44+ update : true
45+ install : >-
46+ mingw-w64-ucrt-x86_64-gcc
47+ mingw-w64-ucrt-x86_64-make
48+ make
49+ bash
50+
51+ # Run the test
52+ - name : Run simple test
53+ run : bash test/simple.test.sh
54+
You can’t perform that action at this time.
0 commit comments