-
Notifications
You must be signed in to change notification settings - Fork 148
119 lines (94 loc) · 2.89 KB
/
nightly.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
name: Nightly Releases
on:
schedule:
- cron: '1 1 * * *'
jobs:
check:
runs-on: ubuntu-latest
outputs:
status: ${{ steps.check.outputs.status }}
version: ${{ steps.check.outputs.version }}
steps:
- uses: actions/checkout@v2
name: checkout
with:
fetch-depth: 0
- name: nightly-check
id: check
shell: bash {0}
run: |
ver=$(./.github/workflows/nightly_check.sh)
echo "::set-output name=status::$?"
echo "::set-output name=version::${ver}"
- name: create-release
id: create
if: steps.check.outputs.status == 0
uses: justdan96/release-action@main
with:
tag: nightly-${{ steps.check.outputs.version }}
name: Nightly build from ${{ steps.check.outputs.version }}
prerelease: true
commit: ${{ env.GITHUB_SHA }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: obs-trigger
id: obs
if: steps.check.outputs.status == 0
run: ./.github/workflows/obs_trigger.sh
env:
OBS_USER: justdan96
OBS_SECRET: ${{ secrets.OBS_SECRET }}
build-docker:
needs: check
if: needs.check.outputs.status == 0
runs-on: ubuntu-latest
container:
image: docker://justdan96/tsmuxer_build:latest
volumes:
- /workspace:/github/workspace
steps:
- uses: actions/checkout@v2
name: checkout
- run: rm -f bin/.gitkeep
name: clean-bin-folder
- run: ./scripts/rebuild_linux_with_gui_docker.sh
name: build-for-linux
- run: ./scripts/rebuild_mxe_with_gui_docker.sh
name: build-for-win64
- run: ./scripts/rebuild_mxe32_with_gui_docker.sh
name: build-for-win32
- name: Upload Win32/Win64/Linux Builds
id: upload-builds
uses: justdan96/release-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: ./bin/*.zip
tag: nightly-${{ needs.check.outputs.version }}
allowUpdates: true
omitPrereleaseDuringUpdate: true
omitNameDuringUpdate: true
omitBodyDuringUpdate: true
build-macos:
needs: check
if: needs.check.outputs.status == 0
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
name: checkout
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
setup-python: false
py7zrversion: '==0.20.*'
- run: ./scripts/build_macos_native.sh
name: build-for-mac
- name: Upload Mac Build
id: upload-mac
uses: justdan96/release-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: ./build/bin/mac.zip
tag: nightly-${{ needs.check.outputs.version }}
allowUpdates: true
omitPrereleaseDuringUpdate: true
omitNameDuringUpdate: true
omitBodyDuringUpdate: true