Skip to content

Commit 1149fac

Browse files
committed
improve macos ci
1 parent d03a7b7 commit 1149fac

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

.github/workflows/macos_arm64.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: macOS (arm64)
2+
3+
on:
4+
pull_request:
5+
push:
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
build:
11+
12+
strategy:
13+
matrix:
14+
os: [macos-14]
15+
arch: [arm64]
16+
17+
runs-on: ${{ matrix.os }}
18+
19+
concurrency:
20+
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-macOS-${{ matrix.arch }}
21+
cancel-in-progress: true
22+
steps:
23+
- uses: actions/checkout@v2
24+
with:
25+
fetch-depth: 0
26+
submodules: true
27+
- name: Prepare local xmake
28+
run: cp -rf . ../xmake-source
29+
- uses: xmake-io/github-action-setup-xmake@v1
30+
with:
31+
xmake-version: local#../xmake-source
32+
33+
- name: Installation
34+
run: |
35+
brew install dmd
36+
brew install dub
37+
38+
- name: Tests
39+
run: |
40+
xmake lua -v -D tests/run.lua
41+
xrepo --version
42+

.github/workflows/macos.yml .github/workflows/macos_x86_64.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: macOS
1+
name: macOS (x86_64)
22

33
on:
44
pull_request:
@@ -11,8 +11,8 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
os: [macOS-latest]
15-
arch: [x86_64, arm64]
14+
os: [macos-12]
15+
arch: [x86_64]
1616

1717
runs-on: ${{ matrix.os }}
1818

0 commit comments

Comments
 (0)