forked from colin121/x264-dsp
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (66 loc) · 1.68 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
---
"on":
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:
# https://github.com/softprops/action-gh-release/issues/236
permissions:
contents: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mig4/setup-bats@v1
- uses: brokenpip3/[email protected]
- name: Install dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install check
- name: Test
# disable bashcov due to bug
# https://bugs.launchpad.net/ubuntu/+source/check/+bug/2019478
run: |
# cmake -Bbuild
# cmake --build build --target check_downsample
# ctest --test-dir build
bats -r .
make check
- uses: codecov/codecov-action@v3
with:
gcov: true
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install check
# gcc-mingw-w64-x86-64-win32
- name: Build
run: |
autoreconf -vif
./configure
make dist
make
# ./configure --build=x86_64-pc-linux-gnu --host=x86_64-w64-mingw32
# make
- uses: actions/upload-artifact@v3
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
path: |
x264
*.tar.gz
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
# body_path: CHANGELOG.md
files: |
x264
*.tar.gz