forked from lwthiker/curl-impersonate
-
Notifications
You must be signed in to change notification settings - Fork 19
79 lines (67 loc) · 1.84 KB
/
build-win.yaml
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
name: Build for windows
on:
push:
branches:
- main
- feature/*
tags:
- "v*.*.*"
pull_request:
branches:
- main
permissions:
contents: write
env:
NSS_VERSION: nss-3.77
BORING_SSL_COMMIT: d24a38200fef19150eef00cad35b138936c08767
jobs:
build-windows:
name: Build windows binaries
runs-on: windows-2019
steps:
- name: configure Pagefile
uses: al-cheb/[email protected]
with:
minimum-size: 16GB
maximum-size: 16GB
disk-root: "C:"
- name: Install python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Check out the repo
uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
name: Install msys
with:
update: true
install: >-
git
patch
unzip
mingw-w64-x86_64-brotli
mingw-w64-x86_64-libidn2
mingw-w64-x86_64-zstd
mingw-w64-x86_64-nghttp2
mingw-w64-x86_64-zlib
mingw-w64-x86_64-make
mingw-w64-x86_64-cmake
mingw-w64-x86_64-nasm
mingw-w64-x86_64-gcc
mingw-w64-x86_64-go
# - name: Setup tmate session for debugging
# uses: mxschmitt/action-tmate@v3
- name: Copy and patch
shell: msys2 {0}
run: ./win/build.sh
- uses: ilammy/msvc-dev-cmd@v1
- name: Generate lib files
run: ./win/dll2lib.bat 64 build\dist\libcurl.dll
- name: Build tarball
shell: msys2 {0}
run: tar cvzf curl-impersonate-chrome.tar.gz -C ./build/dist .
- name: Upload release files
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: curl-impersonate-chrome.tar.gz