Skip to content

Commit

Permalink
增加yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CHKZL committed Jan 8, 2024
1 parent ffc9601 commit 922fa92
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/DDTV_Dev_CLI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: DDTV_Dev_CLI

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

jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
runtime: linux-x64
- os: ubuntu-latest
runtime: linux-arm
- os: windows-latest
runtime: win-x64
- os: macOS-latest
runtime: osx-arm64

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 publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_output/${{ matrix.runtime }}

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

0 comments on commit 922fa92

Please sign in to comment.