forked from FISCO-BCOS/FISCO-BCOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bee4dda
commit 3b956eb
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: macos x86 release Actions | ||
on: | ||
push: | ||
tags-ignore: | ||
- v1.* | ||
pull_request: | ||
paths-ignore: | ||
- "docs/**" | ||
- "Changelog.md" | ||
- "README.md" | ||
release: | ||
types: [published, created, edited] | ||
|
||
jobs: | ||
compile_macOS_release: | ||
name: macos x86 release Actions | ||
runs-on: macos-13 | ||
# if: startsWith(github.ref,'v2') | ||
steps: | ||
- uses: actions/checkout@v4 | ||
repository: FISCO-BCOS/FISCO-BCOS | ||
ref: master-2.0 | ||
with: | ||
fetch-depth: 5 | ||
- name: install macOS dependencies | ||
if: runner.os == 'macOS' | ||
run: brew install openssl | ||
- name: configure | ||
run: cmake . | ||
- name: compile | ||
run: make -j2 | ||
- name: prepare artifact | ||
run: cd bin/ && strip fisco-bcos && tar -zcf fisco-bcos-macOS-x86.tar.gz fisco-bcos | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: fisco-bcos-macOS-x86.tar.gz | ||
path: bin/fisco-bcos-macOS-x86.tar.gz |