Skip to content

Commit dc22c79

Browse files
committed
CI: Cut Ubuntu CI for now
1 parent 07fa4a0 commit dc22c79

File tree

1 file changed

+0
-82
lines changed

1 file changed

+0
-82
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -199,88 +199,6 @@ jobs:
199199
name: 'obs-studio-macos-${{ matrix.arch }}-${{ steps.setup.outputs.commitHash }}'
200200
path: '${{ github.workspace }}/obs-studio/build/${{ env.FILE_NAME }}'
201201

202-
linux_build:
203-
name: '02 - Linux'
204-
runs-on: ${{ matrix.ubuntu }}
205-
strategy:
206-
matrix:
207-
ubuntu: ['ubuntu-20.04', 'ubuntu-22.04']
208-
if: always()
209-
needs: [clang_check]
210-
defaults:
211-
run:
212-
shell: bash
213-
working-directory: 'obs-studio'
214-
env:
215-
BUILD_FOR_DISTRIBUTION: ${{ startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request' }}
216-
steps:
217-
- name: 'Checkout'
218-
uses: actions/checkout@v3
219-
with:
220-
submodules: 'recursive'
221-
path: 'obs-studio'
222-
fetch-depth: 0
223-
224-
- name: 'Check for Github Labels'
225-
if: github.event_name == 'pull_request'
226-
run: |
227-
if test -n "$(curl -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -s "${{ github.event.pull_request.url }}" | jq -e '.labels[] | select(.name == "Seeking Testers")')"; then
228-
echo "SEEKING_TESTERS=1" >> $GITHUB_ENV
229-
else
230-
echo "SEEKING_TESTERS=0" >> $GITHUB_ENV
231-
fi
232-
233-
echo "CACHE_DATE=$(date +"%Y-%m-%d")" >> $GITHUB_ENV
234-
235-
- name: 'Restore ccache from cache'
236-
id: ccache-cache
237-
uses: actions/cache@v3
238-
env:
239-
CACHE_NAME: 'ccache-cache'
240-
with:
241-
path: ${{ github.workspace }}/.ccache
242-
key: ${{ runner.os }}-pr-${{ env.CACHE_NAME }}-${{ matrix.ubuntu }}-${{ env.CACHE_DATE }}
243-
244-
- name: 'Restore Chromium Embedded Framework from cache'
245-
id: cef-cache
246-
uses: actions/cache@v3
247-
env:
248-
CACHE_NAME: 'cef-cache'
249-
with:
250-
path: ${{ github.workspace }}/obs-build-dependencies/cef_binary_${{ env.CEF_BUILD_VERSION_LINUX }}_linux64
251-
key: ${{ runner.os }}-pr-${{ env.CACHE_NAME }}-${{ env.CEF_BUILD_VERSION_LINUX }}-${{ env.CACHE_REVISION }}
252-
253-
- name: 'Setup build environment'
254-
id: setup
255-
run: |
256-
echo "::set-output name=commitHash::$(git rev-parse --short=9 HEAD)"
257-
258-
- name: 'Install dependencies'
259-
env:
260-
RESTORED_CEF: ${{ steps.cef-cache.outputs.cache-hit }}
261-
run: CI/linux/01_install_dependencies.sh --disable-pipewire
262-
263-
- name: 'Build OBS'
264-
run: CI/linux/02_build_obs.sh --disable-pipewire
265-
266-
- name: 'Run tests'
267-
if: success()
268-
run: cmake --build build -t test
269-
270-
- name: 'Create build artifact'
271-
if: ${{ success() && (github.event_name != 'pull_request' || env.SEEKING_TESTERS == '1') }}
272-
run: |
273-
CI/linux/03_package_obs.sh
274-
ARTIFACT_NAME=$(basename $(/usr/bin/find build -maxdepth 1 -type f -name "obs-studio-*.deb" | sort -rn | head -1))
275-
echo "FILE_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV
276-
277-
- name: 'Upload build Artifact'
278-
if: ${{ success() && (github.event_name != 'pull_request' || env.SEEKING_TESTERS == '1') }}
279-
uses: actions/upload-artifact@v3
280-
with:
281-
name: 'obs-studio-${{ matrix.ubuntu }}-${{ steps.setup.outputs.commitHash }}'
282-
path: '${{ github.workspace }}/obs-studio/build/${{ env.FILE_NAME }}'
283-
284202
windows_build:
285203
name: '02 - Windows'
286204
runs-on: [windows-2022]

0 commit comments

Comments
 (0)