mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-11-30 02:48:57 +08:00
47 lines
896 B
YAML
47 lines
896 B
YAML
name: win-build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [windows-2019, windows-2022]
|
|
arch: [x64] #, arm64]
|
|
|
|
concurrency:
|
|
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Windows-${{ matrix.os }}-${{ matrix.arch }}
|
|
cancel-in-progress: true
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: xmake-io/github-action-setup-xmake@v1
|
|
with:
|
|
xmake-version: 2.9.3
|
|
actions-cache-folder: '.xmake-cache'
|
|
actions-cache-key: 'windows'
|
|
|
|
- name: configure
|
|
shell: cmd
|
|
run: |
|
|
xmake f -c --feedback=n -y -vD
|
|
|
|
- name: build
|
|
shell: cmd
|
|
run: |
|
|
xmake -bvD small-test
|
|
|
|
- name: test
|
|
shell: cmd
|
|
run: |
|
|
xmake r small-test
|