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

Commit 6bc7c84

Browse files
authored
Change from github hotsted to macos selfhosted (#926)
Co-authored-by: Hien To <tominhhien97@gmail.com>
1 parent 5dc16c6 commit 6bc7c84

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/cortex-build.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI Cortex Release
22

33
on:
44
push:
5-
tags: ["v[0-9]+.[0-9]+.[0-9]+", "v[0-9]+.[0-9]+.[0-9]+-*"]
5+
tags: ["v[0-9]+.[0-9]+.[0-9]+", "v[0-9]+.[0-9]+.[0-9]+-*", "!v[0-9]+.[0-9]+.[0-9]+-cortex-js"]
66
paths: ["cortex-cpp/**", "cortex-js/**"]
77
workflow_dispatch:
88

@@ -234,7 +234,7 @@ jobs:
234234

235235
- os: "mac"
236236
name: "amd64"
237-
runs-on: "macos-13"
237+
runs-on: "macos-desktop"
238238

239239
- os: "mac"
240240
name: "arm64"
@@ -279,6 +279,7 @@ jobs:
279279
registry-url: "https://registry.npmjs.org"
280280

281281
- uses: actions/setup-python@v3
282+
if: runner.os != 'macOS'
282283
with:
283284
python-version: "3.10"
284285

@@ -487,8 +488,9 @@ jobs:
487488
- name: Get release notes
488489
id: release_notes
489490
run: |
490-
RELEASE_NOTES=$(curl -s -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' https://api.github.com/repos/${{ github.repository }}/releases/tags/${VERSION} | jq -r '.body')
491+
RELEASE_NOTES="cortex update to version ${{ needs.create-draft-release.outputs.version }}"
491492
echo "RELEASE_NOTES=${RELEASE_NOTES}" >> $GITHUB_ENV
493+
492494
- name: Update change log
493495
run: |
494496
sed -i "s/VERSION/${{ needs.create-draft-release.outputs.version }}/g" package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/debian/changelog
@@ -501,6 +503,6 @@ jobs:
501503
cd package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}
502504
echo "y" | debuild -S -sa -k${{ secrets.HOMEBREW_GPG_FINGERPRINT }}
503505
sudo pbuilder create --distribution jammy --debootstrapopts --variant=buildd
504-
sudo sudo pbuilder build ../cortexso_${{ needs.create-draft-release.outputs.version }}.dsc
505-
dput ppa:cortexlabs/cortex ../cortexso_${{ needs.create-draft-release.outputs.version }}_source.changes
506+
sudo pbuilder build ../cortexso_${{ needs.create-draft-release.outputs.version }}.dsc
507+
dput ppa:homebrew-computer/main ../cortexso_${{ needs.create-draft-release.outputs.version }}_source.changes
506508
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
cortexso (VERSION) jammy; urgency=low
22

3-
CHANGELOG_HERE
3+
* CHANGELOG_HERE
44

55
-- Homebrew Computer Pte Ltd <service@homebrew.ltd> TIME_HERE
66

77
cortexso (VERSION) noble; urgency=low
88

9-
CHANGELOG_HERE
9+
* CHANGELOG_HERE
1010

1111
-- Homebrew Computer Pte Ltd <service@homebrew.ltd> TIME_HERE

0 commit comments

Comments
 (0)