Merge pull request #23 from AsakusaRinne/doc_ci

Temporarily disable build ci.
This commit is contained in:
Rinne 2024-03-31 21:05:06 +08:00 committed by GitHub
commit 05c8f20d34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 55 additions and 55 deletions

View File

@ -1,56 +1,56 @@
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# name: CI
# on:
# push:
# branches: [master]
# pull_request:
# branches: [master]
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true
jobs:
build:
name: Test
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 2
fail-fast: false
matrix:
build: [linux-release, windows-release, osx-release]
include:
- build: linux-release
os: ubuntu-latest
config: release
- build: osx-release
os: macos-latest
config: release
- build: windows-release
os: windows-2019
config: release
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
7.0.x
8.0.x
- name: Cache Packages
uses: actions/cache@v4
with:
key: "unit_test_models"
path: LLama.Unittest/Models
# workaround for actions/setup-dotnet#155
- name: Clear package cache
run: dotnet clean LLamaSharp.sln && dotnet nuget locals all --clear
- name: Restore packages
run: dotnet restore LLamaSharp.sln
- name: Build
run: dotnet build LLamaSharp.sln -c ${{ matrix.config }} --no-restore
- name: Test
run: dotnet test LLamaSharp.sln -c ${{ matrix.config }} -l "console;verbosity=detailed" --diag:logs/log.txt
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v3
with:
path: logs/
name: logs
# jobs:
# build:
# name: Test
# runs-on: ${{ matrix.os }}
# strategy:
# max-parallel: 2
# fail-fast: false
# matrix:
# build: [linux-release, windows-release, osx-release]
# include:
# - build: linux-release
# os: ubuntu-latest
# config: release
# - build: osx-release
# os: macos-latest
# config: release
# - build: windows-release
# os: windows-2019
# config: release
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-dotnet@v4
# with:
# dotnet-version: |
# 7.0.x
# 8.0.x
# - name: Cache Packages
# uses: actions/cache@v4
# with:
# key: "unit_test_models"
# path: LLama.Unittest/Models
# # workaround for actions/setup-dotnet#155
# - name: Clear package cache
# run: dotnet clean LLamaSharp.sln && dotnet nuget locals all --clear
# - name: Restore packages
# run: dotnet restore LLamaSharp.sln
# - name: Build
# run: dotnet build LLamaSharp.sln -c ${{ matrix.config }} --no-restore
# - name: Test
# run: dotnet test LLamaSharp.sln -c ${{ matrix.config }} -l "console;verbosity=detailed" --diag:logs/log.txt
# - name: Upload artifacts
# if: always()
# uses: actions/upload-artifact@v3
# with:
# path: logs/
# name: logs