Skip to content

Commit

Permalink
精简下载非商店插件工作流 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
wmhn1872265132 authored Mar 29, 2024
1 parent 9ffe340 commit 016456c
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,44 +90,39 @@ jobs:
strategy:
matrix:
addon:
- addonId: AiSound5
- Name: AiSound5-23.04
URL: https://dl.nvdacn.com/NVDA-Addons/New/AISound5.nvda-addon
sha256: B67640578F524471B38098B45E8F7BA1C9E80EA407D5D6147E3B511AD9614AFA
addonVersionName: '23.04'
- addonId: DragAndDrop
- Name: DragAndDrop-2.2dev
URL: https://github.com/javidominguez/DragAndDrop/releases/download/2.2dev/DragAndDrop-2.2dev.nvda-addon
sha256: F7056F62968C1F432D99641E030AD58A8BF49EDF3A7975205F65015D5A334679
addonVersionName: 2.2dev
- addonId: IBMTTS
- Name: IBMTTS-23.12.1
URL: https://dl.nvdacn.com/NVDA-Addons/New/IBMTTS-23.12.1.nvda-addon
sha256: F96353B0329FB66319FC98B5748AB9D03C2A236762CF29F3B99EBACD04635451
addonVersionName: 23.12.1
- addonId: numberProcessing
- Name: numberProcessing-20230310-dev
URL: https://github.com/ABuffEr/numberProcessing/releases/download/20230310-dev/numberProcessing-20230310-dev.nvda-addon
sha256: E57468DD9A995E087EB1F9A7A140C6303EC518292DE9D2185316FDC3CAD6FA8B
addonVersionName: 20230310-dev
- addonId: WorldVoice
- Name: WorldVoice-3.7
URL: https://github.com/tsengwoody/WorldVoice/releases/download/v3.7/WorldVoice-3.7.nvda-addon
sha256: 8E25B0741769E6C84B2964D9701E0BE174605C795C3515524A6036C570AE35A9
addonVersionName: 3.7
steps:
- name: Cache ${{ matrix.addon.addonId }}-${{ matrix.addon.addonVersionName }} Addon
- name: Cache ${{ matrix.addon.Name }} Addon
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/*.nvda-addon
key: ${{ matrix.addon.addonId }}-${{ matrix.addon.addonVersionName }}-${{ matrix.addon.sha256 }}
key: ${{ matrix.addon.Name }}-${{ matrix.addon.sha256 }}
restore-keys: |
${{ matrix.addon.addonId }}-${{ matrix.addon.addonVersionName }}.nvda-addon
${{ matrix.addon.Name }}.nvda-addon
enableCrossOsArchive: true
- name: Download ${{ matrix.addon.addonId }}-${{ matrix.addon.addonVersionName }} Addon
- name: Download ${{ matrix.addon.Name }} Addon
id: download-addon
uses: carlosperate/download-file-action@v2
with:
file-url: ${{ matrix.addon.URL }}
sha256: ${{ matrix.addon.sha256 }}
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.addon.addonId }}-${{ matrix.addon.addonVersionName }}.nvda-addon
name: ${{ matrix.addon.Name }}.nvda-addon
path: ${{ steps.download-addon.outputs.file-path }}
if-no-files-found: error

Expand Down

0 comments on commit 016456c

Please sign in to comment.