-
Notifications
You must be signed in to change notification settings - Fork 102
58 lines (52 loc) · 1.45 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: libopenshot-audio CI Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
if: ${{ runner.os == 'Windows' }}
with:
update: true
install: >-
mingw-w64-x86_64-gcc
mingw-w64-x86_64-pkgconf
mingw-w64-x86_64-make
make
pkgconf
- uses: haya14busa/action-cond@v1
id: generator
with:
cond: ${{ runner.os == 'Windows' }}
if_true: "MinGW Makefiles"
if_false: "Unix Makefiles"
- name: Install Linux dependencies
if: ${{ runner.os == 'Linux' }}
shell: bash
run: |
sudo apt update
sudo apt install cmake doxygen graphviz
sudo apt install libasound2-dev
- name: Build libopenshot-audio
run: |
mkdir build
pushd build
cmake -B . -S .. -G "${{ steps.generator.outputs.value }}" -DCMAKE_INSTALL_PREFIX:PATH="dist" -DCMAKE_BUILD_TYPE="Debug" -DAUTO_INSTALL_DOCS=0
cmake --build . -- VERBOSE=1
popd
- name: Generate API documentation
if: ${{ runner.os == 'Linux' }}
shell: bash
run: |
pushd build
cmake --build . --target doc
popd
- name: Install libopenshot-audio
run: |
pushd build
cmake --build . --target install -- VERBOSE=1
popd