-
Notifications
You must be signed in to change notification settings - Fork 5
72 lines (69 loc) · 2.56 KB
/
Copy pathwin-install.yml
File metadata and controls
72 lines (69 loc) · 2.56 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
name: ⚙️ Windows Install
on:
pull_request:
paths:
- "public/sh/**"
- "public/zsh/**"
- "tests/**"
- ".github/workflows/win-install.yml"
push:
paths:
- "public/sh/**"
- "public/zsh/**"
- "tests/**"
- ".github/workflows/win-install.yml"
workflow_dispatch: {}
permissions:
contents: read
jobs:
shellcheck:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: ☑️ ShellCheck
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # 2.0.0
with:
scandir: "./public/sh"
run-install:
runs-on: windows-latest
timeout-minutes: 30
needs: [shellcheck]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
steps:
- name: 🪟 Set CRLF (Windows)
run: |
git config --global core.autocrlf input
git config --global --add safe.directory /cygdrive/d/a/src/src
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: 🪟 Dependencies (Windows)
uses: egor-tensin/setup-cygwin@d2c752bab416d4b0662591bd366fc2686297c82d # v4.0.1
with:
platform: x64
packages: curl git zsh
- name: 🪟 Run Install
run: |
sh ./tests/installers.sh
sh -x ./public/sh/install.sh -- -i skip
command rm -rf "${XDG_DATA_HOME:-$HOME/.local/share}/zi" /home/runneradmin/.zi
sh -x ./public/sh/install.sh -- -a annex
command rm -rf "${XDG_DATA_HOME:-$HOME/.local/share}/zi" /home/runneradmin/.zi
sh -x ./public/sh/install.sh -- -a loader
command rm -rf "${XDG_DATA_HOME:-$HOME/.local/share}/zi" /home/runneradmin/.zi
sh -x ./public/sh/install.sh -- -a zunit
command rm -rf "${XDG_DATA_HOME:-$HOME/.local/share}/zi" /home/runneradmin/.zi
sh -x ./public/sh/install.sh -- -a zpmod
shell: C:\tools\cygwin\bin\bash.exe --login -o igncr '{0}'
- name: 🪟 Smoke-test — verify zi.zsh present
run: |
ZI_BIN="${XDG_DATA_HOME:-${HOME}/.local/share}/zi/bin"
if [ ! -f "${ZI_BIN}/zi.zsh" ]; then
printf '%s\n' "FAIL: zi.zsh not found at ${ZI_BIN}/zi.zsh"
exit 1
fi
printf '%s\n' "OK: zi.zsh found at ${ZI_BIN}/zi.zsh"
command rm -rf "${XDG_DATA_HOME:-${HOME}/.local/share}/zi" /home/runneradmin/.zi
shell: C:\tools\cygwin\bin\bash.exe --login -o igncr '{0}'