From 9b61398a565ab924aca413ee7455ea8fef14f3e8 Mon Sep 17 00:00:00 2001 From: MistEO Date: Mon, 24 Feb 2025 00:52:49 +0800 Subject: [PATCH] ci: perf mirrorchyan uploading --- .github/workflows/mirrorchyan.yml | 82 +++++-------------------------- 1 file changed, 11 insertions(+), 71 deletions(-) diff --git a/.github/workflows/mirrorchyan.yml b/.github/workflows/mirrorchyan.yml index 06f9566969..6647680752 100644 --- a/.github/workflows/mirrorchyan.yml +++ b/.github/workflows/mirrorchyan.yml @@ -4,94 +4,34 @@ on: workflow_dispatch: jobs: - mirrorchyan_win_x64: + mirrorchyan: runs-on: macos-latest - strategy: - fail-fast: false - matrix: - os: [win] - arch: [x64] steps: - - id: uploading - uses: MirrorChyan/uploading-action@v1 + - uses: MirrorChyan/uploading-action@v1 + if: always() with: filetype: latest-release - filename: "*MAA-*-${{ matrix.os }}-${{ matrix.arch }}.zip" + filename: "*MAA-*-win-x64.zip" mirrorchyan_rid: MAA github_token: ${{ secrets.GITHUB_TOKEN }} owner: ${{ github.repository_owner }} repo: ${{ github.event.repository.name }} upload_token: ${{ secrets.MirrorChyanUploadToken }} - os: ${{ matrix.os }} - arch: ${{ matrix.arch }} + os: win + arch: x64 - mirrorchyan_win_arm64: - needs: [mirrorchyan_win_x64] - runs-on: macos-latest - strategy: - fail-fast: false - matrix: - os: [win] - arch: [arm64, x64] - - steps: - - id: uploading - uses: MirrorChyan/uploading-action@v1 + - uses: MirrorChyan/uploading-action@v1 + if: always() with: filetype: latest-release - filename: "*MAA-*-${{ matrix.os }}-${{ matrix.arch }}.zip" + filename: "*MAA-*-win-arm64.zip" mirrorchyan_rid: MAA github_token: ${{ secrets.GITHUB_TOKEN }} owner: ${{ github.repository_owner }} repo: ${{ github.event.repository.name }} upload_token: ${{ secrets.MirrorChyanUploadToken }} - os: ${{ matrix.os }} - arch: ${{ matrix.arch }} - - mirrorchyan_macos: - needs: [mirrorchyan_win_x64] - runs-on: macos-latest - strategy: - fail-fast: false - - steps: - - id: uploading - uses: MirrorChyan/uploading-action@v1 - with: - filetype: latest-release - filename: "*MAA-*-macos-universal.zip" - mirrorchyan_rid: MAA - - github_token: ${{ secrets.GITHUB_TOKEN }} - owner: ${{ github.repository_owner }} - repo: ${{ github.event.repository.name }} - upload_token: ${{ secrets.MirrorChyanUploadToken }} - os: macos - arch: '' # universal - - mirrorchyan_linux: - needs: [mirrorchyan_win_x64, mirrorchyan_win_arm64, mirrorchyan_macos] - runs-on: macos-latest - strategy: - fail-fast: false - matrix: - os: [linux] - arch: [aarch64, x86_64] - - steps: - - id: uploading - uses: MirrorChyan/uploading-action@v1 - with: - filetype: latest-release - filename: "*MAA-*-${{ matrix.os }}-${{ matrix.arch }}.tar.gz" - mirrorchyan_rid: MAA - - github_token: ${{ secrets.GITHUB_TOKEN }} - owner: ${{ github.repository_owner }} - repo: ${{ github.event.repository.name }} - upload_token: ${{ secrets.MirrorChyanUploadToken }} - os: ${{ matrix.os }} - arch: ${{ matrix.arch }} + os: win + arch: arm64