windows.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: Windows
  2. on:
  3. pull_request:
  4. branches:
  5. - dev
  6. jobs:
  7. build:
  8. strategy:
  9. fail-fast: false
  10. matrix:
  11. # https://github.com/xmake-io/xmake-repo/issues/8098
  12. # os: [windows-2022, windows-2025]
  13. os: [windows-2025]
  14. kind: [static, shared]
  15. arch: [x64, x86, arm64]
  16. runtimes: [MT, MD]
  17. runs-on: ${{ matrix.os }}
  18. concurrency:
  19. group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Windows-${{ matrix.os }}-${{ matrix.kind }}-${{ matrix.arch }}-${{ matrix.runtimes }}
  20. cancel-in-progress: true
  21. steps:
  22. - uses: actions/checkout@v1
  23. - uses: xmake-io/github-action-setup-xmake@v1
  24. with:
  25. xmake-version: branch@master
  26. actions-cache-folder: '.xmake-cache'
  27. actions-cache-key: 'windows'
  28. - name: Configure Pagefile
  29. uses: al-cheb/[email protected]
  30. with:
  31. minimum-size: 8GB
  32. maximum-size: 32GB
  33. disk-root: "D:"
  34. - name: Tests
  35. run: |
  36. xmake --version
  37. xmake l ./scripts/test.lua -vD -a ${{ matrix.arch }} -k ${{ matrix.kind }} --runtimes=${{ matrix.runtimes }} --linkjobs=2