Skip to content

Commit

Permalink
build for all darin targets
Browse files Browse the repository at this point in the history
  • Loading branch information
eycorsican committed May 6, 2024
1 parent 9870136 commit 7f6cfea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: test leaf
run: cargo test -p leaf

build-bin-cross:
build-cli-cross:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -86,14 +86,14 @@ jobs:
name: leaf-${{ matrix.target }}
path: leaf-${{ matrix.target }}

build-bin-local:
build-cli-macos:
runs-on: [macos-latest]
strategy:
fail-fast: false
matrix:
os: [macos-latest]
include:
- os: macos-latest
target: x86_64-apple-darwin
runs-on: ${{ matrix.os }}
target:
- aarch64-apple-darwin
- x86_64-apple-darwin
steps:
- name: checkout
uses: actions/checkout@v2
Expand All @@ -114,6 +114,10 @@ jobs:
run: |
brew install llvm protobuf
- name: install target
run: |
rustup target add ${{ matrix.target }}
- name: build
run: |
export CFG_COMMIT_HASH=`git log --pretty=format:'%h' -n 1`
Expand All @@ -130,7 +134,7 @@ jobs:
name: leaf-${{ matrix.target }}
path: leaf-${{ matrix.target }}

build-apple:
build-lib-apple:
runs-on: macos-latest
steps:
- name: checkout
Expand Down Expand Up @@ -163,7 +167,7 @@ jobs:
name: leaf.xcframework.zip
path: leaf.xcframework.zip

build-android:
build-lib-android:
runs-on: ubuntu-latest
steps:
- name: checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
os: [macos-latest]
include:
- os: macos-latest
target: x86_64-apple-darwin
target: aarch64-apple-darwin
runs-on: ${{ matrix.os }}
steps:
- name: checkout
Expand Down

0 comments on commit 7f6cfea

Please sign in to comment.