Skip to content

Commit

Permalink
Fix: [GitHub][workflows] インストーラーのビルドに失敗する問題を修正
Browse files Browse the repository at this point in the history
卵が先か鶏が先か問題が発生してた
  • Loading branch information
tsukumijima committed Sep 21, 2023
1 parent 288aa11 commit f228adf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build_installer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,19 @@ jobs:
uses: actions/checkout@v3

# Python 3.11 環境をセットアップ
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Setup Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'poetry'
cache-dependency-path: '${{ github.workspace }}/installer/poetry.lock'

# インストーラーの依存関係をインストール
- name: Install Dependencies
working-directory: installer/
run: |
pip install poetry
poetry install
# ウイルス検知対策で Windows のみ自前ビルドの PyInstaller に差し替える
poetry run pip install https://github.com/tsukumijima/Pyinstaller-Builds/raw/gh-pages/x86_64/pyinstaller-5.13.0-py3-none-any.whl
Expand All @@ -63,17 +65,19 @@ jobs:
uses: actions/checkout@v3

# Python 3.11 環境をセットアップ
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Setup Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'poetry'
cache-dependency-path: '${{ github.workspace }}/installer/poetry.lock'

# インストーラーの依存関係をインストール
- name: Install Dependencies
working-directory: installer/
run: |
pip install poetry
poetry install
# インストーラーを PyInstaller でビルド
Expand Down
2 changes: 1 addition & 1 deletion installer/poetry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
in-project = true

[virtualenvs.options]
always-copy = true
always-copy = false

0 comments on commit f228adf

Please sign in to comment.