Skip to content

Commit

Permalink
improve macos ci
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Mar 2, 2024
1 parent d03a7b7 commit 1149fac
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/macos_arm64.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: macOS
name: macOS (x86_64)

on:
pull_request:
Expand All @@ -11,8 +11,8 @@ jobs:

strategy:
matrix:
os: [macOS-latest]
arch: [x86_64, arm64]
os: [macos-12]
arch: [x86_64]

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

Expand Down

0 comments on commit 1149fac

Please sign in to comment.