-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (42 loc) · 1.7 KB
/
plugin-ci.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
name: Plugin CI
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
VCPKG_COMMIT_HASH: "71cb55f5d4223bfe161f8ed2fd474ee398afbc15"
jobs:
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,sha] --triplet x64-linux-unreal --overlay-triplets "$GITHUB_WORKSPACE/Extras/triplets"
- name: Copy binaries
run: |
mkdir -p ${{ github.workspace }}/Source/ThirdParty/ConfigCatCppSDK/Binaries/Linux/x64-linux-unreal/
cp ${{ github.workspace }}/build/vcpkg/installed/x64-linux-unreal/lib/libconfigcat.a ${{ github.workspace }}/Source/ThirdParty/ConfigCatCppSDK/Binaries/Linux/x64-linux-unreal/libconfigcat.a
cp ${{ github.workspace }}/build/vcpkg/installed/x64-linux-unreal/lib/libhash-library.a ${{ github.workspace }}/Source/ThirdParty/ConfigCatCppSDK/Binaries/Linux/x64-linux-unreal/libhash-library.a
rm -r ./build/*
- uses: actions/upload-artifact@v4
with:
name: configcat-sdk
path: ${{ github.workspace }}
plugin-ci:
uses: outoftheboxplugins/BuildMachines/.github/workflows/compile-plugin.yml@master
needs: build-linux
with:
plugin_code: configcat-sdk
secrets:
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}