Skip to content

Commit 0a34dd5

Browse files
committed
fox
1 parent c44bc47 commit 0a34dd5

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/common_tag_workflow.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010
bin_name:
1111
required: true
1212
type: string
13-
need_ffi:
14-
type: boolean
13+
has_ffi:
14+
type: string
1515

1616
jobs:
1717

@@ -75,6 +75,8 @@ jobs:
7575
7676
- name: show environment
7777
run: |
78+
echo bin_name = ${{inputs.bin_name}}
79+
echo has_ffi = ${{inputs.has_ffi}}
7880
echo event = ${{github.event_name}}
7981
echo github_repository: $GITHUB_REPOSITORY
8082
echo vars.commit = ${{steps.vars.outputs.commit}}
@@ -101,21 +103,21 @@ jobs:
101103
go-version: 1.17
102104

103105
- name: install deps
104-
if ${{ inputs.need_ffi != true }}
106+
if ${{ inputs.has_ffi != '1' }}
105107
run: |
106108
sudo apt-get update
107109
sudo apt-get install ncftp
108110
109111
- name: install more deps
110-
if ${{ inputs.need_ffi == true }}
112+
if ${{ inputs.has_ffi == '1' }}
111113
run: |
112114
sudo apt-get update
113115
sudo apt-get -o Acquire::Retries=3 install make ncftp mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang build-essential hwloc libhwloc-dev wget -y && sudo apt upgrade -y
114116
115117
- name: Build
116118
run: |
117119
go clean --modcache && make
118-
mkdir ./release && mv ./${{bin_name}} ./release
120+
mkdir ./release && mv ./${{inputs.bin_name}} ./release
119121
120122
- name: Zip Release
121123
uses: TheDoctor0/[email protected]

.github/workflows/tag_workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ jobs:
88
uses: ./.github/workflows/common_tag_workflow.yml
99
with:
1010
repo_name: ${GITHUB_REPOSITORY##*/}
11-
bin_name: "venus"
12-
need_ffi: true
11+
bin_name: 'venus'
12+
need_ffi: '1'

0 commit comments

Comments
 (0)