chsrc/.github/workflows/macos.yml

55 lines
1.1 KiB
YAML
Raw Normal View History

2023-09-15 16:35:13 +08:00
name: macOS Build
on:
push:
branches: [ "gh-pipeline" ]
pull_request:
branches: [ "gh-pipeline" ]
jobs:
build-and-upload-on-M1:
2023-09-15 16:35:13 +08:00
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
2023-09-15 16:35:13 +08:00
- name: List files
run: ls *-macos
- name: Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
2024-06-11 22:45:34 +08:00
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:
2023-09-15 16:35:13 +08:00
- name: Checkout repo
uses: actions/checkout@v3
- name: Compile chsrc for x64
2023-09-15 16:35:13 +08:00
run: |
2024-05-25 01:11:16 +08:00
make CI CI_Build_Name=chsrc-x64-macos
2023-09-15 16:35:13 +08:00
- name: List files
run: ls *-macos
- name: Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
2024-06-11 22:45:34 +08:00
tag_name: pre
2023-09-15 16:35:13 +08:00
files: |
chsrc-x64-macos
token: ${{ secrets.CHSRC_UPLOAD }}