@@ -46,32 +46,16 @@ jobs:
4646 get-cortex-llamacpp-latest-version :
4747 uses : ./.github/workflows/template-cortex-llamacpp-latest-version.yml
4848
49- build-macos-x64 :
49+ build-macos :
5050 uses : ./.github/workflows/template-build-macos.yml
5151 needs : [get-update-version, set-public-provider, get-cortex-llamacpp-latest-version]
5252 secrets : inherit
5353 with :
5454 ref : ${{ needs.set-public-provider.outputs.ref }}
5555 public_provider : ${{ needs.set-public-provider.outputs.public_provider }}
5656 new_version : ${{ needs.get-update-version.outputs.new_version }}
57- runs-on : macos-12
58- cmake-flags : " -DCORTEX_VARIANT=nightly -DCORTEX_CPP_VERSION='v${{ needs.get-update-version.outputs.new_version }}' -DCMAKE_TOOLCHAIN_FILE=/Users/runner/work/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake"
57+ cmake-flags : " -DCORTEX_VARIANT=nightly -DCORTEX_CPP_VERSION='v${{ needs.get-update-version.outputs.new_version }}' -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake"
5958 channel : nightly
60- arch : amd64
61- cortex-llamacpp-version : ${{ needs.get-cortex-llamacpp-latest-version.outputs.cortex_llamacpp_latest_version }}
62-
63- build-macos-arm64 :
64- uses : ./.github/workflows/template-build-macos.yml
65- needs : [get-update-version, set-public-provider, get-cortex-llamacpp-latest-version]
66- secrets : inherit
67- with :
68- ref : ${{ needs.set-public-provider.outputs.ref }}
69- public_provider : ${{ needs.set-public-provider.outputs.public_provider }}
70- new_version : ${{ needs.get-update-version.outputs.new_version }}
71- runs-on : macos-latest
72- cmake-flags : " -DCORTEX_VARIANT=nightly -DCORTEX_CPP_VERSION='v${{ needs.get-update-version.outputs.new_version }}' -DMAC_ARM64=ON -DCMAKE_TOOLCHAIN_FILE=/Users/runner/work/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake"
73- channel : nightly
74- arch : arm64
7559 cortex-llamacpp-version : ${{ needs.get-cortex-llamacpp-latest-version.outputs.cortex_llamacpp_latest_version }}
7660
7761 build-windows-x64 :
@@ -105,15 +89,16 @@ jobs:
10589 update-latest-version :
10690 runs-on : ubuntu-latest
10791 if : needs.set-public-provider.outputs.public_provider == 'aws-s3'
108- needs : [get-update-version, set-public-provider, build-linux-x64, build-macos-x64, build-macos-arm64 , build-windows-x64, get-cortex-llamacpp-latest-version]
92+ needs : [get-update-version, set-public-provider, build-linux-x64, build-macos, build-windows-x64, get-cortex-llamacpp-latest-version]
10993 steps :
11094 - name : Update latest version
11195 id : update-latest-version
11296 run : |
11397 echo "{\"tag_name\": \"v${{ needs.get-update-version.outputs.new_version }}\"}" > version.json
11498 aws s3 cp version.json s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/latest/version.json
115- aws s3 cp s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/temp-latest/mac-amd64-cortex-nightly.tar.gz s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/latest/mac-amd64/cortex-nightly.tar.gz
116- aws s3 cp s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/temp-latest/mac-arm64-cortex-nightly.tar.gz s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/latest/mac-arm64/cortex-nightly.tar.gz
99+ aws s3 cp s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/temp-latest/mac-universal-cortex-nightly.tar.gz s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/latest/mac-amd64/cortex-nightly.tar.gz
100+ aws s3 cp s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/temp-latest/mac-universal-cortex-nightly.tar.gz s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/latest/mac-arm64/cortex-nightly.tar.gz
101+ aws s3 cp s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/temp-latest/mac-universal-cortex-nightly.tar.gz s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/latest/mac-universal/cortex-nightly.tar.gz
117102 aws s3 cp s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/temp-latest/linux-amd64-cortex-nightly.tar.gz s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/latest/linux-amd64/cortex-nightly.tar.gz
118103 aws s3 cp s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/temp-latest/windows-amd64-cortex-nightly.tar.gz s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/latest/windows-amd64/cortex-nightly.tar.gz
119104
@@ -124,7 +109,7 @@ jobs:
124109 AWS_EC2_METADATA_DISABLED : " true"
125110
126111 noti-discord-nightly-and-update-url-readme :
127- needs : [build-macos-x64, build-macos-arm64 , build-windows-x64, build-linux-x64, get-update-version, set-public-provider, get-cortex-llamacpp-latest-version, update-latest-version]
112+ needs : [build-macos, build-windows-x64, build-linux-x64, get-update-version, set-public-provider, get-cortex-llamacpp-latest-version, update-latest-version]
128113 secrets : inherit
129114 if : github.event_name == 'schedule'
130115 uses : ./.github/workflows/template-noti-discord.yaml
@@ -133,7 +118,7 @@ jobs:
133118 new_version : ${{ needs.get-update-version.outputs.new_version }}
134119
135120 noti-discord-manual :
136- needs : [build-macos-x64, build-macos-arm64 , build-windows-x64, build-linux-x64, get-update-version, set-public-provider, get-cortex-llamacpp-latest-version]
121+ needs : [build-macos, build-windows-x64, build-linux-x64, get-update-version, set-public-provider, get-cortex-llamacpp-latest-version]
137122 secrets : inherit
138123 if : github.event_name == 'workflow_dispatch' && github.event.inputs.public_provider == 'aws-s3'
139124 uses : ./.github/workflows/template-noti-discord.yaml
0 commit comments