Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: added i686 building target #18

Merged
merged 2 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions .github/workflows/build-win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
build-windows:
name: Build windows binaries
runs-on: windows-2019
strategy:
matrix:
include:
- { sys: mingw64, env: x86_64 }
- { sys: mingw32, env: i686 }
steps:
- name: configure Pagefile
uses: al-cheb/[email protected]
Expand All @@ -41,20 +46,21 @@ jobs:
name: Install msys
with:
update: true
msystem: ${{ matrix.sys }}
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
mingw-w64-${{ matrix.env }}-brotli
mingw-w64-${{ matrix.env }}-libidn2
mingw-w64-${{ matrix.env }}-zstd
mingw-w64-${{ matrix.env }}-nghttp2
mingw-w64-${{ matrix.env }}-zlib
mingw-w64-${{ matrix.env }}-make
mingw-w64-${{ matrix.env }}-cmake
mingw-w64-${{ matrix.env }}-nasm
mingw-w64-${{ matrix.env }}-gcc
mingw-w64-${{ matrix.env }}-go

- name: Copy and patch
shell: msys2 {0}
Expand All @@ -66,15 +72,15 @@ jobs:
- uses: ilammy/msvc-dev-cmd@v1

- name: Generate lib files
run: ./win/dll2lib.bat 64 build\dist\libcurl.dll
run: ./win/dll2lib.bat ${{ matrix.env }} build\dist\libcurl.dll

- name: Build tarball
shell: msys2 {0}
run: tar cvzf libcurl-impersonate-${{ github.ref_name }}.x86_64-win32.tar.gz -C ./build/dist .
run: tar cvzf libcurl-impersonate-${{ github.head_ref || github.ref_name }}.${{ matrix.env }}-win32.tar.gz -C ./build/dist .

- name: Upload release files
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
files: libcurl-impersonate-${{ github.ref_name }}.x86_64-win32.tar.gz
files: libcurl-impersonate-${{ github.head_ref || github.ref_name }}.${{ matrix.env }}-win32.tar.gz
2 changes: 1 addition & 1 deletion win/dll2lib.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ REM Requires 'dumpbin' and 'lib' in PATH - run from VS developer prompt.
REM
REM Script inspired by http://stackoverflow.com/questions/9946322/how-to-generate-an-import-library-lib-file-from-a-dll
SETLOCAL
if "%1"=="32" (set machine=x86) else (set machine=x64)
if "%1"=="i686" (set machine=x86) else (set machine=x64)
set dll_file=%2
set dll_file_no_ext=%dll_file:~0,-4%
set exports_file=%dll_file_no_ext%-exports.txt
Expand Down
Loading