-
-
Notifications
You must be signed in to change notification settings - Fork 166
54 lines (43 loc) · 1.12 KB
/
macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: macOS Build
on:
push:
branches: [ "gh-pipeline" ]
pull_request:
branches: [ "gh-pipeline" ]
jobs:
build-and-upload-on-M1:
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- 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: pre
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: |
make CI CI_Build_Name=chsrc-x64-macos
- name: List files
run: ls *-macos
- name: Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: pre
files: |
chsrc-x64-macos
token: ${{ secrets.CHSRC_UPLOAD }}