hikyuu2/.github/workflows/windows.yml

47 lines
896 B
YAML
Raw Normal View History

2019-10-03 00:40:06 +08:00
name: win-build
2019-09-22 15:54:36 +08:00
2023-09-15 01:07:04 +08:00
on:
push:
branches:
- master
pull_request:
branches:
- master
2019-09-22 15:54:36 +08:00
jobs:
build:
2019-10-01 18:53:37 +08:00
runs-on: ${{ matrix.os }}
strategy:
matrix:
2023-07-29 01:05:16 +08:00
os: [windows-2019, windows-2022]
2023-07-29 01:18:08 +08:00
arch: [x64] #, arm64]
2023-07-29 01:05:16 +08:00
concurrency:
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Windows-${{ matrix.os }}-${{ matrix.arch }}
cancel-in-progress: true
2019-09-22 15:54:36 +08:00
steps:
2023-10-10 22:38:40 +08:00
- uses: actions/checkout@v4
2019-10-01 18:53:37 +08:00
- uses: xmake-io/github-action-setup-xmake@v1
2023-10-10 22:38:40 +08:00
with:
2024-08-08 10:36:05 +08:00
xmake-version: 2.9.3
actions-cache-folder: '.xmake-cache'
2024-08-08 11:08:16 +08:00
actions-cache-key: 'windows'
2023-10-10 22:38:40 +08:00
2023-10-10 22:42:07 +08:00
- name: configure
2021-04-03 16:50:53 +08:00
shell: cmd
2019-09-29 00:06:21 +08:00
run: |
2024-08-08 16:23:27 +08:00
xmake f -c --feedback=n -y -vD
2023-10-10 22:38:40 +08:00
2024-08-08 11:33:53 +08:00
- name: build
shell: cmd
run: |
xmake -bvD small-test
2023-10-10 22:38:40 +08:00
2024-08-08 16:23:27 +08:00
- name: test
shell: cmd
run: |
xmake r small-test