summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-03-02 21:56:21 +0800
committerruki <[email protected]>2024-03-02 21:56:21 +0800
commit1149faca5a0e05bd92a91715fe7200d91e4333b6 (patch)
treedc5ae0bcef2d7fe5ebb14c2bef1b2013a0cebf07
parentd03a7b7f53b53e89b10ba6ddf45029e8d3696b3a (diff)
improve macos ci
-rw-r--r--.github/workflows/macos_arm64.yml42
-rw-r--r--.github/workflows/macos_x86_64.yml (renamed from .github/workflows/macos.yml)6
2 files changed, 45 insertions, 3 deletions
diff --git a/.github/workflows/macos_arm64.yml b/.github/workflows/macos_arm64.yml
new file mode 100644
index 000000000..ac0ac0364
--- /dev/null
+++ b/.github/workflows/macos_arm64.yml
@@ -0,0 +1,42 @@
+name: macOS (arm64)
+
+on:
+ pull_request:
+ push:
+ release:
+ types: [published]
+
+jobs:
+ build:
+
+ strategy:
+ matrix:
+ os: [macos-14]
+ arch: [arm64]
+
+ runs-on: ${{ matrix.os }}
+
+ concurrency:
+ group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-macOS-${{ matrix.arch }}
+ cancel-in-progress: true
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ submodules: true
+ - name: Prepare local xmake
+ run: cp -rf . ../xmake-source
+ - uses: xmake-io/github-action-setup-xmake@v1
+ with:
+ xmake-version: local#../xmake-source
+
+ - name: Installation
+ run: |
+ brew install dmd
+ brew install dub
+
+ - name: Tests
+ run: |
+ xmake lua -v -D tests/run.lua
+ xrepo --version
+
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos_x86_64.yml
index ede2c1ea3..b2abd0f88 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos_x86_64.yml
@@ -1,4 +1,4 @@
-name: macOS
+name: macOS (x86_64)
on:
pull_request:
@@ -11,8 +11,8 @@ jobs:
strategy:
matrix:
- os: [macOS-latest]
- arch: [x86_64, arm64]
+ os: [macos-12]
+ arch: [x86_64]
runs-on: ${{ matrix.os }}