Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加dev版本cli自动build #186

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/DDTV_Dev_CLI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: DDTV_Dev_CLI

on:
push:
branches-ignore:
- master
paths:
- 'CLI/**'
- '.github/workflows/DDTV_Dev_CLI.yml'
- '!**/README.md'
pull_request:
branches-ignore:
- master
paths:
- 'CLI/**'
- '.github/workflows/DDTV_Dev_CLI.yml'
- '!**/README.md'
workflow_dispatch:

jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Use .NET 8.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'

- name: Restore dependencies
run: cd CLI && dotnet restore

- name: Build
run: cd CLI && dotnet build --no-restore --output build_output

- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: DDTV-CLI-${{ matrix.os }}
path: CLI/build_output
Loading