Skip to content

Commit

Permalink
修改自动编译命令
Browse files Browse the repository at this point in the history
  • Loading branch information
codercaizh committed Oct 8, 2023
1 parent 7e9b8b5 commit 7a01c90
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ on:
SMALL_PACKAGE_COMMIT_ID:
description: "使用的SMALL插件库源码提交点"
value: ${{ jobs.build.outputs.SMALL_PACKAGE_COMMIT_ID }}
SMALL_COMMIT_ID:
description: "使用的SMALL库源码提交点"
value: ${{ jobs.build.outputs.SMALL_COMMIT_ID }}
jobs:
build:
name: ${{ inputs.target }}_${{ inputs.config }}
Expand All @@ -112,6 +115,7 @@ jobs:
OPENWRT_PACKAGES_COMMIT_ID: ${{ steps.version.outputs.OPENWRT_PACKAGES_COMMIT_ID }}
PASSWALL_PACKAGE_COMMIT_ID: ${{ steps.version.outputs.PASSWALL_PACKAGE_COMMIT_ID }}
SMALL_PACKAGE_COMMIT_ID: ${{ steps.version.outputs.SMALL_PACKAGE_COMMIT_ID }}
SMALL_COMMIT_ID: ${{ steps.version.outputs.SMALL_COMMIT_ID }}
env:
package_build_tool_path: 'source' # 存放本项目工具的目录名称
compile_path: 'compile_dir' # 存放编译过程产物及产出物的目录名称
Expand Down Expand Up @@ -209,6 +213,10 @@ jobs:
cd ../small-package
git config --global --add safe.directory $PWD
echo "SMALL_PACKAGE_COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
cd ../small
git config --global --add safe.directory $PWD
echo "SMALL_COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
working-directory: ${{ env.compile_path }}

- name: Remove container
Expand Down

0 comments on commit 7a01c90

Please sign in to comment.