mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-10 06:03:24 +08:00
Rename workflows and add headers
This commit is contained in:
65
.github/workflows/build-on-macOS.yml
vendored
Normal file
65
.github/workflows/build-on-macOS.yml
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
# ---------------------------------------------------------------
|
||||
# Workflow File : build-on-macOS.yml
|
||||
# File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
# Contributors : Nul None <nul@none.org>
|
||||
# |
|
||||
# Created On : <2023-09-15>
|
||||
# Last Modified : <2025-03-06>
|
||||
#
|
||||
# Build chsrc on macOS and upload it to GitHub: the 'pre' release
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
name: Build on macOS
|
||||
on:
|
||||
push:
|
||||
branches: [ "gh-build" ]
|
||||
pull_request:
|
||||
branches: [ "gh-build" ]
|
||||
|
||||
jobs:
|
||||
build-and-upload-on-M1:
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build for AArch64
|
||||
run: |
|
||||
make CI CI_ARTIFACT_NAME=chsrc-aarch64-macos
|
||||
|
||||
- name: List files
|
||||
run: ls *-macos
|
||||
|
||||
- name: Upload
|
||||
uses: softprops/action-gh-release@v1
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
tag_name: pre
|
||||
files: |
|
||||
chsrc-aarch64-macos
|
||||
token: ${{ secrets.UPLOAD_TO_GITHUB }}
|
||||
|
||||
|
||||
build-and-upload-on-x64:
|
||||
runs-on: macos-13 # macos-14 is AArch64(ARMv8-A)
|
||||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build for x64
|
||||
run: |
|
||||
make CI CI_ARTIFACT_NAME=chsrc-x64-macos
|
||||
|
||||
- name: List files
|
||||
run: ls *-macos
|
||||
|
||||
- name: Upload
|
||||
uses: softprops/action-gh-release@v1
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
tag_name: pre
|
||||
files: |
|
||||
chsrc-x64-macos
|
||||
token: ${{ secrets.UPLOAD_TO_GITHUB }}
|
Reference in New Issue
Block a user