From db88021ad6580ee2372cd56cc2df3a64d6e71960 Mon Sep 17 00:00:00 2001 From: fasiondog Date: Tue, 13 Aug 2024 20:58:03 +0800 Subject: [PATCH] try win arm64 --- .github/workflows/windows_arm64.yml | 59 +++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/windows_arm64.yml diff --git a/.github/workflows/windows_arm64.yml b/.github/workflows/windows_arm64.yml new file mode 100644 index 0000000..2ca405d --- /dev/null +++ b/.github/workflows/windows_arm64.yml @@ -0,0 +1,59 @@ +name: win-build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [windows-2019, windows-2022] + arch: [arm64] + kind: [static, shared] + + concurrency: + group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Windows-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.kind }} + cancel-in-progress: true + + steps: + - uses: actions/checkout@v4 + + - name: Cache packages + id: cache-xmake-windows + uses: actions/cache@v4 + env: + cache-name: cache-node-modules + with: + path: ~/.xmake + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + + - uses: xmake-io/github-action-setup-xmake@v1 + with: + xmake-version: 2.9.3 + actions-cache-folder: '.xmake-cache' + + - name: configure + shell: cmd + run: | + xmake f -c -a ${{ matrix.arch }} -k ${{ matrix.kind }} -y -vD --mo=y --mysql=y --http_client_zip=y --http_client_ssl=n + + - name: build + shell: cmd + run: | + xmake -b unit-test + + # - name: test + # run: | + # xmake r unit-test +