-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (88 loc) · 2.89 KB
/
installer-smoke.yml
File metadata and controls
102 lines (88 loc) · 2.89 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Installer Smoke
on:
push:
branches: [main]
paths:
- "install-macos.sh"
- "install-windows.ps1"
- "pyproject.toml"
- "setup.py"
- "README.md"
- "src/**"
- ".github/workflows/installer-smoke.yml"
pull_request:
paths:
- "install-macos.sh"
- "install-windows.ps1"
- "pyproject.toml"
- "setup.py"
- "README.md"
- "src/**"
- ".github/workflows/installer-smoke.yml"
workflow_dispatch:
permissions:
contents: read
jobs:
macos-installer:
name: macOS installer
runs-on: macos-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Run installer
env:
SLICER_URI_BRIDGE_PROJECT_SPEC: ${{ github.workspace }}
HOME: ${{ runner.temp }}/home
XDG_CONFIG_HOME: ${{ runner.temp }}/xdg-config
URI_BRIDGE_MACOS_APP_DIR: ${{ runner.temp }}/Applications
run: |
mkdir -p "$HOME" "$XDG_CONFIG_HOME" "$URI_BRIDGE_MACOS_APP_DIR"
bash install-macos.sh
- name: Verify installation
env:
HOME: ${{ runner.temp }}/home
XDG_CONFIG_HOME: ${{ runner.temp }}/xdg-config
URI_BRIDGE_MACOS_APP_DIR: ${{ runner.temp }}/Applications
run: |
export PATH="$HOME/.local/bin:$PATH"
command -v slicer-uri-bridge
slicer-uri-bridge --version
slicer-uri-bridge status
test -f "$URI_BRIDGE_MACOS_APP_DIR/SlicerURIBridge.app/Contents/Info.plist"
windows-installer:
name: Windows installer
runs-on: windows-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Run installer
shell: powershell
env:
SLICER_URI_BRIDGE_PROJECT_SPEC: ${{ github.workspace }}
LOCALAPPDATA: ${{ runner.temp }}\LocalAppData
APPDATA: ${{ runner.temp }}\AppData
run: .\install-windows.ps1
- name: Verify installation
shell: powershell
env:
LOCALAPPDATA: ${{ runner.temp }}\LocalAppData
APPDATA: ${{ runner.temp }}\AppData
run: |
$bridge = Join-Path $env:LOCALAPPDATA 'slicer-uri-bridge\venv\Scripts\slicer-uri-bridge.exe'
if (-not (Test-Path -LiteralPath $bridge)) {
throw "Bridge command was not installed: $bridge"
}
& $bridge --version
& $bridge status
$command = (Get-Item -LiteralPath 'HKCU:\Software\Classes\bambustudioopen\shell\open\command').GetValue('')
if ($command -notmatch 'slicer_uri_bridge\.handler') {
throw "Unexpected bambustudioopen handler command: $command"
}