-
-
Notifications
You must be signed in to change notification settings - Fork 53
81 lines (78 loc) · 2.43 KB
/
windows-msys.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
name: Windows MSYS
on: [push, pull_request]
env:
DISABLE_CCACHE: 1
NJOBS: 4
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
strategy:
max-parallel: 10
fail-fast: false
matrix:
include:
- compiler: gcc
- compiler: clang
env:
COMPILER: ${{ matrix.compiler }}
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: mingw64
install: >-
ccache
clang
cmake
git
make
pkgconf
python3
mingw-w64-i686-binutils
mingw-w64-i686-clang
mingw-w64-i686-cmake
mingw-w64-i686-gcc
mingw-w64-i686-pkgconf
mingw-w64-x86_64-binutils
mingw-w64-x86_64-clang
mingw-w64-x86_64-cmake
mingw-w64-x86_64-gcc
mingw-w64-x86_64-pkgconf
- name: Release Build
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: ./ports/ci/windows-msys/build.sh
- name: Release Deploy
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: ./ports/ci/windows-msys/deploy.sh
- name: Daily Build
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
env:
DAILY_BUILD: 1
run: ./ports/ci/windows-msys/build.sh
- name: Daily Deploy
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
env:
DAILY_BUILD: 1
run: ./ports/ci/windows-msys/deploy.sh
- name: Release Upload
uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
files: packages/windows-gcc/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Daily Build Upload
uses: softprops/action-gh-release@v1
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
with:
body: "${{ github.event.head_commit.message }} (commit: [${{ github.sha }}](https://github.com/webcamoid/akvirtualcamera/commit/${{ github.sha }}))<hr>**Note**: Ignore the commit information of the tag, the files in the release keep updating with every new build, these packages were built from [${{ github.sha }}](https://github.com/webcamoid/akvirtualcamera/commit/${{ github.sha }}) commit."
prerelease: true
files: packages/windows-gcc/*
name: Daily Build
tag_name: daily-build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}