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'
|
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-04-11 11:47:07 +08:00
|
|
|
xmake f -c --feedback=n -k shared -y -vD
|
2023-10-10 22:38:40 +08:00
|
|
|
|
|
|
|
- name: build
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
2021-04-03 18:37:09 +08:00
|
|
|
xmake -b small-test
|
2023-10-10 22:38:40 +08:00
|
|
|
|
|
|
|
- name: test
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
2021-04-03 17:41:43 +08:00
|
|
|
xmake r small-test
|