File tree Expand file tree Collapse file tree 2 files changed +61
-4
lines changed Expand file tree Collapse file tree 2 files changed +61
-4
lines changed Original file line number Diff line number Diff line change 8
8
schedule :
9
9
- cron : ' 22 0 * * 1'
10
10
11
+ env :
12
+ USERNAME : uvcat7
13
+ FEED_URL : https://nuget.pkg.github.com/uvcat7/index.json
14
+ VCPKG_BINARY_SOURCES : " clear;nuget,https://nuget.pkg.github.com/uvcat7/index.json,readwrite"
15
+
11
16
jobs :
12
17
analyze :
13
18
name : Analyze (${{ matrix.language }})
30
35
- language : actions
31
36
build-mode : none
32
37
- language : c-cpp
33
- build-mode : autobuild
34
- - language : python
35
- build-mode : none
38
+ build-mode : manual
39
+ configure : >
40
+ cmake -Bbuild
41
+ -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake"
42
+ -DVCPKG_TARGET_TRIPLET=x64-windows-static-md
43
+ build : cmake --build build --parallel "$env:NUMBER_OF_PROCESSORS"
36
44
37
45
steps :
38
46
- name : Checkout repository
48
56
languages : ${{ matrix.language }}
49
57
build-mode : ${{ matrix.build-mode }}
50
58
59
+ - name : Add NuGet sources
60
+ shell : pwsh
61
+ if : matrix.language == 'c-cpp'
62
+ run : |
63
+ .$(vcpkg fetch nuget) `
64
+ sources add `
65
+ -Source "${{ env.FEED_URL }}" `
66
+ -StorePasswordInClearText `
67
+ -Name GitHubPackages `
68
+ -UserName "${{ env.USERNAME }}" `
69
+ -Password "${{ secrets.GH_PACKAGES_TOKEN }}"
70
+ .$(vcpkg fetch nuget) `
71
+ setapikey "${{ secrets.GH_PACKAGES_TOKEN }}" `
72
+ -Source "${{ env.FEED_URL }}"
73
+
74
+ - name : Configure
75
+ if : matrix.configure
76
+ run : ${{ matrix.configure }}
77
+
78
+ - name : Build
79
+ if : matrix.build
80
+ run : ${{ matrix.build }}
81
+
51
82
- name : Perform CodeQL Analysis
52
83
uses : github/codeql-action/analyze@v3
53
84
with :
Original file line number Diff line number Diff line change 6
6
paths-ignore :
7
7
- ' **.md'
8
8
9
+ env :
10
+ USERNAME : uvcat7
11
+ FEED_URL : https://nuget.pkg.github.com/uvcat7/index.json
12
+ VCPKG_BINARY_SOURCES : " clear;nuget,https://nuget.pkg.github.com/uvcat7/index.json,readwrite"
13
+
9
14
jobs :
10
15
windows :
11
16
name : " Build Windows x64"
22
27
curl https://www.rarewares.org/files/ogg/oggenc2.88-1.3.7-x64.zip --output oggenc.zip &&
23
28
unzip oggenc.zip -d bin/
24
29
shell : bash
30
+ - name : Add NuGet sources
31
+ shell : pwsh
32
+ run : |
33
+ .$(vcpkg fetch nuget) `
34
+ sources add `
35
+ -Source "${{ env.FEED_URL }}" `
36
+ -StorePasswordInClearText `
37
+ -Name GitHubPackages `
38
+ -UserName "${{ env.USERNAME }}" `
39
+ -Password "${{ secrets.GH_PACKAGES_TOKEN }}"
40
+ .$(vcpkg fetch nuget) `
41
+ setapikey "${{ secrets.GH_PACKAGES_TOKEN }}" `
42
+ -Source "${{ env.FEED_URL }}"
43
+ - name : Configure CMake
44
+ run : >
45
+ cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
46
+ -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake"
47
+ -DVCPKG_TARGET_TRIPLET=x64-windows-static-md
25
48
- name : Build AV
26
- run : msbuild build\VisualStudio\ArrowVortex.vcxproj /p:Configuration=Release /p:Platform=x64
49
+ run : cmake --build build --config Release --parallel "$env:NUMBER_OF_PROCESSORS"
50
+ - name : Collect into a directory
51
+ if : github.ref_name == 'beta'
52
+ run : cmake --install build --config Release --prefix ./
27
53
- name : Upload artifact
28
54
if : github.ref_name == 'beta'
29
55
uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments