Skip to content

Commit 460a905

Browse files
committed
Setup CI
1 parent a33b3fb commit 460a905

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Main
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
BUILD_TYPE: release
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Dependencies
20+
run: |
21+
sudo apt update
22+
sudo apt install meson libva-dev libdrm-dev
23+
24+
- name: Configure
25+
run: meson setup --buildtype ${{env.BUILD_TYPE}} ${{github.workspace}}/build
26+
27+
- name: Build
28+
run: meson compile -C ${{github.workspace}}/build
29+
30+
- name: Create bundle
31+
run: mkdir -p vaapi_encoder.dvcp.bundle/Contents/Linux-x86-64 && cp ${{github.workspace}}/build/vaapi_encoder.dvcp vaapi_encoder.dvcp.bundle/Contents/Linux-x86-64
32+
33+
- uses: actions/upload-artifact@v4
34+
with:
35+
name: bundle
36+
path: vaapi_encoder.dvcp.bundle/

0 commit comments

Comments
 (0)