Debian Codegraph @

debian/missing-sources/dav1d/.github/workflows/dav1d.yml

raw symbols SCIP
1 name: dav1d
2
3 on: [push, pull_request]
4
5 jobs:
6
7 linux-tests:
8
9 runs-on: ubuntu-22.04
10
11 steps:
12 - uses: actions/checkout@v3
13
14 - name: Install nasm
15 uses: ilammy/setup-nasm@v1
16
17 - name: Install Rust stable
18 uses: dtolnay/rust-toolchain@stable
19 with:
20 toolchain: stable
21
22 - name: Install Python 3.9
23 uses: actions/setup-python@v4
24 with:
25 python-version: '3.9'
26
27 - name: Install pip packages
28 run: |
29 pip install -U pip
30 pip install -U wheel setuptools
31 pip install -U meson ninja
32
33 - name: Build dav1d
34 env:
35 DAV1D_DIR: dav1d_dir
36 LIB_PATH: lib/x86_64-linux-gnu
37 run: |
38 git clone --branch 1.5.0 --depth 1 https://code.videolan.org/videolan/dav1d.git
39 cd dav1d
40 meson build -Dprefix=$HOME/$DAV1D_DIR -Denable_tools=false -Denable_examples=false --buildtype release
41 ninja -C build
42 ninja -C build install
43 echo "PKG_CONFIG_PATH=$HOME/$DAV1D_DIR/$LIB_PATH/pkgconfig" >> $GITHUB_ENV
44 echo "LD_LIBRARY_PATH=$HOME/$DAV1D_DIR/$LIB_PATH" >> $GITHUB_ENV
45
46 - name: Run tests
47 run: |
48 cargo test --workspace --all-features
49
50 windows-tests-msvc:
51
52 runs-on: windows-latest
53
54 steps:
55 - uses: actions/checkout@v3
56 - uses: ilammy/msvc-dev-cmd@v1
57
58 - name: Install nasm
59 uses: ilammy/setup-nasm@v1
60
61 - name: Install Rust stable MSVC
62 uses: dtolnay/rust-toolchain@stable
63 with:
64 toolchain: stable-x86_64-pc-windows-msvc
65
66 - name: Install Python 3.9
67 uses: actions/setup-python@v4
68 with:
69 python-version: '3.9'
70
71 - name: Install pip packages
72 run: |
73 pip install -U pip
74 pip install -U wheel setuptools
75 pip install -U meson ninja
76
77 - name: Setting up environment
78 shell: bash
79 run: |
80 echo "PKG_CONFIG=c:\build\bin\pkg-config.exe" >> $GITHUB_ENV
81 echo "PKG_CONFIG_PATH=C:\build\lib\pkgconfig" >> $GITHUB_ENV
82 echo "C:\build\bin" >> $GITHUB_PATH
83
84 - name: Build pkg-config
85 run: |
86 git clone --branch meson-glib-subproject --depth 1 https://gitlab.freedesktop.org/tpm/pkg-config.git
87 cd pkg-config
88 meson build -Dprefix=C:\build --buildtype release
89 ninja -C build
90 ninja -C build install
91
92 - name: Build dav1d
93 run: |
94 git clone --branch 1.5.0 --depth 1 https://code.videolan.org/videolan/dav1d.git
95 cd dav1d
96 meson build -Dprefix=C:\build -Denable_tools=false -Denable_examples=false --buildtype release
97 ninja -C build
98 ninja -C build install
99
100 - name: Run tests
101 run: |
102 cargo test --workspace --all-features