test-32bit.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: 32-bit Build Test
  2. on:
  3. push:
  4. branches: [master]
  5. pull_request:
  6. branches: [master]
  7. workflow_dispatch:
  8. concurrency:
  9. group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
  10. cancel-in-progress: true
  11. jobs:
  12. test-win32:
  13. name: Windows 32-bit (MSVC x86)
  14. runs-on: windows-latest
  15. timeout-minutes: 10
  16. steps:
  17. - uses: actions/checkout@v4
  18. - name: Build (Win32)
  19. shell: cmd
  20. run: |
  21. for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath`) do set VSDIR=%%i
  22. call "%VSDIR%\VC\Auxiliary\Build\vcvarsall.bat" x86 || exit /b 1
  23. cl /std:c++14 /EHsc /W4 /WX /c /Fo:NUL test\test_32bit_build.cpp
  24. test-arm32:
  25. name: ARM 32-bit (cross-compile)
  26. runs-on: ubuntu-latest
  27. # Loose, because apt on the runner mirror can crawl for minutes; the build
  28. # step has its own tight limit.
  29. timeout-minutes: 30
  30. steps:
  31. - uses: actions/checkout@v4
  32. - name: Install cross compiler
  33. run: sudo apt-get update && sudo apt-get install -y g++-arm-linux-gnueabihf
  34. - name: Build (ARM 32-bit)
  35. timeout-minutes: 2
  36. run: arm-linux-gnueabihf-g++ -std=c++11 -Wall -Wextra -Wno-psabi -Werror -c -o /dev/null test/test_32bit_build.cpp