Skip to content

Commit

Permalink
build: manual win32 workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nalgeon committed Jun 12, 2024
1 parent 9cacec1 commit a358395
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,10 @@ jobs:
make compile-linux
make test-all
- name: Install MSYS2 and 'mingw-w64-i686-toolchain'
if: matrix.os == 'windows-latest'
uses: msys2/setup-msys2@v2
with:
cache: true
install: mingw-w64-i686-toolchain
update: true

- name: Build for Windows
if: matrix.os == 'windows-latest'
shell: bash
run: |
$RUNNER_TEMP/msys64/msys2_shell.cmd -defterm -no-start -mingw32 -lc "mingw32-make compile-windows-x86"
make compile-windows
run: make compile-windows

- name: Build for macOS
if: matrix.os == 'macos-latest'
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/win32.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: win32

on:
workflow_dispatch:

env:
SQLITE_RELEASE_YEAR: "2021"
SQLITE_VERSION: "3360000"
SQLITE_BRANCH: "3.36"

jobs:
build:
name: Build for 32-bit Windows
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Download SQLite sources
shell: bash
run: |
make prepare-dist
make download-sqlite
make download-external
- name: Install MSYS2 and 'mingw-w64-i686-toolchain'
uses: msys2/setup-msys2@v2
with:
cache: true
install: mingw-w64-i686-toolchain
update: true

- name: Build
shell: bash
run: |
$RUNNER_TEMP/msys64/msys2_shell.cmd -defterm -no-start -mingw32 -lc "mingw32-make compile-windows-x86"
make compile-windows

0 comments on commit a358395

Please sign in to comment.