-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
44 lines (36 loc) · 1.25 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: 'GTK for Windows'
author: 'Yash Jain'
description: 'This will add GTK+ in Windows Runtime Environment'
branding:
icon: 'award'
color: 'green'
inputs:
release:
description: 'The release tag to use. Default is 2022-01-04.'
required: true
default: '2022-01-04'
runs:
using: "composite"
steps:
- name: 'Message for Non-Windows Users'
if: runner.os != 'Windows'
shell: bash
env:
THIS_OS: ${{ runner.os }}
run: echo "::warning title=GTK for Windows::GTK for Windows is not supported on any operating systems other than Windows. You are attempting to use it on $THIS_OS."
- name: 'Import GTK-for-Windows-Runtime-Environment-Installer'
uses: actions/checkout@v4
if: runner.os == 'Windows'
with:
repository: tschoonj/GTK-for-Windows-Runtime-Environment-Installer
ref: ${{ inputs.release }}
path: _tempGTK
sparse-checkout: gtk-nsis-pack
sparse-checkout-cone-mode: false
clean: false
- name: 'Add GTK to ENV'
if: runner.os == 'Windows'
shell: powershell
run: |
$Env:PATH += "$PWD\_tempGTK\gtk-nsis-pack\bin"
echo "$PWD\_tempGTK\gtk-nsis-pack\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append