mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-11-30 02:48:57 +08:00
update
This commit is contained in:
parent
89b492ed79
commit
5f13c8b840
53
.github/workflows/macos_arm64.yml
vendored
Normal file
53
.github/workflows/macos_arm64.yml
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
name: macOS (x86_64)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-14]
|
||||
arch: [arm64]
|
||||
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-arm64'
|
||||
|
||||
- name: config
|
||||
run: |
|
||||
xmake f -c -k ${{ matrix.kind }} -y -vD --mysql=n --hdf5=n
|
||||
|
||||
- name: build
|
||||
run: |
|
||||
xmake -bvD core
|
@ -14,7 +14,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-12]
|
||||
arch: [x86_64, arm64]
|
||||
arch: [x86_64]
|
||||
kind: [shared]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
@ -33,7 +33,7 @@ target("core")
|
||||
add_includedirs("../hikyuu_cpp")
|
||||
add_files("./**.cpp")
|
||||
|
||||
add_rpathdirs("$ORIGIN", "$ORIGIN/lib", "$ORIGIN/../lib")
|
||||
add_rpathdirs("$ORIGIN")
|
||||
|
||||
on_load("windows", "linux", "macosx", function(target)
|
||||
import("lib.detect.find_tool")
|
||||
|
Loading…
Reference in New Issue
Block a user