mirror of
https://github.com/MetaCubeX/subconverter.git
synced 2025-11-04 18:19:42 +08:00
Add macOS ARM build
This commit is contained in:
parent
4864a6b13c
commit
670544cfb1
34
.github/workflows/build.yml
vendored
34
.github/workflows/build.yml
vendored
@ -112,9 +112,9 @@ jobs:
|
|||||||
files: subconverter_aarch64.tar.gz
|
files: subconverter_aarch64.tar.gz
|
||||||
draft: true
|
draft: true
|
||||||
|
|
||||||
macos_build:
|
macos_x86_build:
|
||||||
name: macOS Build
|
name: macOS x86 Build
|
||||||
runs-on: macos-latest
|
runs-on: macos-13
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
@ -140,6 +140,34 @@ jobs:
|
|||||||
files: subconverter_darwin64.tar.gz
|
files: subconverter_darwin64.tar.gz
|
||||||
draft: true
|
draft: true
|
||||||
|
|
||||||
|
macos_arm_build:
|
||||||
|
name: macOS ARM Build
|
||||||
|
runs-on: macos-14
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.11'
|
||||||
|
- name: Add commit id into version
|
||||||
|
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
||||||
|
run: SHA=$(git rev-parse --short HEAD) && sed -i -e 's/\(v[0-9]\.[0-9]\.[0-9]\)/\1-'"$SHA"'/' src/version.h
|
||||||
|
- name: Build
|
||||||
|
run: bash scripts/build.macos.release.sh
|
||||||
|
- name: Upload
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: subconverter_darwinarm
|
||||||
|
path: subconverter/
|
||||||
|
- name: Package Release
|
||||||
|
if: ${{ github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/') }}
|
||||||
|
run: tar czf subconverter_darwinarm.tar.gz subconverter
|
||||||
|
- name: Draft Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
if: ${{ github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/') }}
|
||||||
|
with:
|
||||||
|
files: subconverter_darwinarm.tar.gz
|
||||||
|
draft: true
|
||||||
|
|
||||||
windows64_build:
|
windows64_build:
|
||||||
name: Windows x86_64 Build
|
name: Windows x86_64 Build
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user