Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmozhijin committed Sep 22, 2024
1 parent eb905cf commit 1a5713f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/action/prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ runs:
- name: Install Dependencies
run: |
python -m pip install -U pip
python -m pip install -r $GITHUB_WORKSPACE/build_helper/requirements.txt
python -m pip install -r /opt/OpenWrt-K/build_helper/requirements.txt
shell: bash
20 changes: 10 additions & 10 deletions .github/workflows/build-openwrt-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

- name: 准备
id: run
run: python3 -m /opt/OpenWrt-K/build_helper --task prepare
run: PYTHONPATH=/opt/OpenWrt-K python3 -m build_helper --task prepare

- name: 上传
uses: ./../../../../../opt/OpenWrt-K/.github/action/upload
Expand All @@ -61,7 +61,7 @@ jobs:

- name: 准备编译
id: prepare
run: python3 -m /opt/OpenWrt-K/build_helper --task build-prepare --config ${{ matrix.config }}
run: PYTHONPATH=/opt/OpenWrt-K python3 -m build_helper --task build-prepare --config ${{ matrix.config }}

- name: 缓存toolchain
uses: actions/cache@v4
Expand All @@ -84,7 +84,7 @@ jobs:
- name: 编译
id: build
run: python3 -m /opt/OpenWrt-K/build_helper --task base-builds --config ${{ matrix.config }}
run: PYTHONPATH=/opt/OpenWrt-K python3 -m build_helper --task base-builds --config ${{ matrix.config }}
env:
CACHE_HIT: ${{ steps.cache-toolchain.outputs.cache-hit }}

Expand All @@ -107,7 +107,7 @@ jobs:

- name: 准备编译
id: prepare
run: python3 -m /opt/OpenWrt-K/build_helper --task build-prepare --config ${{ matrix.config }}
run: PYTHONPATH=/opt/OpenWrt-K python3 -m build_helper --task build-prepare --config ${{ matrix.config }}

- name: 缓存ccache
uses: actions/cache@v4
Expand All @@ -120,7 +120,7 @@ jobs:
- name: 编译
id: build
run: python3 -m /opt/OpenWrt-K/build_helper --task build_packages --config ${{ matrix.config }}
run: PYTHONPATH=/opt/OpenWrt-K python3 -m build_helper --task build_packages --config ${{ matrix.config }}

- name: 上传
if: success() || failure()
Expand All @@ -141,7 +141,7 @@ jobs:

- name: 准备编译
id: prepare
run: python3 -m /opt/OpenWrt-K/build_helper --task build-prepare --config ${{ matrix.config }}
run: PYTHONPATH=/opt/OpenWrt-K python3 -m build_helper --task build-prepare --config ${{ matrix.config }}

- name: 缓存ccache
uses: actions/cache@v4
Expand All @@ -154,7 +154,7 @@ jobs:
- name: 编译
id: build
run: python3 -m /opt/OpenWrt-K/build_helper --task build_image_builder --config ${{ matrix.config }}
run: PYTHONPATH=/opt/OpenWrt-K python3 -m build_helper --task build_image_builder --config ${{ matrix.config }}

- name: 上传
if: success() || failure()
Expand All @@ -175,11 +175,11 @@ jobs:

- name: 准备构建
id: prepare
run: python3 -m /opt/OpenWrt-K/build_helper --task build-prepare --config ${{ matrix.config }}
run: PYTHONPATH=/opt/OpenWrt-K python3 -m build_helper --task build-prepare --config ${{ matrix.config }}

- name: 构建
id: build
run: python3 -m /opt/OpenWrt-K/build_helper --task build_images --config ${{ matrix.config }}
run: PYTHONPATH=/opt/OpenWrt-K python3 -m build_helper --task build_images --config ${{ matrix.config }}

- name: 上传
if: success() || failure()
Expand All @@ -198,4 +198,4 @@ jobs:
uses: ./../../../../../opt/OpenWrt-K/.github/action/prepare

- name: 发布
run: python3 -m /opt/OpenWrt-K/build_helper --task releases --config ${{ matrix.config }}
run: PYTHONPATH=/opt/OpenWrt-K python3 -m build_helper --task releases --config ${{ matrix.config }}

0 comments on commit 1a5713f

Please sign in to comment.