mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
CI: Update and improve Ubuntu build
This commit is contained in:
@ -1,6 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
echo "[obs-websocket] Running CMake.."
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_UBUNTU_FIX=true ..
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_UBUNTU_FIX=true ..
|
||||||
|
|
||||||
|
echo "[obs-websocket] Building plugin.."
|
||||||
make -j4
|
make -j4
|
@ -1,9 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
echo "[obs-websocket] Installing obs-studio PPA and updates.."
|
||||||
sudo add-apt-repository -y ppa:obsproject/obs-studio
|
sudo add-apt-repository -y ppa:obsproject/obs-studio
|
||||||
sudo apt-get -qq update
|
sudo apt-get -qq update
|
||||||
|
|
||||||
|
echo "[obs-websocket] Installing obs-studio and dependencies.."
|
||||||
sudo apt-get install -y \
|
sudo apt-get install -y \
|
||||||
libc-dev-bin \
|
libc-dev-bin \
|
||||||
libc6-dev git \
|
libc6-dev git \
|
||||||
@ -13,7 +15,12 @@ sudo apt-get install -y \
|
|||||||
obs-studio \
|
obs-studio \
|
||||||
qtbase5-dev
|
qtbase5-dev
|
||||||
|
|
||||||
|
echo "[obs-websocket] Installed OBS Version: $(obs --version)"
|
||||||
|
|
||||||
|
ls /usr/include/
|
||||||
|
ls /usr/include/obs/
|
||||||
|
|
||||||
# Dirty hack
|
# Dirty hack
|
||||||
sudo wget -O /usr/include/obs/obs-frontend-api.h https://raw.githubusercontent.com/obsproject/obs-studio/26.0.0/UI/obs-frontend-api/obs-frontend-api.h
|
sudo wget -O /usr/include/obs/obs-frontend-api.h https://raw.githubusercontent.com/obsproject/obs-studio/26.1.2/UI/obs-frontend-api/obs-frontend-api.h
|
||||||
|
|
||||||
sudo ldconfig
|
sudo ldconfig
|
@ -7,7 +7,7 @@ export PKG_VERSION="1-$GIT_HASH-$BRANCH_SHORT_NAME-git"
|
|||||||
|
|
||||||
if [[ $BRANCH_FULL_NAME =~ ^refs/tags/ ]]; then
|
if [[ $BRANCH_FULL_NAME =~ ^refs/tags/ ]]; then
|
||||||
export PKG_VERSION="$BRANCH_SHORT_NAME"
|
export PKG_VERSION="$BRANCH_SHORT_NAME"
|
||||||
echo "[obs-websocket] Branch is a tag. Setting version to $PKG_VERSION."
|
echo "[obs-websocket] Branch is a tag. Setting version to $PKG_VERSION."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ./build
|
cd ./build
|
||||||
@ -18,7 +18,7 @@ PAGER="cat" sudo checkinstall -y --type=debian --fstrans=no --nodoc \
|
|||||||
--pkglicense="GPLv2.0" --maintainer="stephane.lepin@gmail.com" \
|
--pkglicense="GPLv2.0" --maintainer="stephane.lepin@gmail.com" \
|
||||||
--pkggroup="video" \
|
--pkggroup="video" \
|
||||||
--pkgsource="https://github.com/Palakis/obs-websocket" \
|
--pkgsource="https://github.com/Palakis/obs-websocket" \
|
||||||
--requires="obs-studio \(\>= 25.0.7\), libqt5core5a, libqt5widgets5, qt5-image-formats-plugins" \
|
--requires="obs-studio \(\>= 26.1.0\), libqt5core5a, libqt5widgets5, qt5-image-formats-plugins" \
|
||||||
--pakdir="../package"
|
--pakdir="../package"
|
||||||
|
|
||||||
sudo chmod ao+r ../package/*
|
sudo chmod ao+r ../package/*
|
@ -131,7 +131,7 @@ jobs:
|
|||||||
|
|
||||||
- job: 'Build_Linux'
|
- job: 'Build_Linux'
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-18.04'
|
vmImage: 'ubuntu-20.04'
|
||||||
variables:
|
variables:
|
||||||
BUILD_REASON: $(Build.Reason)
|
BUILD_REASON: $(Build.Reason)
|
||||||
BRANCH_SHORT_NAME: $(Build.SourceBranchName)
|
BRANCH_SHORT_NAME: $(Build.SourceBranchName)
|
||||||
@ -140,13 +140,13 @@ jobs:
|
|||||||
- checkout: self
|
- checkout: self
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- script: ./CI/install-dependencies-ubuntu.sh
|
- script: ./CI/linux/install-dependencies-ubuntu.sh
|
||||||
displayName: 'Install dependencies'
|
displayName: 'Install dependencies'
|
||||||
|
|
||||||
- script: ./CI/build-ubuntu.sh
|
- script: ./CI/linux/build-plugin-ubuntu.sh
|
||||||
displayName: 'Build obs-websocket'
|
displayName: 'Build obs-websocket'
|
||||||
|
|
||||||
- script: ./CI/package-ubuntu.sh
|
- script: ./CI/linux/package-plugin-ubuntu.sh
|
||||||
displayName: 'Package obs-websocket'
|
displayName: 'Package obs-websocket'
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
|
Reference in New Issue
Block a user