|
1 |
| -name: CI |
2 |
| -on: |
3 |
| - push: |
4 |
| - branches: [master] |
5 |
| - pull_request: |
6 |
| - branches: [master] |
7 |
| -concurrency: |
8 |
| - group: ${{ github.workflow }}-${{ github.ref }} |
9 |
| - cancel-in-progress: true |
| 1 | +# name: CI |
| 2 | +# on: |
| 3 | +# push: |
| 4 | +# branches: [master] |
| 5 | +# pull_request: |
| 6 | +# branches: [master] |
| 7 | +# concurrency: |
| 8 | +# group: ${{ github.workflow }}-${{ github.ref }} |
| 9 | +# cancel-in-progress: true |
10 | 10 |
|
11 |
| -jobs: |
12 |
| - build: |
13 |
| - name: Test |
14 |
| - runs-on: ${{ matrix.os }} |
15 |
| - strategy: |
16 |
| - max-parallel: 2 |
17 |
| - fail-fast: false |
18 |
| - matrix: |
19 |
| - build: [linux-release, windows-release, osx-release] |
20 |
| - include: |
21 |
| - - build: linux-release |
22 |
| - os: ubuntu-latest |
23 |
| - config: release |
24 |
| - - build: osx-release |
25 |
| - os: macos-latest |
26 |
| - config: release |
27 |
| - - build: windows-release |
28 |
| - os: windows-2019 |
29 |
| - config: release |
30 |
| - steps: |
31 |
| - - uses: actions/checkout@v4 |
32 |
| - - uses: actions/setup-dotnet@v4 |
33 |
| - with: |
34 |
| - dotnet-version: | |
35 |
| - 7.0.x |
36 |
| - 8.0.x |
37 |
| - - name: Cache Packages |
38 |
| - uses: actions/cache@v4 |
39 |
| - with: |
40 |
| - key: "unit_test_models" |
41 |
| - path: LLama.Unittest/Models |
42 |
| - # workaround for actions/setup-dotnet#155 |
43 |
| - - name: Clear package cache |
44 |
| - run: dotnet clean LLamaSharp.sln && dotnet nuget locals all --clear |
45 |
| - - name: Restore packages |
46 |
| - run: dotnet restore LLamaSharp.sln |
47 |
| - - name: Build |
48 |
| - run: dotnet build LLamaSharp.sln -c ${{ matrix.config }} --no-restore |
49 |
| - - name: Test |
50 |
| - run: dotnet test LLamaSharp.sln -c ${{ matrix.config }} -l "console;verbosity=detailed" --diag:logs/log.txt |
51 |
| - - name: Upload artifacts |
52 |
| - if: always() |
53 |
| - uses: actions/upload-artifact@v3 |
54 |
| - with: |
55 |
| - path: logs/ |
56 |
| - name: logs |
| 11 | +# jobs: |
| 12 | +# build: |
| 13 | +# name: Test |
| 14 | +# runs-on: ${{ matrix.os }} |
| 15 | +# strategy: |
| 16 | +# max-parallel: 2 |
| 17 | +# fail-fast: false |
| 18 | +# matrix: |
| 19 | +# build: [linux-release, windows-release, osx-release] |
| 20 | +# include: |
| 21 | +# - build: linux-release |
| 22 | +# os: ubuntu-latest |
| 23 | +# config: release |
| 24 | +# - build: osx-release |
| 25 | +# os: macos-latest |
| 26 | +# config: release |
| 27 | +# - build: windows-release |
| 28 | +# os: windows-2019 |
| 29 | +# config: release |
| 30 | +# steps: |
| 31 | +# - uses: actions/checkout@v4 |
| 32 | +# - uses: actions/setup-dotnet@v4 |
| 33 | +# with: |
| 34 | +# dotnet-version: | |
| 35 | +# 7.0.x |
| 36 | +# 8.0.x |
| 37 | +# - name: Cache Packages |
| 38 | +# uses: actions/cache@v4 |
| 39 | +# with: |
| 40 | +# key: "unit_test_models" |
| 41 | +# path: LLama.Unittest/Models |
| 42 | +# # workaround for actions/setup-dotnet#155 |
| 43 | +# - name: Clear package cache |
| 44 | +# run: dotnet clean LLamaSharp.sln && dotnet nuget locals all --clear |
| 45 | +# - name: Restore packages |
| 46 | +# run: dotnet restore LLamaSharp.sln |
| 47 | +# - name: Build |
| 48 | +# run: dotnet build LLamaSharp.sln -c ${{ matrix.config }} --no-restore |
| 49 | +# - name: Test |
| 50 | +# run: dotnet test LLamaSharp.sln -c ${{ matrix.config }} -l "console;verbosity=detailed" --diag:logs/log.txt |
| 51 | +# - name: Upload artifacts |
| 52 | +# if: always() |
| 53 | +# uses: actions/upload-artifact@v3 |
| 54 | +# with: |
| 55 | +# path: logs/ |
| 56 | +# name: logs |
0 commit comments