-
Notifications
You must be signed in to change notification settings - Fork 4
149 lines (120 loc) · 3.94 KB
/
main.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master, test_ga ]
pull_request:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build_and_test:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
container: jrottenberg/ffmpeg:5.0.1-ubuntu2004
# runs:
# using: docker
# image: Dockerfile
continue-on-error: ${{ (matrix.rust == 'beta') || (matrix.rust == 'nightly') }}
strategy:
fail-fast: false
matrix:
rust: [
# 1.69.0,
# 1.70.0,
# 1.71.0,
# 1.72.0,
# 1.73.0,
stable,
# beta,
# nightly
]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
- name: Install libs
run: >-
apt-get update &&
apt-get install --no-install-recommends -y build-essential wget pkg-config libasound2-dev
# export PKG_CONFIG_PATH=/usr/lib/pkgconfig:$PKG_CONFIG_PATH
# sudo apt-get install libasound2-dev libavcodec-dev
# libavformat-dev libavutil-dev libavdevice-dev libavfilter-dev
# libpostproc-dev libswscale-dev -y
# - name: Setup FFmpeg
# uses: FedericoCarboni/setup-ffmpeg@v3
# with:
# ffmpeg-version: 5.0.1
# linking-type: shared
# - name: Setup FFmpeg
# uses: Iamshankhadeep/[email protected]
# with:
# version: "5.0"
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
default: true
- name: Run cargo test
run: cargo test
# fmt:
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v3
# - name: Install Rust with rustfmt
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# default: true
# components: rustfmt
# - name: Show version
# run: cargo fmt --version
# - name: Run cargo fmt
# run: cargo fmt -- --check
# clippy:
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v3
# - name: Install libs
# run: >-
# sudo apt-get update &&
# sudo apt-get install libasound2-dev libavcodec-dev
# libavformat-dev libavutil-dev libavdevice-dev libavfilter-dev
# libpostproc-dev libswscale-dev -y
# - name: Install Rust with clippy
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# default: true
# components: clippy
# - name: Run cargo clippy
# run: cargo clippy 2>&1 | tee ./clippy.out && ! grep -qe "error:\|warning:" ./clippy.out
# tarpaulin:
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v3
# - name: Install libs
# run: >-
# sudo apt-get update &&
# sudo apt-get install libasound2-dev libavcodec-dev
# libavformat-dev libavutil-dev libavdevice-dev libavfilter-dev
# libpostproc-dev libswscale-dev -y
# - name: Setup FFmpeg
# uses: Iamshankhadeep/[email protected]
# with:
# version: "5.0"
# - name: Install Rust
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# default: true
# - name: Install tarpaulin
# run: cargo install cargo-tarpaulin --force
# env:
# RUSTFLAGS: '--cfg procmacro2_semver_exempt'
# - name: Run cargo-tarpaulin
# run: cargo tarpaulin -v --ciserver travis-ci --coveralls $GITHUB_JOB