77 branches : [ "main" ]
88
99jobs :
10- # generate-data:
11- # runs-on: ubuntu-latest
12- # steps:
13- # - uses: actions/checkout@v3
14- # with:
15- # submodules: recursive
10+ generate-data :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v3
14+ with :
15+ submodules : recursive
1616
17- # - name: Set up Python
18- # uses: actions/setup-python@v4
19- # with:
20- # python-version: '3.10'
17+ - name : Set up Python
18+ uses : actions/setup-python@v4
19+ with :
20+ python-version : ' 3.10'
2121
22- # - name: Install dependencies
23- # run: |
24- # pip install modelscope transformers
22+ - name : Install dependencies
23+ run : |
24+ pip install modelscope transformers
2525
26- # - name: Generate Tests Data
27- # run: |
28- # cd tests
29- # python generate_assets.py
26+ - name : Generate Tests Data
27+ run : |
28+ cd tests
29+ python generate_assets.py
3030
31- # - name: Upload models
32- # uses: actions/upload-artifact@v4
33- # with:
34- # name: models
35- # path: tests/models/
31+ - name : Upload models
32+ uses : actions/upload-artifact@v4
33+ with :
34+ name : models
35+ path : tests/models/
3636
3737 build-and-test :
38- # needs: generate-data
38+ needs : generate-data
3939 strategy :
4040 matrix :
41- os : [windows-latest]
41+ os : [ubuntu-latest, macos-latest, windows-latest, ubuntu-24.04-arm64 ]
4242 ujson_use_rapidjson : ["OFF", "ON"]
4343 runs-on : ${{ matrix.os }}
4444 name : build-test (${{ matrix.os }}, RapidJSON=${{ matrix.ujson_use_rapidjson }})
@@ -47,11 +47,11 @@ jobs:
4747 with :
4848 submodules : recursive
4949
50- # - name: Download models
51- # uses: actions/download-artifact@v4
52- # with:
53- # name: models
54- # path: tests/models/
50+ - name : Download models
51+ uses : actions/download-artifact@v4
52+ with :
53+ name : models
54+ path : tests/models/
5555
5656 - name : Install build dependencies (Linux)
5757 if : runner.os == 'Linux'
@@ -67,12 +67,12 @@ jobs:
6767 run : |
6868 cmake --build build --config Release -j 4
6969
70- # - name: Run Tests
71- # shell: bash
72- # run: |
73- # cd build
74- # if [[ "${{ runner.os }}" == "Windows" ]]; then
75- # ./Release/test_main
76- # else
77- # ./test_main
78- # fi
70+ - name : Run Tests
71+ shell : bash
72+ run : |
73+ cd build
74+ if [[ "${{ runner.os }}" == "Windows" ]]; then
75+ ./Release/test_main
76+ else
77+ ./test_main
78+ fi
0 commit comments