Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 93c242c

Browse files
committed
Add noti discord for nightly channel
1 parent 3c144c1 commit 93c242c

File tree

9 files changed

+83
-30
lines changed

9 files changed

+83
-30
lines changed

.github/workflows/beta-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
public_provider: github
4343
new_version: ${{ needs.get-update-version.outputs.new_version }}
4444
runs-on: macos-12
45-
cmake-flags: "-DCORTEX_VARIANT=beta -DCORTEX_CPP_VERSION=${{ needs.get-update-version.outputs.new_version }} -DCMAKE_TOOLCHAIN_FILE=/Users/runner/work/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake"
45+
cmake-flags: "-DCORTEX_VARIANT=beta -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"
4646
channel: beta
4747
arch: amd64
4848
upload_url: ${{ needs.create-draft-release.outputs.upload_url }}
@@ -56,7 +56,7 @@ jobs:
5656
public_provider: github
5757
new_version: ${{ needs.get-update-version.outputs.new_version }}
5858
runs-on: macos-latest
59-
cmake-flags: "-DCORTEX_VARIANT=beta -DCORTEX_CPP_VERSION=${{ 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"
59+
cmake-flags: "-DCORTEX_VARIANT=beta -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"
6060
channel: beta
6161
arch: arm64
6262
upload_url: ${{ needs.create-draft-release.outputs.upload_url }}
@@ -70,7 +70,7 @@ jobs:
7070
public_provider: github
7171
new_version: ${{ needs.get-update-version.outputs.new_version }}
7272
runs-on: windows-cuda-11-7
73-
cmake-flags: "-DCORTEX_VARIANT=beta -DCORTEX_CPP_VERSION=${{ needs.get-update-version.outputs.new_version }} -DBUILD_SHARED_LIBS=OFF -DCMAKE_TOOLCHAIN_FILE=C:/w/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -GNinja"
73+
cmake-flags: "-DCORTEX_VARIANT=beta -DCORTEX_CPP_VERSION='v${{ needs.get-update-version.outputs.new_version }}' -DBUILD_SHARED_LIBS=OFF -DCMAKE_TOOLCHAIN_FILE=C:/w/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -GNinja"
7474
build-deps-cmake-flags: "-DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -GNinja"
7575
ccache-dir: 'C:\Users\ContainerAdministrator\AppData\Local\ccache'
7676
channel: beta
@@ -85,7 +85,7 @@ jobs:
8585
public_provider: github
8686
new_version: ${{ needs.get-update-version.outputs.new_version }}
8787
runs-on: ubuntu-20-04
88-
cmake-flags: "-DCORTEX_VARIANT=beta -DCORTEX_CPP_VERSION=${{ needs.get-update-version.outputs.new_version }} -DCMAKE_TOOLCHAIN_FILE=/home/runner/actions-runner/_work/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake"
88+
cmake-flags: "-DCORTEX_VARIANT=beta -DCORTEX_CPP_VERSION='v${{ needs.get-update-version.outputs.new_version }}' -DCMAKE_TOOLCHAIN_FILE=/home/runner/actions-runner/_work/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake"
8989
channel: beta
9090
upload_url: ${{ needs.create-draft-release.outputs.upload_url }}
9191

.github/workflows/cortex-cpp-quality-gate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- name: Pre-package
8383
run: |
8484
cd engine
85-
make pre-package
85+
make pre-package DESTINATION_BINARY_NAME="cortex"
8686
8787
- name: Package
8888
run: |

.github/workflows/nightly-build.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
public_provider: ${{ needs.set-public-provider.outputs.public_provider }}
5353
new_version: ${{ needs.get-update-version.outputs.new_version }}
5454
runs-on: macos-12
55-
cmake-flags: "-DCORTEX_VARIANT=nightly -DCORTEX_CPP_VERSION=${{ needs.get-update-version.outputs.new_version }} -DCMAKE_TOOLCHAIN_FILE=/Users/runner/work/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake"
55+
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"
5656
channel: nightly
5757
arch: amd64
5858

@@ -65,7 +65,7 @@ jobs:
6565
public_provider: ${{ needs.set-public-provider.outputs.public_provider }}
6666
new_version: ${{ needs.get-update-version.outputs.new_version }}
6767
runs-on: macos-latest
68-
cmake-flags: "-DCORTEX_VARIANT=nightly -DCORTEX_CPP_VERSION=${{ 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"
68+
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"
6969
channel: nightly
7070
arch: arm64
7171

@@ -78,7 +78,7 @@ jobs:
7878
public_provider: ${{ needs.set-public-provider.outputs.public_provider }}
7979
new_version: ${{ needs.get-update-version.outputs.new_version }}
8080
runs-on: windows-cuda-11-7
81-
cmake-flags: "-DCORTEX_VARIANT=nightly -DCORTEX_CPP_VERSION=${{ needs.get-update-version.outputs.new_version }} -DBUILD_SHARED_LIBS=OFF -DCMAKE_TOOLCHAIN_FILE=C:/w/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -GNinja"
81+
cmake-flags: "-DCORTEX_VARIANT=nightly -DCORTEX_CPP_VERSION='v${{ needs.get-update-version.outputs.new_version }}' -DBUILD_SHARED_LIBS=OFF -DCMAKE_TOOLCHAIN_FILE=C:/w/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -GNinja"
8282
build-deps-cmake-flags: "-DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -GNinja"
8383
ccache-dir: 'C:\Users\ContainerAdministrator\AppData\Local\ccache'
8484
channel: nightly
@@ -92,7 +92,7 @@ jobs:
9292
public_provider: ${{ needs.set-public-provider.outputs.public_provider }}
9393
new_version: ${{ needs.get-update-version.outputs.new_version }}
9494
runs-on: ubuntu-20-04
95-
cmake-flags: "-DCORTEX_VARIANT=nightly -DCORTEX_CPP_VERSION=${{ needs.get-update-version.outputs.new_version }} -DCMAKE_TOOLCHAIN_FILE=/home/runner/actions-runner/_work/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake"
95+
cmake-flags: "-DCORTEX_VARIANT=nightly -DCORTEX_CPP_VERSION='v${{ needs.get-update-version.outputs.new_version }}' -DCMAKE_TOOLCHAIN_FILE=/home/runner/actions-runner/_work/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake"
9696
channel: nightly
9797

9898
update-latest-version:
@@ -102,10 +102,28 @@ jobs:
102102
- name: Update latest version
103103
id: update-latest-version
104104
run: |
105-
echo "{\"tag_name\": \"${{ needs.get-update-version.outputs.new_version }}\"}" > version.json
105+
echo "{\"tag_name\": \"v${{ needs.get-update-version.outputs.new_version }}\"}" > version.json
106106
aws s3 cp version.json s3://${{ secrets.DELTA_AWS_S3_BUCKET_NAME }}/cortex/latest/version.json
107107
env:
108108
AWS_ACCESS_KEY_ID: ${{ secrets.DELTA_AWS_ACCESS_KEY_ID }}
109109
AWS_SECRET_ACCESS_KEY: ${{ secrets.DELTA_AWS_SECRET_ACCESS_KEY }}
110110
AWS_DEFAULT_REGION: ${{ secrets.DELTA_AWS_REGION }}
111-
AWS_EC2_METADATA_DISABLED: "true"
111+
AWS_EC2_METADATA_DISABLED: "true"
112+
113+
noti-discord-nightly-and-update-url-readme:
114+
needs: [build-macos-x64, build-macos-arm64, build-windows-x64, build-linux-x64, get-update-version, set-public-provider]
115+
secrets: inherit
116+
if: github.event_name == 'schedule'
117+
uses: ./.github/workflows/template-noti-discord.yaml
118+
with:
119+
build_reason: Nightly
120+
new_version: ${{ needs.get-update-version.outputs.new_version }}
121+
122+
noti-discord-manual:
123+
needs: [build-macos-x64, build-macos-arm64, build-windows-x64, build-linux-x64, get-update-version, set-public-provider]
124+
secrets: inherit
125+
if: github.event_name == 'workflow_dispatch' && github.event.inputs.public_provider == 'aws-s3'
126+
uses: ./.github/workflows/template-noti-discord.yaml
127+
with:
128+
build_reason: Manual
129+
new_version: ${{ needs.get-update-version.outputs.new_version }}

.github/workflows/stable-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
public_provider: github
4343
new_version: ${{ needs.get-update-version.outputs.new_version }}
4444
runs-on: macos-12
45-
cmake-flags: "-DCORTEX_VARIANT=prod -DCORTEX_CPP_VERSION=${{ needs.get-update-version.outputs.new_version }} -DCMAKE_TOOLCHAIN_FILE=/Users/runner/work/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake"
45+
cmake-flags: "-DCORTEX_VARIANT=prod -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"
4646
channel: stable
4747
arch: amd64
4848
upload_url: ${{ needs.create-draft-release.outputs.upload_url }}
@@ -56,7 +56,7 @@ jobs:
5656
public_provider: github
5757
new_version: ${{ needs.get-update-version.outputs.new_version }}
5858
runs-on: macos-latest
59-
cmake-flags: "-DCORTEX_VARIANT=prod -DCORTEX_CPP_VERSION=${{ 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"
59+
cmake-flags: "-DCORTEX_VARIANT=prod -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"
6060
channel: stable
6161
arch: arm64
6262
upload_url: ${{ needs.create-draft-release.outputs.upload_url }}
@@ -70,7 +70,7 @@ jobs:
7070
public_provider: github
7171
new_version: ${{ needs.get-update-version.outputs.new_version }}
7272
runs-on: windows-cuda-11-7
73-
cmake-flags: "-DCORTEX_VARIANT=prod -DCORTEX_CPP_VERSION=${{ needs.get-update-version.outputs.new_version }} -DBUILD_SHARED_LIBS=OFF -DCMAKE_TOOLCHAIN_FILE=C:/w/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -GNinja"
73+
cmake-flags: "-DCORTEX_VARIANT=prod -DCORTEX_CPP_VERSION='v${{ needs.get-update-version.outputs.new_version }}' -DBUILD_SHARED_LIBS=OFF -DCMAKE_TOOLCHAIN_FILE=C:/w/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -GNinja"
7474
build-deps-cmake-flags: "-DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -GNinja"
7575
ccache-dir: 'C:\Users\ContainerAdministrator\AppData\Local\ccache'
7676
channel: stable
@@ -85,7 +85,7 @@ jobs:
8585
public_provider: github
8686
new_version: ${{ needs.get-update-version.outputs.new_version }}
8787
runs-on: ubuntu-20-04
88-
cmake-flags: "-DCORTEX_VARIANT=prod -DCORTEX_CPP_VERSION=${{ needs.get-update-version.outputs.new_version }} -DCMAKE_TOOLCHAIN_FILE=/home/runner/actions-runner/_work/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake"
88+
cmake-flags: "-DCORTEX_VARIANT=prod -DCORTEX_CPP_VERSION='v${{ needs.get-update-version.outputs.new_version }}' -DCMAKE_TOOLCHAIN_FILE=/home/runner/actions-runner/_work/cortex.cpp/cortex.cpp/engine/vcpkg/scripts/buildsystems/vcpkg.cmake"
8989
channel: stable
9090
upload_url: ${{ needs.create-draft-release.outputs.upload_url }}
9191

.github/workflows/template-build-linux-x64.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ jobs:
126126
- name: Pre-package
127127
run: |
128128
cd engine
129-
make pre-package
129+
make pre-package DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}"
130130
131131
- name: Build Installers
132132
shell: bash
133133
run: |
134134
cd engine
135-
make build-installer PACKAGE_NAME="${{ steps.set-output-params.outputs.package_name }}" VERSION=${{ inputs.new_version }} DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}" DATA_FOLDER_NAME="${{ steps.set-output-params.outputs.data_folder_name }}" CONFIGURATION_FILE_NAME="${{ steps.set-output-params.outputs.configuration_file_name }}" UNINSTALLER_FILE_NAME="${{ steps.set-output-params.outputs.uninstaller_file_name }}"
135+
make build-installer PACKAGE_NAME="${{ steps.set-output-params.outputs.package_name }}" SOURCE_BINARY_PATH="../../cortex/${{ steps.set-output-params.outputs.destination_binary_name }}" VERSION=${{ inputs.new_version }} DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}" DATA_FOLDER_NAME="${{ steps.set-output-params.outputs.data_folder_name }}" CONFIGURATION_FILE_NAME="${{ steps.set-output-params.outputs.configuration_file_name }}" UNINSTALLER_FILE_NAME="${{ steps.set-output-params.outputs.uninstaller_file_name }}"
136136
137137
- name: Package
138138
run: |

.github/workflows/template-build-macos.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,19 +151,19 @@ jobs:
151151
- name: Pre-package
152152
run: |
153153
cd engine
154-
make pre-package
154+
make pre-package DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}"
155155
156156
- name: Code Signing binaries
157157
run: |
158158
cd engine
159-
make codesign-binary CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}"
159+
make codesign-binary CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}" DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}"
160160
161161
- name: Notary macOS Binary
162162
run: |
163163
curl -sSfL https://raw.githubusercontent.com/anchore/quill/main/install.sh | sh -s -- -b /usr/local/bin
164164
cd engine/cortex
165165
# Notarize the binary
166-
quill notarize ./cortex
166+
quill notarize ./${{ steps.set-output-params.outputs.destination_binary_name }}
167167
env:
168168
QUILL_NOTARY_KEY_ID: ${{ secrets.NOTARY_KEY_ID }}
169169
QUILL_NOTARY_ISSUER: ${{ secrets.NOTARY_ISSUER }}
@@ -173,7 +173,7 @@ jobs:
173173
shell: bash
174174
run: |
175175
cd engine
176-
make build-installer PACKAGE_NAME="${{ steps.set-output-params.outputs.package_name }}" VERSION=${{ inputs.new_version }} DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}" DATA_FOLDER_NAME="${{ steps.set-output-params.outputs.data_folder_name }}" CONFIGURATION_FILE_NAME="${{ steps.set-output-params.outputs.configuration_file_name }}" UNINSTALLER_FILE_NAME="${{ steps.set-output-params.outputs.uninstaller_file_name }}"
176+
make build-installer PACKAGE_NAME="${{ steps.set-output-params.outputs.package_name }}" VERSION=${{ inputs.new_version }} SOURCE_BINARY_PATH="../../cortex/${{ steps.set-output-params.outputs.destination_binary_name }}" DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}" DATA_FOLDER_NAME="${{ steps.set-output-params.outputs.data_folder_name }}" CONFIGURATION_FILE_NAME="${{ steps.set-output-params.outputs.configuration_file_name }}" UNINSTALLER_FILE_NAME="${{ steps.set-output-params.outputs.uninstaller_file_name }}"
177177
178178
- name: Codesign and notary for macos installer
179179
run: |

.github/workflows/template-build-windows-x64.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ jobs:
159159
- name: Pre-package
160160
run: |
161161
cd engine
162-
make pre-package
162+
make pre-package DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}"
163163
164164
- name: Code Signing binaries
165165
run: |
166166
cd engine
167-
make codesign-binary AZURE_KEY_VAULT_URI="${{ secrets.AZURE_KEY_VAULT_URI }}" AZURE_CLIENT_ID="${{ secrets.AZURE_CLIENT_ID }}" AZURE_TENANT_ID="${{ secrets.AZURE_TENANT_ID }}" AZURE_CLIENT_SECRET="${{ secrets.AZURE_CLIENT_SECRET }}" AZURE_CERT_NAME="${{ secrets.AZURE_CERT_NAME }}"
167+
make codesign-binary DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}" AZURE_KEY_VAULT_URI="${{ secrets.AZURE_KEY_VAULT_URI }}" AZURE_CLIENT_ID="${{ secrets.AZURE_CLIENT_ID }}" AZURE_TENANT_ID="${{ secrets.AZURE_TENANT_ID }}" AZURE_CLIENT_SECRET="${{ secrets.AZURE_CLIENT_SECRET }}" AZURE_CERT_NAME="${{ secrets.AZURE_CERT_NAME }}"
168168
169169
- name: Update version in installer.iss using sed
170170
shell: bash
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: noti-discord
2+
on:
3+
workflow_call:
4+
inputs:
5+
build_reason:
6+
required: true
7+
type: string
8+
default: 'Nightly'
9+
new_version:
10+
required: true
11+
type: string
12+
default: ''
13+
14+
jobs:
15+
noti-discord:
16+
environment: production
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
steps:
21+
- name: Set version to environment variable
22+
run: |
23+
echo "VERSION=${{ inputs.new_version }}" >> $GITHUB_ENV
24+
25+
- name: Notify Discord
26+
uses: Ilshidur/action-discord@master
27+
with:
28+
args: |
29+
Cortex.cpp ${{ inputs.build_reason }} build artifact version {{ VERSION }}:
30+
- Windows: https://delta.jan.ai/cortex/{{ VERSION }}/windows-amd64/cortex-{{ VERSION }}-windows-amd64-installer.exe
31+
- macOS Intel: https://delta.jan.ai/cortex/{{ VERSION }}/mac-amd64/cortex-{{ VERSION }}-mac-amd64-installer.pkg
32+
- macOS Apple Silicon: https://delta.jan.ai/cortex/{{ VERSION }}/mac-arm64/cortex-{{ VERSION }}-mac-amd64-installer.pkg
33+
- Linux Deb: https://delta.jan.ai/cortex/{{ VERSION }}/linux-amd64/cortex-{{ VERSION }}-linux-amd64-installer.deb
34+
- Github action run: https://github.com/janhq/cortex.cpp/actions/runs/{{ GITHUB_RUN_ID }}
35+
env:
36+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}

0 commit comments

Comments
 (0)