mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-03-22 01:16:35 +08:00
ci: using workflow_call to simplify ci.
This commit is contained in:
56
.github/workflows/publish.yml
vendored
56
.github/workflows/publish.yml
vendored
@@ -5,53 +5,73 @@ on:
|
||||
inputs:
|
||||
win-x64:
|
||||
description: 'Windows x64'
|
||||
required: true
|
||||
default: false
|
||||
type: boolean
|
||||
win-x64-aot:
|
||||
description: 'Windows x64 AOT'
|
||||
required: true
|
||||
default: false
|
||||
type: boolean
|
||||
linux-x64:
|
||||
description: 'Linux x64'
|
||||
required: true
|
||||
default: false
|
||||
type: boolean
|
||||
linux-x64-aot:
|
||||
description: 'Linux x64 AOT'
|
||||
required: true
|
||||
default: false
|
||||
type: boolean
|
||||
drm-linux-x64:
|
||||
description: 'DRM Linux x64'
|
||||
required: true
|
||||
default: false
|
||||
type: boolean
|
||||
drm-linux-x64-aot:
|
||||
description: 'DRM Linux x64 AOT'
|
||||
required: true
|
||||
default: false
|
||||
type: boolean
|
||||
osx-arm64:
|
||||
description: 'macOS arm64'
|
||||
required: true
|
||||
default: false
|
||||
type: boolean
|
||||
osx-arm64-aot:
|
||||
description: 'macOS arm64 AOT'
|
||||
required: true
|
||||
default: false
|
||||
type: boolean
|
||||
android-arm64:
|
||||
description: 'Android arm64'
|
||||
required: true
|
||||
default: false
|
||||
type: boolean
|
||||
workflow_call:
|
||||
inputs:
|
||||
win-x64:
|
||||
type: boolean
|
||||
default: true
|
||||
win-x64-aot:
|
||||
type: boolean
|
||||
default: true
|
||||
linux-x64:
|
||||
type: boolean
|
||||
default: true
|
||||
linux-x64-aot:
|
||||
type: boolean
|
||||
default: true
|
||||
drm-linux-x64:
|
||||
type: boolean
|
||||
default: true
|
||||
drm-linux-x64-aot:
|
||||
type: boolean
|
||||
default: true
|
||||
osx-arm64:
|
||||
type: boolean
|
||||
default: true
|
||||
osx-arm64-aot:
|
||||
type: boolean
|
||||
default: true
|
||||
android-arm64:
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
jobs:
|
||||
win-x64:
|
||||
if: ${{ github.event.inputs.win-x64 == 'true' }}
|
||||
if: ${{inputs.win-x64 == true}}
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -67,7 +87,7 @@ jobs:
|
||||
!publish/*.pdb
|
||||
|
||||
win-x64-aot:
|
||||
if: ${{ github.event.inputs.win-x64-aot == 'true' }}
|
||||
if: ${{inputs.win-x64-aot == true}}
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -87,7 +107,7 @@ jobs:
|
||||
!publish/*.pdb
|
||||
|
||||
linux-x64:
|
||||
if: ${{ github.event.inputs.linux-x64 == 'true' }}
|
||||
if: ${{inputs.linux-x64 == true}}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -103,7 +123,7 @@ jobs:
|
||||
!publish/*.pdb
|
||||
|
||||
linux-x64-aot:
|
||||
if: ${{ github.event.inputs.linux-x64-aot == 'true' }}
|
||||
if: ${{inputs.linux-x64-aot == true}}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -123,7 +143,7 @@ jobs:
|
||||
!publish/*.pdb
|
||||
|
||||
drm-linux-x64:
|
||||
if: ${{ github.event.inputs.drm-linux-x64 == 'true' }}
|
||||
if: ${{inputs.drm-linux-x64 == true}}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -139,7 +159,7 @@ jobs:
|
||||
!publish/*.pdb
|
||||
|
||||
drm-linux-x64-aot:
|
||||
if: ${{ github.event.inputs.drm-linux-x64-aot == 'true' }}
|
||||
if: ${{inputs.drm-linux-x64-aot == true}}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -159,7 +179,7 @@ jobs:
|
||||
!publish/*.pdb
|
||||
|
||||
osx-arm64:
|
||||
if: ${{ github.event.inputs.osx-arm64 == 'true' }}
|
||||
if: ${{inputs.osx-arm64 == true}}
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -175,7 +195,7 @@ jobs:
|
||||
!publish/*.pdb
|
||||
|
||||
osx-arm64-aot:
|
||||
if: ${{ github.event.inputs.osx-arm64-aot == 'true' }}
|
||||
if: ${{inputs.osx-arm64-aot == true}}
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -195,7 +215,7 @@ jobs:
|
||||
!publish/*.pdb
|
||||
|
||||
android-arm64:
|
||||
if: ${{ github.event.inputs.android-arm64 == 'true' }}
|
||||
if: ${{inputs.android-arm64 == true}}
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
Reference in New Issue
Block a user