-
Notifications
You must be signed in to change notification settings - Fork 9
113 lines (97 loc) · 2.57 KB
/
windows.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
name: Windows
on:
push:
branches:
- master
- beta
- stable
pull_request:
branches:
- master
- beta
- stable
jobs:
Windows_x86-64:
runs-on: windows-2019
env:
UPLOAD_ENABLED: ${{ secrets.DROPBOX_ACCESS_TOKEN }}
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
autoconf
automake
base-devel
gettext
git
libtool
make
mingw-w64-x86_64-cmake
mingw-w64-x86_64-gcc
mingw-w64-x86_64-ducible
mingw-w64-x86_64-icoutils
mingw-w64-x86_64-meson
mingw-w64-x86_64-openal
mingw-w64-x86_64-pkg-config
mingw-w64-x86_64-python
mingw-w64-x86_64-python-pip
mingw-w64-x86_64-python2
tar
unzip
zip
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache dependencies
uses: actions/cache@v2
id: fsdeps_cache
with:
path: fsdeps/_prefix
key: fsdeps_${{ hashFiles('fsdeps/**/*') }}_${{ runner.os }}
- name: Build dependencies
if: steps.fsdeps_cache.outputs.cache-hit != 'true'
run: |
fsdeps/make
- name: Update version
if: hashFiles('fsbuild/version') != ''
run: |
fsbuild/version
- name: Bootstrap
if: hashFiles('fsbuild/bootstrap') != ''
run: |
fsdeps/use fsbuild/bootstrap
- name: Configure
if: hashFiles('fsbuild/configure') != ''
run: |
fsdeps/use fsbuild/configure
- name: Build
run: |
fsdeps/use fsbuild/make
- name: Bundle
run: |
fsbuild/bundle
- name: Archive
run: |
fsbuild/archive
- uses: actions/upload-artifact@v2
with:
name: Windows_x86-64
path: fsbuild/_dist/*
- name: Upload build to Dropbox folder
if: >-
env.UPLOAD_ENABLED != null && (
github.ref == 'refs/heads/master' ||
github.ref == 'refs/heads/dev' ||
github.ref == 'refs/heads/beta' ||
github.ref == 'refs/heads/stable'
)
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
DROPBOX_ACCESS_TOKEN: ${{ secrets.DROPBOX_ACCESS_TOKEN }}
run: |
python3 -m pip install dropbox==11.23.0
fsbuild/upload