2024-08-21 15:00:52 +08:00
|
|
|
name: macOS_x86_64
|
2024-08-21 13:54:09 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-08-21 14:16:05 +08:00
|
|
|
- master
|
2024-08-21 13:54:09 +08:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2024-08-21 14:16:05 +08:00
|
|
|
- master
|
2024-08-21 13:54:09 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [macos-12]
|
2024-08-21 14:49:24 +08:00
|
|
|
arch: [x86_64]
|
2024-08-21 13:54:09 +08:00
|
|
|
kind: [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 --mysql=n --hdf5=n
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
run: |
|
|
|
|
xmake -bvD core
|