mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-30 13:13:24 +08:00
ci: using workflow_call to simplify ci.
This commit is contained in:
26
.github/workflows/pack-nightly.yml
vendored
26
.github/workflows/pack-nightly.yml
vendored
@@ -10,23 +10,19 @@ on:
|
|||||||
type: string
|
type: string
|
||||||
Semi_Avalonia:
|
Semi_Avalonia:
|
||||||
description: 'Pack Semi.Avalonia'
|
description: 'Pack Semi.Avalonia'
|
||||||
required: true
|
default: true
|
||||||
default: 'true'
|
|
||||||
type: boolean
|
type: boolean
|
||||||
Semi_Avalonia_ColorPicker:
|
Semi_Avalonia_ColorPicker:
|
||||||
description: 'Pack Semi.Avalonia.ColorPicker'
|
description: 'Pack Semi.Avalonia.ColorPicker'
|
||||||
required: true
|
default: true
|
||||||
default: 'true'
|
|
||||||
type: boolean
|
type: boolean
|
||||||
Semi_Avalonia_DataGrid:
|
Semi_Avalonia_DataGrid:
|
||||||
description: 'Pack Semi.Avalonia.DataGrid'
|
description: 'Pack Semi.Avalonia.DataGrid'
|
||||||
required: true
|
default: false
|
||||||
default: 'false'
|
|
||||||
type: boolean
|
type: boolean
|
||||||
Semi_Avalonia_TreeDataGrid:
|
Semi_Avalonia_TreeDataGrid:
|
||||||
description: 'Pack Semi.Avalonia.TreeDataGrid'
|
description: 'Pack Semi.Avalonia.TreeDataGrid'
|
||||||
required: true
|
default: false
|
||||||
default: 'false'
|
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -35,28 +31,28 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
- name: Get Version
|
- name: Get Version
|
||||||
run: |
|
run: |
|
||||||
VERSION_TIMESTAMP=$(date +'%Y%m%d%H%M%S')
|
VERSION_TIMESTAMP=$(date +'%Y%m%d%H%M%S')
|
||||||
VERSION="${{ github.event.inputs.Version_Prefix }}-nightly-${VERSION_TIMESTAMP}"
|
VERSION="${{ inputs.Version_Prefix }}-nightly-${VERSION_TIMESTAMP}"
|
||||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Pack Semi.Avalonia
|
- name: Pack Semi.Avalonia
|
||||||
if: ${{ github.event.inputs.Semi_Avalonia == 'true' }}
|
if: ${{ inputs.Semi_Avalonia == true }}
|
||||||
run: dotnet pack src/Semi.Avalonia -o nugets /p:Version=${{ env.VERSION }}
|
run: dotnet pack src/Semi.Avalonia -o nugets /p:Version=${{ env.VERSION }}
|
||||||
|
|
||||||
- name: Pack Semi.Avalonia.ColorPicker
|
- name: Pack Semi.Avalonia.ColorPicker
|
||||||
if: ${{ github.event.inputs.Semi_Avalonia_ColorPicker == 'true' }}
|
if: ${{ inputs.Semi_Avalonia_ColorPicker == true }}
|
||||||
run: dotnet pack src/Semi.Avalonia.ColorPicker -o nugets /p:Version=${{ env.VERSION }}
|
run: dotnet pack src/Semi.Avalonia.ColorPicker -o nugets /p:Version=${{ env.VERSION }}
|
||||||
|
|
||||||
- name: Pack Semi.Avalonia.DataGrid
|
- name: Pack Semi.Avalonia.DataGrid
|
||||||
if: ${{ github.event.inputs.Semi_Avalonia_DataGrid == 'true' }}
|
if: ${{ inputs.Semi_Avalonia_DataGrid == true }}
|
||||||
run: dotnet pack src/Semi.Avalonia.DataGrid -o nugets /p:Version=${{ env.VERSION }}
|
run: dotnet pack src/Semi.Avalonia.DataGrid -o nugets /p:Version=${{ env.VERSION }}
|
||||||
|
|
||||||
- name: Pack Semi.Avalonia.TreeDataGrid
|
- name: Pack Semi.Avalonia.TreeDataGrid
|
||||||
if: ${{ github.event.inputs.Semi_Avalonia_TreeDataGrid == 'true' }}
|
if: ${{ inputs.Semi_Avalonia_TreeDataGrid == true }}
|
||||||
run: dotnet pack src/Semi.Avalonia.TreeDataGrid -o nugets /p:Version=${{ env.VERSION }}
|
run: dotnet pack src/Semi.Avalonia.TreeDataGrid -o nugets /p:Version=${{ env.VERSION }}
|
||||||
|
|
||||||
- name: Add NuGet Source
|
- name: Add NuGet Source
|
||||||
@@ -66,7 +62,7 @@ jobs:
|
|||||||
run: dotnet nuget push "nugets/*.nupkg" --api-key ${{ secrets.IRIHI_NUGET_API_KEY }} --source irihi.tech --skip-duplicate
|
run: dotnet nuget push "nugets/*.nupkg" --api-key ${{ secrets.IRIHI_NUGET_API_KEY }} --source irihi.tech --skip-duplicate
|
||||||
|
|
||||||
- name: Upload a Build Artifact
|
- name: Upload a Build Artifact
|
||||||
uses: actions/upload-artifact@v4.3.1
|
uses: actions/upload-artifact@v4.6.2
|
||||||
with:
|
with:
|
||||||
name: nugets
|
name: nugets
|
||||||
path: nugets
|
path: nugets
|
||||||
|
|||||||
48
.github/workflows/pack.yml
vendored
48
.github/workflows/pack.yml
vendored
@@ -3,26 +3,43 @@ name: Pack to NuGet
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
Upload_to_NuGet:
|
||||||
|
description: 'Upload to NuGet'
|
||||||
|
default: true
|
||||||
|
type: boolean
|
||||||
Semi_Avalonia:
|
Semi_Avalonia:
|
||||||
description: 'Pack Semi.Avalonia'
|
description: 'Pack Semi.Avalonia'
|
||||||
required: true
|
default: true
|
||||||
default: 'true'
|
|
||||||
type: boolean
|
type: boolean
|
||||||
Semi_Avalonia_ColorPicker:
|
Semi_Avalonia_ColorPicker:
|
||||||
description: 'Pack Semi.Avalonia.ColorPicker'
|
description: 'Pack Semi.Avalonia.ColorPicker'
|
||||||
required: true
|
default: true
|
||||||
default: 'true'
|
|
||||||
type: boolean
|
type: boolean
|
||||||
Semi_Avalonia_DataGrid:
|
Semi_Avalonia_DataGrid:
|
||||||
description: 'Pack Semi.Avalonia.DataGrid'
|
description: 'Pack Semi.Avalonia.DataGrid'
|
||||||
required: true
|
default: false
|
||||||
default: 'false'
|
|
||||||
type: boolean
|
type: boolean
|
||||||
Semi_Avalonia_TreeDataGrid:
|
Semi_Avalonia_TreeDataGrid:
|
||||||
description: 'Pack Semi.Avalonia.TreeDataGrid'
|
description: 'Pack Semi.Avalonia.TreeDataGrid'
|
||||||
required: true
|
default: false
|
||||||
default: 'false'
|
|
||||||
type: boolean
|
type: boolean
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
Upload_to_NuGet:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
Semi_Avalonia:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
Semi_Avalonia_ColorPicker:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
Semi_Avalonia_DataGrid:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
Semi_Avalonia_TreeDataGrid:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Pack_to_NuGet:
|
Pack_to_NuGet:
|
||||||
@@ -30,29 +47,30 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
- name: Pack Semi.Avalonia
|
- name: Pack Semi.Avalonia
|
||||||
if: ${{ github.event.inputs.Semi_Avalonia == 'true' }}
|
if: ${{ inputs.Semi_Avalonia == true }}
|
||||||
run: dotnet pack src/Semi.Avalonia -o nugets
|
run: dotnet pack src/Semi.Avalonia -o nugets
|
||||||
|
|
||||||
- name: Pack Semi.Avalonia.ColorPicker
|
- name: Pack Semi.Avalonia.ColorPicker
|
||||||
if: ${{ github.event.inputs.Semi_Avalonia_ColorPicker == 'true' }}
|
if: ${{ inputs.Semi_Avalonia_ColorPicker == true }}
|
||||||
run: dotnet pack src/Semi.Avalonia.ColorPicker -o nugets
|
run: dotnet pack src/Semi.Avalonia.ColorPicker -o nugets
|
||||||
|
|
||||||
- name: Pack Semi.Avalonia.DataGrid
|
- name: Pack Semi.Avalonia.DataGrid
|
||||||
if: ${{ github.event.inputs.Semi_Avalonia_DataGrid == 'true' }}
|
if: ${{ inputs.Semi_Avalonia_DataGrid == true }}
|
||||||
run: dotnet pack src/Semi.Avalonia.DataGrid -o nugets
|
run: dotnet pack src/Semi.Avalonia.DataGrid -o nugets
|
||||||
|
|
||||||
- name: Pack Semi.Avalonia.TreeDataGrid
|
- name: Pack Semi.Avalonia.TreeDataGrid
|
||||||
if: ${{ github.event.inputs.Semi_Avalonia_TreeDataGrid == 'true' }}
|
if: ${{ inputs.Semi_Avalonia_TreeDataGrid == true }}
|
||||||
run: dotnet pack src/Semi.Avalonia.TreeDataGrid -o nugets
|
run: dotnet pack src/Semi.Avalonia.TreeDataGrid -o nugets
|
||||||
|
|
||||||
- name: Publish NuGet package
|
- name: Upload to NuGet
|
||||||
|
if: ${{ inputs.Upload_to_NuGet == true }}
|
||||||
run: dotnet nuget push "nugets/*.nupkg" --api-key ${{ secrets.NUGET_ORG_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
|
run: dotnet nuget push "nugets/*.nupkg" --api-key ${{ secrets.NUGET_ORG_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
|
||||||
|
|
||||||
- name: Upload a Build Artifact
|
- name: Upload a Build Artifact
|
||||||
uses: actions/upload-artifact@v4.3.1
|
uses: actions/upload-artifact@v4.6.2
|
||||||
with:
|
with:
|
||||||
name: nugets
|
name: nugets
|
||||||
path: nugets
|
path: nugets
|
||||||
|
|||||||
56
.github/workflows/publish.yml
vendored
56
.github/workflows/publish.yml
vendored
@@ -5,53 +5,73 @@ on:
|
|||||||
inputs:
|
inputs:
|
||||||
win-x64:
|
win-x64:
|
||||||
description: 'Windows x64'
|
description: 'Windows x64'
|
||||||
required: true
|
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
win-x64-aot:
|
win-x64-aot:
|
||||||
description: 'Windows x64 AOT'
|
description: 'Windows x64 AOT'
|
||||||
required: true
|
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
linux-x64:
|
linux-x64:
|
||||||
description: 'Linux x64'
|
description: 'Linux x64'
|
||||||
required: true
|
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
linux-x64-aot:
|
linux-x64-aot:
|
||||||
description: 'Linux x64 AOT'
|
description: 'Linux x64 AOT'
|
||||||
required: true
|
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
drm-linux-x64:
|
drm-linux-x64:
|
||||||
description: 'DRM Linux x64'
|
description: 'DRM Linux x64'
|
||||||
required: true
|
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
drm-linux-x64-aot:
|
drm-linux-x64-aot:
|
||||||
description: 'DRM Linux x64 AOT'
|
description: 'DRM Linux x64 AOT'
|
||||||
required: true
|
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
osx-arm64:
|
osx-arm64:
|
||||||
description: 'macOS arm64'
|
description: 'macOS arm64'
|
||||||
required: true
|
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
osx-arm64-aot:
|
osx-arm64-aot:
|
||||||
description: 'macOS arm64 AOT'
|
description: 'macOS arm64 AOT'
|
||||||
required: true
|
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
android-arm64:
|
android-arm64:
|
||||||
description: 'Android arm64'
|
description: 'Android arm64'
|
||||||
required: true
|
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
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:
|
jobs:
|
||||||
win-x64:
|
win-x64:
|
||||||
if: ${{ github.event.inputs.win-x64 == 'true' }}
|
if: ${{inputs.win-x64 == true}}
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -67,7 +87,7 @@ jobs:
|
|||||||
!publish/*.pdb
|
!publish/*.pdb
|
||||||
|
|
||||||
win-x64-aot:
|
win-x64-aot:
|
||||||
if: ${{ github.event.inputs.win-x64-aot == 'true' }}
|
if: ${{inputs.win-x64-aot == true}}
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -87,7 +107,7 @@ jobs:
|
|||||||
!publish/*.pdb
|
!publish/*.pdb
|
||||||
|
|
||||||
linux-x64:
|
linux-x64:
|
||||||
if: ${{ github.event.inputs.linux-x64 == 'true' }}
|
if: ${{inputs.linux-x64 == true}}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -103,7 +123,7 @@ jobs:
|
|||||||
!publish/*.pdb
|
!publish/*.pdb
|
||||||
|
|
||||||
linux-x64-aot:
|
linux-x64-aot:
|
||||||
if: ${{ github.event.inputs.linux-x64-aot == 'true' }}
|
if: ${{inputs.linux-x64-aot == true}}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -123,7 +143,7 @@ jobs:
|
|||||||
!publish/*.pdb
|
!publish/*.pdb
|
||||||
|
|
||||||
drm-linux-x64:
|
drm-linux-x64:
|
||||||
if: ${{ github.event.inputs.drm-linux-x64 == 'true' }}
|
if: ${{inputs.drm-linux-x64 == true}}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -139,7 +159,7 @@ jobs:
|
|||||||
!publish/*.pdb
|
!publish/*.pdb
|
||||||
|
|
||||||
drm-linux-x64-aot:
|
drm-linux-x64-aot:
|
||||||
if: ${{ github.event.inputs.drm-linux-x64-aot == 'true' }}
|
if: ${{inputs.drm-linux-x64-aot == true}}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -159,7 +179,7 @@ jobs:
|
|||||||
!publish/*.pdb
|
!publish/*.pdb
|
||||||
|
|
||||||
osx-arm64:
|
osx-arm64:
|
||||||
if: ${{ github.event.inputs.osx-arm64 == 'true' }}
|
if: ${{inputs.osx-arm64 == true}}
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -175,7 +195,7 @@ jobs:
|
|||||||
!publish/*.pdb
|
!publish/*.pdb
|
||||||
|
|
||||||
osx-arm64-aot:
|
osx-arm64-aot:
|
||||||
if: ${{ github.event.inputs.osx-arm64-aot == 'true' }}
|
if: ${{inputs.osx-arm64-aot == true}}
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -195,7 +215,7 @@ jobs:
|
|||||||
!publish/*.pdb
|
!publish/*.pdb
|
||||||
|
|
||||||
android-arm64:
|
android-arm64:
|
||||||
if: ${{ github.event.inputs.android-arm64 == 'true' }}
|
if: ${{inputs.android-arm64 == true}}
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
209
.github/workflows/release-tag.yml
vendored
209
.github/workflows/release-tag.yml
vendored
@@ -5,190 +5,43 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- "v[0-9]+.[0-9]+.[0-9]+.[0-9]+"
|
- "v[0-9]+.[0-9]+.[0-9]+.[0-9]+"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
Upload_to_NuGet:
|
||||||
|
description: 'Upload to NuGet'
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
Semi_Avalonia:
|
||||||
|
description: 'Pack Semi.Avalonia'
|
||||||
|
default: true
|
||||||
|
type: boolean
|
||||||
|
Semi_Avalonia_ColorPicker:
|
||||||
|
description: 'Pack Semi.Avalonia.ColorPicker'
|
||||||
|
default: true
|
||||||
|
type: boolean
|
||||||
|
Semi_Avalonia_DataGrid:
|
||||||
|
description: 'Pack Semi.Avalonia.DataGrid'
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
Semi_Avalonia_TreeDataGrid:
|
||||||
|
description: 'Pack Semi.Avalonia.TreeDataGrid'
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
nuget:
|
nuget:
|
||||||
runs-on: ubuntu-latest
|
uses: ./.github/workflows/pack.yml
|
||||||
steps:
|
with:
|
||||||
- name: Checkout
|
Upload_to_NuGet: ${{ inputs.Upload_to_NuGet }}
|
||||||
uses: actions/checkout@v4.2.2
|
Semi_Avalonia: ${{ inputs.Semi_Avalonia }}
|
||||||
- name: Pack Semi.Avalonia
|
Semi_Avalonia_ColorPicker: ${{ inputs.Semi_Avalonia_ColorPicker }}
|
||||||
run: dotnet pack src/Semi.Avalonia -o nugets
|
Semi_Avalonia_DataGrid: ${{ inputs.Semi_Avalonia_DataGrid }}
|
||||||
- name: Pack Semi.Avalonia.ColorPicker
|
Semi_Avalonia_TreeDataGrid: ${{ inputs.Semi_Avalonia_TreeDataGrid }}
|
||||||
run: dotnet pack src/Semi.Avalonia.ColorPicker -o nugets
|
|
||||||
- name: Pack Semi.Avalonia.DataGrid
|
|
||||||
run: dotnet pack src/Semi.Avalonia.DataGrid -o nugets
|
|
||||||
- name: Pack Semi.Avalonia.TreeDataGrid
|
|
||||||
run: dotnet pack src/Semi.Avalonia.TreeDataGrid -o nugets
|
|
||||||
|
|
||||||
- name: Upload a Build Artifact
|
publish:
|
||||||
uses: actions/upload-artifact@v4.6.2
|
uses: ./.github/workflows/publish.yml
|
||||||
with:
|
|
||||||
name: nugets
|
|
||||||
path: nugets
|
|
||||||
|
|
||||||
win-x64:
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4.2.2
|
|
||||||
- name: Publish win-x64
|
|
||||||
run: dotnet publish demo/Semi.Avalonia.Demo.Desktop -r win-x64 -c Release -o publish --sc -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true
|
|
||||||
- name: Upload a Build Artifact
|
|
||||||
uses: actions/upload-artifact@v4.6.2
|
|
||||||
with:
|
|
||||||
name: Semi.Avalonia.Demo.Desktop.win-x64
|
|
||||||
path: |
|
|
||||||
publish
|
|
||||||
!publish/*.pdb
|
|
||||||
|
|
||||||
win-x64-aot:
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4.2.2
|
|
||||||
- name: Enable Native AOT in .csproj
|
|
||||||
run: |
|
|
||||||
sed -i 's#<!--<PublishAot>true</PublishAot>-->#<PublishAot>true</PublishAot>#' demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
|
|
||||||
sed -i 's#<!--<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>-->#<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>#' demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
|
|
||||||
- name: Publish win-x64 AOT
|
|
||||||
run: dotnet publish demo/Semi.Avalonia.Demo.Desktop -r win-x64 -c Release -o publish
|
|
||||||
- name: Upload a Build Artifact
|
|
||||||
uses: actions/upload-artifact@v4.6.2
|
|
||||||
with:
|
|
||||||
name: Semi.Avalonia.Demo.Desktop.win-x64.NativeAOT
|
|
||||||
path: |
|
|
||||||
publish
|
|
||||||
!publish/*.pdb
|
|
||||||
|
|
||||||
linux-x64:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4.2.2
|
|
||||||
- name: Publish linux-x64
|
|
||||||
run: dotnet publish demo/Semi.Avalonia.Demo.Desktop -r linux-x64 -c Release -o publish --sc -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true
|
|
||||||
- name: Upload a Build Artifact
|
|
||||||
uses: actions/upload-artifact@v4.6.2
|
|
||||||
with:
|
|
||||||
name: Semi.Avalonia.Demo.Desktop.linux-x64
|
|
||||||
path: |
|
|
||||||
publish
|
|
||||||
!publish/*.pdb
|
|
||||||
|
|
||||||
linux-x64-aot:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4.2.2
|
|
||||||
- name: Enable Native AOT in .csproj
|
|
||||||
run: |
|
|
||||||
sed -i 's#<!--<PublishAot>true</PublishAot>-->#<PublishAot>true</PublishAot>#' demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
|
|
||||||
sed -i 's#<!--<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>-->#<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>#' demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
|
|
||||||
- name: Publish linux-x64 AOT
|
|
||||||
run: dotnet publish demo/Semi.Avalonia.Demo.Desktop -r linux-x64 -c Release -o publish
|
|
||||||
- name: Upload a Build Artifact
|
|
||||||
uses: actions/upload-artifact@v4.6.2
|
|
||||||
with:
|
|
||||||
name: Semi.Avalonia.Demo.Desktop.linux-x64.NativeAOT
|
|
||||||
path: |
|
|
||||||
publish
|
|
||||||
!publish/*.pdb
|
|
||||||
|
|
||||||
drm-linux-x64:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4.2.2
|
|
||||||
- name: Publish linux-x64 DRM
|
|
||||||
run: dotnet publish demo/Semi.Avalonia.Demo.Drm -r linux-x64 -c Release -o publish --sc -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true
|
|
||||||
- name: Upload a Build Artifact
|
|
||||||
uses: actions/upload-artifact@v4.6.2
|
|
||||||
with:
|
|
||||||
name: Semi.Avalonia.Demo.Drm.linux-x64
|
|
||||||
path: |
|
|
||||||
publish
|
|
||||||
!publish/*.pdb
|
|
||||||
|
|
||||||
drm-linux-x64-aot:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4.2.2
|
|
||||||
- name: Enable Native AOT in .csproj
|
|
||||||
run: |
|
|
||||||
sed -i 's#<!--<PublishAot>true</PublishAot>-->#<PublishAot>true</PublishAot>#' demo/Semi.Avalonia.Demo.Drm/Semi.Avalonia.Demo.Drm.csproj
|
|
||||||
sed -i 's#<!--<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>-->#<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>#' demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
|
|
||||||
- name: Publish linux-x64 AOT
|
|
||||||
run: dotnet publish demo/Semi.Avalonia.Demo.Drm -r linux-x64 -c Release -o publish
|
|
||||||
- name: Upload a Build Artifact
|
|
||||||
uses: actions/upload-artifact@v4.6.2
|
|
||||||
with:
|
|
||||||
name: Semi.Avalonia.Demo.Drm.linux-x64.NativeAOT
|
|
||||||
path: |
|
|
||||||
publish
|
|
||||||
!publish/*.pdb
|
|
||||||
|
|
||||||
osx-arm64:
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4.2.2
|
|
||||||
- name: Publish osx-arm64
|
|
||||||
run: dotnet publish demo/Semi.Avalonia.Demo.Desktop -r osx-arm64 -c Release -o publish --sc -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true
|
|
||||||
- name: Upload a Build Artifact
|
|
||||||
uses: actions/upload-artifact@v4.6.2
|
|
||||||
with:
|
|
||||||
name: Semi.Avalonia.Demo.Desktop.osx-arm64
|
|
||||||
path: |
|
|
||||||
publish
|
|
||||||
!publish/*.pdb
|
|
||||||
|
|
||||||
osx-arm64-aot:
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4.2.2
|
|
||||||
- name: Enable Native AOT in .csproj
|
|
||||||
run: |
|
|
||||||
sed -i '' 's#<!--<PublishAot>true</PublishAot>-->#<PublishAot>true</PublishAot>#' demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
|
|
||||||
sed -i '' 's#<!--<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>-->#<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>#' demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
|
|
||||||
- name: Publish osx-arm64 AOT
|
|
||||||
run: dotnet publish demo/Semi.Avalonia.Demo.Desktop -r osx-arm64 -c Release -o publish
|
|
||||||
- name: Upload a Build Artifact
|
|
||||||
uses: actions/upload-artifact@v4.6.2
|
|
||||||
with:
|
|
||||||
name: Semi.Avalonia.Demo.Desktop.osx-arm64.NativeAOT
|
|
||||||
path: |
|
|
||||||
publish
|
|
||||||
!publish/*.pdb
|
|
||||||
|
|
||||||
android-arm64:
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4.2.2
|
|
||||||
- name: CD Android
|
|
||||||
run: cd demo/Semi.Avalonia.Demo.Android
|
|
||||||
- name: Restore Dependencies
|
|
||||||
run: dotnet restore
|
|
||||||
- name: Publish Android
|
|
||||||
run: dotnet publish demo/Semi.Avalonia.Demo.Android -c Release -f net8.0-android --no-restore -o publish -p:RuntimeIdentifier=android-arm64
|
|
||||||
- name: Upload a Build Artifact
|
|
||||||
uses: actions/upload-artifact@v4.6.2
|
|
||||||
with:
|
|
||||||
name: android-arm64
|
|
||||||
path: publish/*Signed.apk
|
|
||||||
|
|
||||||
draft-release:
|
draft-release:
|
||||||
needs: [
|
needs: [ nuget,publish ]
|
||||||
nuget,
|
|
||||||
win-x64,win-x64-aot,
|
|
||||||
linux-x64,linux-x64-aot,
|
|
||||||
drm-linux-x64,drm-linux-x64-aot,
|
|
||||||
osx-arm64,osx-arm64-aot,
|
|
||||||
android-arm64
|
|
||||||
]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v4.3.0
|
- uses: actions/download-artifact@v4.3.0
|
||||||
|
|||||||
Reference in New Issue
Block a user