-
Notifications
You must be signed in to change notification settings - Fork 27
45 lines (42 loc) · 1.25 KB
/
build.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
name: Build V8
on:
workflow_dispatch:
inputs:
version:
description: 'V8 version'
required: true
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
platform: ['x64', 'x86']
lib: ['shared'] #, 'monolith']
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Setup NuGet
uses: nuget/setup-nuget@v1
with:
nuget-api-key-source: https://api.nuget.org/v3/index.json
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
- name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1.3.0
with:
vsversion: '2022'
- name: Build
run: python build.py --version=${{ github.event.inputs.version }} --platform=${{ matrix.platform }} --libs=${{ matrix.lib }} --use-clang
#- name: Store packages
# uses: actions/upload-artifact@v2
# with:
# name: '8.4-${{ matrix.platform }}-${{ matrix.lib }}'
# path: '*.nupkg'
# continue-on-error: true
- name: Publish on Nuget.org
run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --skip-duplicate