Skip to content

Commit 84c449e

Browse files
committed
add install only option
1 parent 675fbdb commit 84c449e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

action.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ inputs:
88
description: "Platform to build for"
99
required: false
1010
default: "true"
11+
install_only:
12+
description: "Only install wails"
13+
required: false
14+
default: "false"
1115
sign:
1216
description: "Sign the build"
1317
required: false
@@ -136,15 +140,15 @@ runs:
136140
install-only: true
137141
# install wails
138142
- name: Install Wails
139-
if: inputs.build == 'true'
143+
if: inputs.build == 'true' || install_only == 'true'
140144
run: go install github.com/wailsapp/wails/v2/cmd/wails@${{inputs.wails-version}}
141145
shell: bash
142146
- name: Install Linux Wails deps
143-
if: inputs.build == 'true' && runner.os == 'Linux'
147+
if: inputs.build == 'true' && runner.os == 'Linux' || install_only == 'true' && runner.os == 'Linux'
144148
run: sudo apt-get update && sudo apt-get install libgtk-3-0 libwebkit2gtk-4.0-dev gcc-aarch64-linux-gnu
145149
shell: bash
146150
- name: Install macOS Wails deps
147-
if: runner.os == 'macOS'
151+
if: runner.os == 'macOS' || install_only == 'true' && runner.os == 'macOS'
148152
run: brew install mitchellh/gon/gon
149153
shell: bash
150154
# Building step

0 commit comments

Comments
 (0)