Skip to content

Commit

Permalink
Mac 版ビルドが動作しなくなっていたので動作可能にする (#283)
Browse files Browse the repository at this point in the history
* remove the workaround for license generation

* remove comment out
  • Loading branch information
PickledChair authored Jan 9, 2022
1 parent 73e3287 commit 4463dd4
Showing 1 changed file with 2 additions and 35 deletions.
37 changes: 2 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,39 +56,16 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Prepare Python for building VOICEVOX engine cache
uses: actions/cache@v2
id: venv-build-voicevox-cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-libs-build_voicevox-${{ env.PYTHON_VERSION }}-${{ matrix.python_architecture }}-${{ env.VOICEVOX_CORE_VERSION }}-${{ env.VOICEVOX_CORE_SOURCE_VERSION }}-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txt') }}

- name: Prepare Python venv for licenses.json generation cache
uses: actions/cache@v2
id: venv-generate-licenses-cache
with:
path: generate_licenses
key: ${{ runner.os }}-venv-libs-generate_licenses-${{ env.PYTHON_VERSION }}-${{ matrix.python_architecture }}-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txt') }}

- name: Prepare Python venv for licenses.json generation
shell: bash
run: python -m venv generate_licenses

- name: Install dependencies for licenses.json generation
if: steps.venv-generate-licenses-cache.outputs.cache-hit != 'true'
- name: Install Python dependencies
shell: bash
run: |
source generate_licenses/bin/activate
pip install --upgrade pip setuptools wheel
pip install -r requirements-dev.txt
deactivate
- name: Generate licenses.json
shell: bash
run: |
source generate_licenses/bin/activate
python generate_licenses.py > licenses.json
deactivate
# Download ONNX Runtime
- name: Export ONNX Runtime url to calc hash
Expand Down Expand Up @@ -174,11 +151,6 @@ jobs:
ref: ${{ env.VOICEVOX_CORE_SOURCE_VERSION }}
path: download/voicevox_core_source

- name: Install dependencies for building VOICEVOX Core Python package
shell: bash
run: |
pip install -r download/voicevox_core_source/requirements.txt
- name: Install VOICEVOX Core Python package
shell: bash
run: |
Expand All @@ -201,11 +173,6 @@ jobs:
NUMPY_INCLUDE=`python -c "import numpy; print(numpy.get_include())"`
CPATH="$NUMPY_INCLUDE:${CPATH:-}" pip install .
- name: Install dependencies for building VOICEVOX engine
shell: bash
run: |
pip install -r requirements-dev.txt
- name: Download PyOpenJTalk dictionary
shell: bash
run: |
Expand Down Expand Up @@ -356,7 +323,7 @@ jobs:
set -eux
rm -r speaker_info
cp -r download/resource/character_info speaker_info
# NOTE: `load: true` may silently fail when the GitHub Actions disk (14GB) is full.
# https://docs.github.com/ja/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
- name: Create binary build environment with Docker
Expand Down

0 comments on commit 4463dd4

Please sign in to comment.