-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (48 loc) · 1.37 KB
/
macos_x86_64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: macOS (x86_64)
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-12]
arch: [x86_64]
kind: [static, shared]
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-macOS-${{ matrix.arch }}-${{ matrix.kind }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Cache packages
id: cache-xmake-macosx
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.4
actions-cache-folder: '.xmake-cache'
actions-cache-key: 'macosx-x64'
- name: config
run: |
xmake f -c -k ${{ matrix.kind }} -y -vD --mo=y --mysql=n --http_client_zip=y --http_client_ssl=y
- name: build
run: |
xmake -bvD unit-test
- name: test
run: |
xmake r unit-test