-
Notifications
You must be signed in to change notification settings - Fork 9
69 lines (63 loc) · 2.03 KB
/
dev.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
name: Advene dev testing workflow
on:
push:
branches:
- dev
jobs:
windows:
runs-on: windows-latest
strategy:
fail-fast: true
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# Note: we are using fetch-depth: 0 here to fetch the whole
# history and especially tags, since we use git describe
# afterwards to generate the installer filename.
fetch-depth: 0
- name: setup-msys2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >-
git
dos2unix
mingw-w64-x86_64-gettext
mingw-w64-x86_64-gdk-pixbuf2
mingw-w64-x86_64-librsvg
mingw-w64-x86_64-gtk3
mingw-w64-x86_64-libsoup3
mingw-w64-x86_64-gstreamer
mingw-w64-x86_64-gst-plugins-base
mingw-w64-x86_64-gst-plugins-good
mingw-w64-x86_64-gst-plugins-bad
mingw-w64-x86_64-gst-libav
mingw-w64-x86_64-gst-plugins-ugly
mingw-w64-x86_64-python
mingw-w64-x86_64-cc
mingw-w64-x86_64-pkgconf
mingw-w64-x86_64-gobject-introspection
mingw-w64-x86_64-appstream
- name: Build Installer
env:
BUILD_REF: ${{ github.event.inputs.ref }}
shell: msys2 {0}
run: |
if [[ -z "$BUILD_REF" ]]; then
BUILD_REF="$(git rev-parse --abbrev-ref HEAD)"
fi
cd dev/win_installer
./bootstrap.sh
./build.sh "$BUILD_REF"
cd ../..
ARTIFACT_PATHNAME=$(ls dev/win_installer/advene-*-installer.exe | head -n 1)
ARTIFACT_NAME=$(basename $ARTIFACT_PATHNAME)
echo "ARTIFACT_PATHNAME=${ARTIFACT_PATHNAME}" >> $GITHUB_ENV
echo "ARTIFACT_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV
- name: Upload Results
uses: actions/upload-artifact@v4
with:
name: installer
path: dev-utils/win_installer/*.exe