1616 - windows_x86_64
1717 # - windows_arm64
1818 # - windows_x86
19- runs-on : windows-latest
19+ runs-on : windows-2022
2020 outputs :
2121 output-artifact-id : ${{ steps.artifact-upload-step.outputs.artifact-id }}
2222 steps :
4949 uses : actions/upload-artifact@v4
5050 id : artifact-upload-step
5151 with :
52- name : webrtc.${{ matrix.name }}.tar.bz2
52+ name : webrtc.${{ matrix.name }}
5353 path : build\_package\${{ matrix.name }}\webrtc.tar.bz2
5454 build-macos :
5555 defaults :
5959 fail-fast : false
6060 matrix :
6161 name :
62- # - macos_arm64
62+ - macos_arm64
6363 - macos_x86_64
6464 # - ios
6565 runs-on : macos-15
@@ -70,19 +70,23 @@ jobs:
7070 - name : Select Xcode 16.1
7171 run : sudo xcode-select --switch /Applications/Xcode_16.1.app/Contents/Developer
7272 - run : brew install ninja
73+ - uses : actions/setup-python@v5
74+ with :
75+ python-version : ' 3.12'
76+ - run : pip install setuptools
7377 - name : Determine Release Tag
7478 env :
7579 RELEASE : ${{ github.ref_name }}
7680 id : release_tag
7781 run : |
7882 echo "tag=${RELEASE%%.*}" >> "$GITHUB_OUTPUT"
7983 echo "3P_WEBRTC_BUILD_RELEASE_VERSION=${RELEASE}" >> "VERSION"
80- - run : ./build.${{ matrix.name }}.sh "${{ steps.release_tag.outputs.tag }}_release"
84+ - run : ./build.${{ matrix.name }}.sh "${{ steps.release_tag.outputs.tag }}_release"
8185 - name : Upload Artifact
8286 uses : actions/upload-artifact@v4
8387 id : artifact-upload-step
8488 with :
85- name : webrtc.${{ matrix.name }}.tar.bz2
89+ name : webrtc.${{ matrix.name }}
8690 path : build/_package/${{ matrix.name }}/webrtc.tar.bz2
8791 build-linux :
8892 defaults :
@@ -128,33 +132,78 @@ jobs:
128132 uses : actions/upload-artifact@v4
129133 id : artifact-upload-step
130134 with :
131- name : webrtc.${{ matrix.name }}.tar.bz2
135+ name : webrtc.${{ matrix.name }}
132136 path : build/_package/${{ matrix.name }}/webrtc.tar.bz2
133137 package-macos :
134138 needs :
135139 - build-macos
136140 runs-on : macos-15
137141 steps :
138- - uses : secondlife/action-autobuild@v3
142+ # Checkout first to avoid damaging artifact download below
143+ - name : Checkout
144+ uses : actions/checkout@v4
145+ with :
146+ # Work around the fact that in the context of a pull request github.sha
147+ # references a dynamic merge commit rather than the branch head
148+ # https://frontside.com/blog/2020-05-26-github-actions-pull_request/#how-does-pull_request-affect-actionscheckout
149+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
150+ fetch-depth : 0
151+ submodules : recursive
152+ - name : Download webrtc artifacts
153+ uses : actions/download-artifact@v4
139154 with :
155+ path : _packages
156+ - uses : secondlife/action-autobuild@v5
157+ with :
158+ checkout : false
140159 token : ${{ github.token }}
141160 build-args : ../build-cmd.sh ${{ needs.build-macos.outputs.output-artifact-id }}
142161 package-windows :
143162 needs :
144- - build-windows
145- runs-on : windows-latest
163+ - build-windows
164+ runs-on : windows-2022
146165 steps :
147- - uses : secondlife/action-autobuild@v3
166+ # Checkout first to avoid damaging artifact download below
167+ - name : Checkout
168+ uses : actions/checkout@v4
169+ with :
170+ # Work around the fact that in the context of a pull request github.sha
171+ # references a dynamic merge commit rather than the branch head
172+ # https://frontside.com/blog/2020-05-26-github-actions-pull_request/#how-does-pull_request-affect-actionscheckout
173+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
174+ fetch-depth : 0
175+ submodules : recursive
176+ - name : Download webrtc artifacts
177+ uses : actions/download-artifact@v4
148178 with :
179+ path : _packages
180+ - uses : secondlife/action-autobuild@v5
181+ with :
182+ checkout : false
149183 token : ${{ github.token }}
150184 build-args : ../build-cmd.sh ${{ needs.build-windows.outputs.output-artifact-id }}
151185 package-linux :
152186 needs :
153187 - build-linux
154- runs-on : ubuntu-latest
188+ runs-on : ubuntu-latest
155189 steps :
156- - uses : secondlife/action-autobuild@v3
190+ # Checkout first to avoid damaging artifact download below
191+ - name : Checkout
192+ uses : actions/checkout@v4
193+ with :
194+ # Work around the fact that in the context of a pull request github.sha
195+ # references a dynamic merge commit rather than the branch head
196+ # https://frontside.com/blog/2020-05-26-github-actions-pull_request/#how-does-pull_request-affect-actionscheckout
197+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
198+ fetch-depth : 0
199+ submodules : recursive
200+ - name : Download webrtc artifacts
201+ uses : actions/download-artifact@v4
202+ with :
203+ path : _packages
204+ - uses : secondlife/action-autobuild@v5
157205 with :
206+ checkout : false
158207 token : ${{ github.token }}
159208 build-args : ../build-cmd.sh ${{ needs.build-linux.outputs.output-artifact-id }}
160209 release :
0 commit comments