CI: Update build scripts and Github actions workflow

Also updates main CMakeLists.txt and CMakeLists.txt for unit tests,
also adds additional build directories to .gitignore file
This commit is contained in:
PatTheMav
2022-03-16 23:13:26 +01:00
parent 1f0f2be15e
commit c993b6059a
63 changed files with 3390 additions and 2054 deletions
+9 -3
View File
@@ -1,6 +1,12 @@
name: Clang Format Check
on: [push, pull_request]
on:
push:
paths-ignore: ['**.md']
branches-ignore: [master]
pull_request:
paths-ignore: ['**.md']
branches-ignore: [master]
jobs:
clang-format-check:
@@ -15,7 +21,7 @@ jobs:
run: |
sudo apt-get install -y clang-format-12
- name: Check the Formatting
- name: 'Run clang-format'
run: |
./formatcode.sh
./CI/check-format.sh
./CI/check-changes.sh
-40
View File
@@ -3,12 +3,6 @@
name: Flatpak
on:
push:
paths-ignore: ['**.md']
branches: [master, 'release/**']
pull_request:
paths-ignore: ['**.md']
branches: [master, 'release/**']
release:
types: [published]
branches: [master, 'release/**']
@@ -24,40 +18,6 @@ env:
YOUTUBE_SECRET_HASH: ${{ secrets.YOUTUBE_SECRET_HASH }}
jobs:
generate_bundle:
name: Generate Flatpak Bundle
runs-on: [ubuntu-latest]
if: github.event_name != 'release'
container:
image: bilelmoussaoui/flatpak-github-actions:kde-5.15-21.08
options: --privileged
steps:
- name: 'Check for Github Labels'
if: github.event_name == 'pull_request'
shell: bash
run: |
LABELS_URL="$(echo ${{ github.event.pull_request.url }} | sed s'/pulls/issues/')"
LABEL_FOUND="$(curl -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "${LABELS_URL}/labels" | sed -n 's/.*"name": "\(.*\)",/\1/p' | grep 'Seeking Testers' || true)"
if [ "${LABEL_FOUND}" = "Seeking Testers" ]; then
echo "SEEKING_TESTERS=1" >> $GITHUB_ENV
else
echo "SEEKING_TESTERS=0" >> $GITHUB_ENV
fi
- name: Checkout
uses: actions/checkout@v2.3.3
if: success() && (github.event_name != 'pull_request' || env.SEEKING_TESTERS == '1')
with:
submodules: 'recursive'
- name: Build Flatpak Manifest
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4
if: success() && (github.event_name != 'pull_request' || env.SEEKING_TESTERS == '1')
with:
bundle: obs-studio-${{ github.sha }}.flatpak
manifest-path: CI/flatpak/com.obsproject.Studio.json
cache-key: flatpak-builder-${{ github.sha }}
publish:
name: Publish to Flathub
runs-on: [ubuntu-latest]
+365 -606
View File
File diff suppressed because it is too large Load Diff