@@ -134,22 +134,36 @@ jobs:
134
134
python3 -m pip install -r requirements.txt
135
135
python3 -m pip install -r optional_requirements.txt
136
136
137
- - name : Download binaries
137
+ - name : Download and install binaries
138
138
run : |
139
139
# Fetch binaries locally instead of installing the release version of
140
140
# the binary package. This lets us test changes to the binary package
141
141
# before it is released.
142
142
# In case of network flake, try it three times. This is arbitrary.
143
143
python3 binaries/build_wheels.py || python3 binaries/build_wheels.py || python3 binaries/build_wheels.py
144
+
145
+ # Make sure the locally-created binary package for each platform can
146
+ # be locally installed, so we know they are correctly formatted/named.
147
+ # This also makes these binaries available for the test run.
144
148
if [[ '${{ runner.os }}' == 'Windows' ]]; then
145
- echo "PYTHONPATH=$GITHUB_WORKSPACE\\binaries;$PYTHONPATH" >> $GITHUB_ENV
146
- else
147
- echo "PYTHONPATH=$GITHUB_WORKSPACE/binaries:$PYTHONPATH" >> $GITHUB_ENV
149
+ python3 -m pip install binaries/dist/shaka_streamer_binaries*win*amd64.whl
150
+ elif [[ '${{ runner.os }}' == 'Linux' ]]; then
151
+ if [[ '${{ matrix.target_arch }}' == 'x64' ]]; then
152
+ python3 -m pip install binaries/dist/shaka_streamer_binaries*linux*x86_64.whl
153
+ elif [[ '${{ matrix.target_arch }}' == 'arm64' ]]; then
154
+ python3 -m pip install binaries/dist/shaka_streamer_binaries*linux*aarch64.whl
155
+ fi
156
+ elif [[ '${{ runner.os }}' == 'macOS' ]]; then
157
+ if [[ '${{ matrix.target_arch }}' == 'x64' ]]; then
158
+ python3 -m pip install binaries/dist/shaka_streamer_binaries*mac*x86_64.whl
159
+ elif [[ '${{ matrix.target_arch }}' == 'arm64' ]]; then
160
+ python3 -m pip install binaries/dist/shaka_streamer_binaries*mac*arm64.whl
161
+ fi
148
162
fi
149
163
150
164
- name : Build docs (Linux only)
151
- run : bash docs/build.sh
152
165
if : runner.os == 'Linux'
166
+ run : bash docs/build.sh
153
167
154
168
- name : Run tests
155
169
run : |
0 commit comments