Skip to content

Commit

Permalink
M | CI:Build | Remove supportimg rpm and deb package
Browse files Browse the repository at this point in the history
  • Loading branch information
FTS427 committed Jul 25, 2024
1 parent 5b08219 commit 9dd7d4f
Showing 1 changed file with 4 additions and 71 deletions.
75 changes: 4 additions & 71 deletions .github/workflows/CI-Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
build_Linux_Appimage:
strategy:
matrix:
arch: ["x64", "arm", "arm64"] #"bionic-arm64", "musl-x64" is not available
arch: ["x64", "arm", "arm64"]
runs-on: ubuntu-latest
needs: [test, test_build]
steps:
Expand Down Expand Up @@ -106,6 +106,7 @@ jobs:
with:
name: AppImage
path: Deploy/OUT/*.AppImage

build_MacOS:
runs-on: macos-latest
needs: [test, test_build]
Expand Down Expand Up @@ -141,58 +142,13 @@ jobs:
with:
name: OSX_arm64
path: 'WonderLab.Desktop/bin/Release/${{ env.target-version }}/publish/osx-arm64/*.zip'
build_Linux_Deb:
strategy:
matrix:
arch: ["x64", "arm", "arm64"]
runs-on: ubuntu-latest
needs: [test, test_build]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: "Setup Dotnet"
uses: "actions/setup-dotnet@v3"
with:
dotnet-version: "${{env.dotnet-version}}"
- name: Build
run: dotnet build WonderLab.Desktop/WonderLab.Desktop.csproj -t:CreateDeb --arch ${{ matrix.arch }} --os linux ${{ env.compile-flags }}
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: Linux_Deb
path: WonderLab.Desktop/bin/Release/${{ env.target-version }}/linux-${{ matrix.arch }}/*.deb
build_Linux_Rpm:
strategy:
matrix:
arch: ["x64", "arm", "arm64"]
runs-on: ubuntu-latest
needs: [test, test_build]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: "Setup Dotnet"
uses: "actions/setup-dotnet@v3"
with:
dotnet-version: "${{env.dotnet-version}}"
- name: Build
run: dotnet build WonderLab.Desktop/WonderLab.Desktop.csproj -t:CreateRpm --arch ${{ matrix.arch }} --os linux ${{ env.compile-flags }}
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: Linux_Rpm
path: WonderLab.Desktop/bin/Release/${{ env.target-version }}/linux-${{ matrix.arch }}/*.rpm

Release:
permissions: write-all
runs-on: ubuntu-latest
env:
GITHUB_REF: $ github.ref
needs: [build_Windows, build_MacOS, build_Linux_Deb, build_Linux_Rpm, build_Linux_Appimage]
needs: [build_Windows, build_MacOS, build_Linux_Appimage]
steps:
- uses: nelonoel/branch-name@v1

Expand All @@ -211,16 +167,6 @@ jobs:
with:
name: AppImage

- name: Download Deb Build
uses: actions/download-artifact@v3
with:
name: Linux_Deb

- name: Download Rpm Build
uses: actions/download-artifact@v3
with:
name: Linux_Rpm

- name: Download OSX-x64 Build
uses: actions/download-artifact@v3
with:
Expand All @@ -240,10 +186,7 @@ jobs:
automatic_release_tag: AutoBuild_${{ env.BRANCH_NAME }}
title: "${{ env.BRANCH_NAME }} 分支 - 测试渠道"
files: |
*.exe
*.zip
*.deb
*.rpm
*.AppImage
Delete_Artifacts:
Expand All @@ -261,16 +204,6 @@ jobs:
with:
name: Windows_arm64

- name: Delete Deb Artifact
uses: geekyeggo/delete-artifact@v2
with:
name: Linux_Deb

- name: Delete Rpm Artifact
uses: geekyeggo/delete-artifact@v2
with:
name: Linux_Rpm

- name: Delete OSX-x64 Artifact
uses: geekyeggo/delete-artifact@v2
with:
Expand Down

0 comments on commit 9dd7d4f

Please sign in to comment.