-
Notifications
You must be signed in to change notification settings - Fork 2
155 lines (123 loc) · 4.35 KB
/
plugin-cd.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
name: Plugin CD
on:
workflow_dispatch:
push:
tags:
- 'v*'
env:
VCPKG_COMMIT_HASH: "a82dd0cef6e9d81e764b3bccdf12bbb90c6f34ee"
jobs:
build-win64:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install via vcpkg
run: |
git clone https://github.com/microsoft/vcpkg build/vcpkg
git -C build/vcpkg checkout ${{ env.VCPKG_COMMIT_HASH }}
./build/vcpkg/bootstrap-vcpkg.bat
./build/vcpkg/vcpkg install configcat[core] --triplet x64-windows
- uses: actions/upload-artifact@v3
with:
name: Win64
path: |
./build/vcpkg/installed/*/lib/configcat.lib
build-android:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install via vcpkg
run: |
git clone https://github.com/microsoft/vcpkg build/vcpkg
git -C build/vcpkg checkout ${{ env.VCPKG_COMMIT_HASH }}
./build/vcpkg/bootstrap-vcpkg.bat
./build/vcpkg/vcpkg install configcat[core] --triplet arm64-android
- uses: actions/upload-artifact@v3
with:
name: Android
path: |
./build/vcpkg/installed/*/lib/libconfigcat.a
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install via vcpkg
run: |
git clone https://github.com/microsoft/vcpkg build/vcpkg
git -C build/vcpkg checkout ${{ env.VCPKG_COMMIT_HASH }}
./build/vcpkg/bootstrap-vcpkg.sh
./build/vcpkg/vcpkg install configcat[core] --triplet universal-osx-unreal --overlay-triplets "$GITHUB_WORKSPACE/Extras/triplets"
- uses: actions/upload-artifact@v3
with:
name: MacOS
path: |
./build/vcpkg/installed/*/lib/libconfigcat.a
build-ios:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install via vcpkg
run: |
git clone https://github.com/microsoft/vcpkg build/vcpkg
git -C build/vcpkg checkout ${{ env.VCPKG_COMMIT_HASH }}
./build/vcpkg/bootstrap-vcpkg.sh
./build/vcpkg/vcpkg install configcat[core] --triplet arm64-ios-unreal --overlay-triplets "$GITHUB_WORKSPACE/Extras/triplets"
- uses: actions/upload-artifact@v3
with:
name: iOS
path: |
./build/vcpkg/installed/*/lib/libconfigcat.a
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install via vcpkg
run: |
git clone https://github.com/microsoft/vcpkg build/vcpkg
git -C build/vcpkg checkout ${{ env.VCPKG_COMMIT_HASH }}
./build/vcpkg/bootstrap-vcpkg.sh
# Extra steps for Unreal Engine integration
export CC=clang
export CXX=clang++
./build/vcpkg/vcpkg install configcat[core] --triplet x64-linux-unreal --overlay-triplets "$GITHUB_WORKSPACE/Extras/triplets"
- uses: actions/upload-artifact@v3
with:
name: Linux
path: |
./build/vcpkg/installed/*/lib/libconfigcat.a
publish-engine-plugin:
runs-on: ubuntu-latest
needs: [build-win64, build-android, build-macos, build-ios, build-linux]
name: 📦 Package Plugin
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: Win64
path: Source/ThirdParty/ConfigCatCppSDK/Binaries/Win64
- uses: actions/download-artifact@v3
with:
name: Android
path: Source/ThirdParty/ConfigCatCppSDK/Binaries/Android
- uses: actions/download-artifact@v3
with:
name: MacOS
path: Source/ThirdParty/ConfigCatCppSDK/Binaries/MacOS
- uses: actions/download-artifact@v3
with:
name: iOS
path: Source/ThirdParty/ConfigCatCppSDK/Binaries/iOS
- uses: actions/download-artifact@v3
with:
name: Linux
path: Source/ThirdParty/ConfigCatCppSDK/Binaries/Linux
- name: Archive files
run: |
zip -r ConfigCat.zip . -x LICENSE ".github/*" ".git/*" @
- uses: ncipollo/release-action@v1
with:
artifacts: ConfigCat.zip
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
tag: ${{ github.ref }}
name: "${{ github.ref_name }}"