@@ -48,12 +48,19 @@ jobs:
48
48
wheel :
49
49
name : Build wheel
50
50
needs : ["launchers"]
51
- runs-on : " windows-latest"
51
+
52
+ runs-on : ${{ matrix.os }}
53
+
54
+ strategy :
55
+ fail-fast : false
56
+ matrix :
57
+ os : [ubuntu-latest, windows-latest]
52
58
53
59
steps :
54
60
- uses : actions/checkout@v4
55
61
56
62
- uses : actions/download-artifact@v3
63
+ if : ${{ matrix.os == 'windows-latest' }}
57
64
with :
58
65
name : launchers
59
66
path : launcher
@@ -67,24 +74,61 @@ jobs:
67
74
run : |
68
75
set -ex
69
76
python -m pip install build
70
- python -m build -w .
77
+ python -m build -w . --outdir ./dist
78
+
79
+ - uses : actions/upload-artifact@v3
80
+ with :
81
+ path : dist
82
+ name : wheels
83
+
84
+ test :
85
+ name : Test wheels
86
+ needs : ["wheel"]
87
+
88
+ runs-on : ${{ matrix.os }}
89
+
90
+ strategy :
91
+ fail-fast : false
92
+ matrix :
93
+ os : [macos-latest, ubuntu-latest, windows-latest]
94
+
95
+ env :
96
+ CURRENT_PLATFORM : ${{ matrix.os }}
97
+
98
+ steps :
99
+ - uses : actions/setup-python@v4
100
+ with :
101
+ python-version : 3.11
102
+
103
+ - uses : actions/download-artifact@v3
104
+ with :
105
+ name : wheels
106
+ path : wheels
71
107
72
108
- name : Install wheel
73
109
shell : bash
74
110
run : |
75
111
set -ex
76
112
python -m venv .venv
77
- .venv/Scripts/python.exe -m pip install dist/*
78
- ls -la .venv/Scripts/
79
- ls -la .venv/Scripts/rez
113
+ if [[ "${CURRENT_PLATFORM}" == "windows-latest" ]]; then
114
+ .venv/Scripts/python.exe -m pip install rez --find-links ./wheels --no-index
115
+ ls -la .venv/Scripts/
116
+ ls -la .venv/Scripts/rez
117
+ else
118
+ .venv/bin/python -m pip install rez --find-links ./wheels --no-index
119
+ ls -la .venv/bin/
120
+ ls -la .venv/bin/rez
121
+ fi
80
122
81
123
- name : Test commands
82
124
shell : bash
83
125
run : |
84
- export PATH=$(pwd)/.venv/Scripts/rez:$PATH
85
126
set -ex
86
- cat .venv/Scripts/rez/rez-script.py
87
- cat .venv/Scripts/rez/jctest-script.py
127
+ if [[ "${CURRENT_PLATFORM}" == "windows-latest" ]]; then
128
+ export PATH=$(pwd)/.venv/Scripts/rez:$PATH
129
+ else
130
+ export PATH=$(pwd)/.venv/bin/rez:$PATH
131
+ fi
88
132
89
133
echo 'Running jctest with REZ_LAUNCHER_DEBUG=1'
90
134
export REZ_LAUNCHER_DEBUG=1
0 commit comments