From a9a74120251687663e11c9fb6320b05d53e4e829 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Sat, 8 Jun 2024 17:58:44 +0800 Subject: [PATCH] Use macos-13 to compile for x64 [GitHub link #28] --- .github/workflows/macos.yml | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 9633232..af118bc 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -6,16 +6,38 @@ on: branches: [ "gh-pipeline" ] jobs: - build-and-upload: - + build-and-upload-on-M1: runs-on: macos-latest steps: - - name: Checkout repo 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: | make CI CI_Build_Name=chsrc-x64-macos