forked from coelckers/prboom-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (59 loc) · 1.85 KB
/
windows_dependencies.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
###############################################################################
#
# HOW TO USE
#
# Push any commit to build_windows_dependencies branch, create it if needed
# This will trigger execution of the following workflow
# Generated artifacts can be used to update the dependency package
#
###############################################################################
name: Windows Dependencies
on:
push:
branches:
- build_windows_dependencies
pull_request:
branches:
- build_windows_dependencies
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Visual Studio 64-bit",
os: windows-latest,
triplet: x64-windows
}
- {
name: "Visual Studio 32-bit",
os: windows-latest,
triplet: x86-windows
}
steps:
- uses: actions/checkout@v1
- name: Configure
id: vars
shell: cmd
run: |
echo ::set-output name=common_options::sdl2-image sdl2-mixer[dynamic-load,libflac,libmodplug,libvorbis,mpg123,opusfile] sdl2-net libmad fluidsynth dumb portmidi --triplet ${{ matrix.config.triplet }}
- name: Install
shell: cmd
run: |
xcopy .github\workflows\dumb %VCPKG_INSTALLATION_ROOT%\ports\dumb\
xcopy .github\workflows\portmidi %VCPKG_INSTALLATION_ROOT%\ports\portmidi\ /y
vcpkg update
vcpkg install ${{ steps.vars.outputs.common_options }}
- name: Export
shell: cmd
run: |
md artifact
.github\workflows\copy_dependencies.cmd %VCPKG_INSTALLATION_ROOT%\installed\${{ matrix.config.triplet }} artifact
- name: Upload
uses: actions/upload-artifact@v1
with:
path: artifact
name: ${{ matrix.config.triplet }}