Skip to content

Commit

Permalink
use env directly (env cannot be used in matrix)
Browse files Browse the repository at this point in the history
  • Loading branch information
aoirint committed Sep 26, 2021
1 parent cec9dd9 commit 557036c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ jobs:
strategy:
fail-fast: false
matrix:
voicevox_engine_repo_url:
- ${{ env.VOICEVOX_ENGINE_REPO_URL }}
voicevox_engine_version:
- ${{ env.VOICEVOX_ENGINE_VERSION }}
# FIXME: env cannot be referenced in matrix
# voicevox_engine_repo_url:
# - ${{ env.VOICEVOX_ENGINE_REPO_URL }}
# voicevox_engine_version:
# - ${{ env.VOICEVOX_ENGINE_VERSION }}
artifact_name:
- windows-cpu-prepackage
- windows-nvidia-prepackage
Expand Down Expand Up @@ -125,19 +126,19 @@ jobs:
# - name: Dump VOICEVOX ENGINE repo URL to calc hash
# shell: bash
# run: |
# echo "${{ matrix.voicevox_engine_repo_url }}" > voicevox_engine/repo_url.txt
# echo "${{ env.VOICEVOX_ENGINE_REPO_URL }}" > voicevox_engine/repo_url.txt
# - name: Cache VOICEVOX ENGINE
# uses: actions/cache@master
# id: voicevox-engine-cache
# with:
# path: voicevox_engine/download
# key: ${{ env.cache-version }}-voicevox-engine-${{ hashFiles('voicevox_engine/repo_url.txt') }}-${{ matrix.voicevox_engine_version }}
# key: ${{ env.cache-version }}-voicevox-engine-${{ hashFiles('voicevox_engine/repo_url.txt') }}-${{ env.VOICEVOX_ENGINE_VERSION }}

- name: Download VOICEVOX ENGINE
# if: steps.voicevox-engine-cache.outputs.cache-hit != 'true'
shell: bash
env:
VOICEVOX_ENGINE_RELEASE_URL: ${{ matrix.voicevox_engine_repo_url }}/releases/download/${{ matrix.voicevox_engine_version }}
VOICEVOX_ENGINE_RELEASE_URL: ${{ env.VOICEVOX_ENGINE_REPO_URL }}/releases/download/${{ env.VOICEVOX_ENGINE_VERSION }}
run: |
curl -L -o "voicevox_engine/download/list.txt" "${{ env.VOICEVOX_ENGINE_RELEASE_URL }}/${{ matrix.voicevox_engine_asset_name }}.7z.txt"
cat "voicevox_engine/download/list.txt" | xargs -I '%' curl -L -o "voicevox_engine/download/%" "${{ env.VOICEVOX_ENGINE_RELEASE_URL }}/%"
Expand Down

0 comments on commit 557036c

Please sign in to comment.