mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-28 15:32:46 +08:00
parent
f31d14a044
commit
a9a7412025
30
.github/workflows/macos.yml
vendored
30
.github/workflows/macos.yml
vendored
@ -6,16 +6,38 @@ on:
|
|||||||
branches: [ "gh-pipeline" ]
|
branches: [ "gh-pipeline" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-upload:
|
build-and-upload-on-M1:
|
||||||
|
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Compile chsrc x64
|
- name: Compile chsrc for AArch64
|
||||||
|
run: |
|
||||||
|
make CI CI_Build_Name=chsrc-aarch64-macos
|
||||||
|
|
||||||
|
- name: List files
|
||||||
|
run: ls *-macos
|
||||||
|
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
# if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
with:
|
||||||
|
tag_name: latest
|
||||||
|
files: |
|
||||||
|
chsrc-aarch64-macos
|
||||||
|
token: ${{ secrets.CHSRC_UPLOAD }}
|
||||||
|
|
||||||
|
|
||||||
|
build-and-upload-on-x64:
|
||||||
|
runs-on: macos-13 # macos-14 is AArch64(ARMv8-A)
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Compile chsrc for x64
|
||||||
run: |
|
run: |
|
||||||
make CI CI_Build_Name=chsrc-x64-macos
|
make CI CI_Build_Name=chsrc-x64-macos
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user