Fix directories #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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 dist\libcurl.dll | |
- name: Build tarball | |
shell: msys2 {0} | |
run: tar cvzf curl-impersonate-chrome.tar.gz -C dist . | |
- name: Upload release files | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: curl-impersonate-chrome.tar.gz |