mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-23 11:54:42 +00:00
apt on the runner mirror sometimes crawls for minutes (actions/runner-images#14823), and the cross compiler is large enough that its install alone used up the job's 10-minute limit. Loosen the job limit to 30 minutes and limit the build step, which normally takes a few seconds, to 2 minutes.
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
name: 32-bit Build Test
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test-win32:
|
|
name: Windows 32-bit (MSVC x86)
|
|
runs-on: windows-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Build (Win32)
|
|
shell: cmd
|
|
run: |
|
|
for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath`) do set VSDIR=%%i
|
|
call "%VSDIR%\VC\Auxiliary\Build\vcvarsall.bat" x86 || exit /b 1
|
|
cl /std:c++14 /EHsc /W4 /WX /c /Fo:NUL test\test_32bit_build.cpp
|
|
|
|
test-arm32:
|
|
name: ARM 32-bit (cross-compile)
|
|
runs-on: ubuntu-latest
|
|
# Loose, because apt on the runner mirror can crawl for minutes; the build
|
|
# step has its own tight limit.
|
|
timeout-minutes: 30
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install cross compiler
|
|
run: sudo apt-get update && sudo apt-get install -y g++-arm-linux-gnueabihf
|
|
- name: Build (ARM 32-bit)
|
|
timeout-minutes: 2
|
|
run: arm-linux-gnueabihf-g++ -std=c++11 -Wall -Wextra -Wno-psabi -Werror -c -o /dev/null test/test_32bit_build.cpp
|