Skip to content

Fix build with FFmpeg and libvpx. #907

Fix build with FFmpeg and libvpx.

Fix build with FFmpeg and libvpx. #907

Workflow file for this run

name: Ubuntu
on: [push, pull_request]
env:
QTIFWVER: 4.8.0
APPIMAGEVER: continuous
NJOBS: 4
jobs:
build:
name: Ubuntu x86_64
runs-on: ubuntu-latest
strategy:
max-parallel: 10
fail-fast: false
matrix:
include:
- dockerimg: amd64/ubuntu:latest
compiler: gcc
upload: 0
- dockerimg: amd64/ubuntu:latest
compiler: clang
upload: 0
- dockerimg: amd64/ubuntu:devel
compiler: gcc
upload: 0
- dockerimg: amd64/ubuntu:devel
compiler: clang
upload: 0
steps:
- uses: actions/checkout@v2
- name: Release build
uses: addnab/docker-run-action@v3
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: gcr.io
image: ${{ matrix.dockerimg }}
options: >-
-v ${{ github.workspace }}:/sources
-e GITHUB_REF=${{ github.ref }}
-e GITHUB_SERVER_URL=${{ github.server_url }}
-e GITHUB_REPOSITORY=${{ github.repository }}
-e GITHUB_RUN_ID=${{ github.run_id }}
-e GIT_COMMIT_HASH=${{ github.sha }}
-e GIT_BRANCH_NAME=${{ github.ref_name }}
-e APPIMAGEVER=${{ env.APPIMAGEVER }}
-e COMPILER=${{ matrix.compiler }}
-e DOCKERIMG=${{ matrix.dockerimg }}
-e NJOBS=${{ env.NJOBS }}
-e QTIFWVER=${{ env.QTIFWVER }}
-e UPLOAD=${{ matrix.upload }}
run: |
cd /sources
echo
echo Install dependencies
echo
chmod +x ports/ci/linux-ubuntu/install_deps.sh
./ports/ci/linux-ubuntu/install_deps.sh
echo
echo Release Build
echo
chmod +x ports/ci/linux-ubuntu/build.sh
./ports/ci/linux-ubuntu/build.sh
echo
echo Release Deploy
echo
chmod +x ports/ci/linux-ubuntu/deploy.sh
./ports/ci/linux-ubuntu/deploy.sh
- name: Daily build
uses: addnab/docker-run-action@v3
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: gcr.io
image: ${{ matrix.dockerimg }}
options: >-
-v ${{ github.workspace }}:/sources
-e GITHUB_REF=${{ github.ref }}
-e GITHUB_SERVER_URL=${{ github.server_url }}
-e GITHUB_REPOSITORY=${{ github.repository }}
-e GITHUB_RUN_ID=${{ github.run_id }}
-e GIT_COMMIT_HASH=${{ github.sha }}
-e GIT_BRANCH_NAME=${{ github.ref_name }}
-e APPIMAGEVER=${{ env.APPIMAGEVER }}
-e COMPILER=${{ matrix.compiler }}
-e DOCKERIMG=${{ matrix.dockerimg }}
-e NJOBS=${{ env.NJOBS }}
-e QTIFWVER=${{ env.QTIFWVER }}
-e UPLOAD=${{ matrix.upload }}
-e DAILY_BUILD=1
run: |
cd /sources
echo
echo Install dependencies
echo
chmod +x ports/ci/linux-ubuntu/install_deps.sh
./ports/ci/linux-ubuntu/install_deps.sh
echo
echo Daily Build
echo
chmod +x ports/ci/linux-ubuntu/build.sh
./ports/ci/linux-ubuntu/build.sh
echo
echo Daily Deploy
echo
chmod +x ports/ci/linux-ubuntu/deploy.sh
./ports/ci/linux-ubuntu/deploy.sh
- name: Release Upload
uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.upload }}
with:
repository: webcamoid/WebcamoidPrivate
files: webcamoid-packages/linux-lunar-gcc/*
env:
GITHUB_TOKEN: ${{ secrets.UPLOAD_TOKEN }}
- name: Daily Build Upload
uses: softprops/action-gh-release@v1
if: ${{ !startsWith(github.ref, 'refs/tags/') && matrix.upload && github.ref == 'refs/heads/master' }}
with:
repository: webcamoid/WebcamoidPrivate
body: "${{ github.event.head_commit.message }} (commit: [${{ github.sha }}](https://github.com/webcamoid/webcamoid/commit/${{ github.sha }}))<hr>**Note**: Ignore the commit information of the tag, the files in the release keep updating with every new build, these packages were built from [${{ github.sha }}](https://github.com/webcamoid/webcamoid/commit/${{ github.sha }}) commit."
prerelease: true
files: webcamoid-packages/linux-lunar-gcc/*
name: Daily Build
tag_name: daily-build
env:
GITHUB_TOKEN: ${{ secrets.UPLOAD_TOKEN }}