forked from moja-global/FLINT
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.22 KB
/
another.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
name: Build Moja Flint with VCPKG
on:
push:
branches: [ workflow ]
pull_request:
branches: [ workflow ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Visual Studio 2022
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
version: 17
- name: Cache vcpkg
uses: actions/cache@v3
with:
path: vcpkg
key: vcpkg-${{ runner.os }}-${{ hashFiles('Source/vcpkg.json') }}
restore-keys: |
vcpkg-${{ runner.os }}-
- name: Install and run Dependencies
shell: pwsh
run: |
pushd vcpkg
.\vcpkg_setup_vs2022_win_x64.bat
popd
- name: Create executable package
shell: pwsh
run: |
pushd Source/build
ls
Compress-Archive -Path * -DestinationPath moja-flint.zip -Force
Move-Item -Path *.zip -Destination ../../moja-flint.zip
popd
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: moja-flint
path: moja-flint.zip
- name: Clean up after build
shell: pwsh
run: |
Remove-Item -Recurse -Force Source\build