Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change from github hotsted to macos selfhosted #926

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/cortex-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI Cortex Release

on:
push:
tags: ["v[0-9]+.[0-9]+.[0-9]+", "v[0-9]+.[0-9]+.[0-9]+-*"]
tags: ["v[0-9]+.[0-9]+.[0-9]+", "v[0-9]+.[0-9]+.[0-9]+-*", "!v[0-9]+.[0-9]+.[0-9]+-cortex-js"]
paths: ["cortex-cpp/**", "cortex-js/**"]
workflow_dispatch:

Expand Down Expand Up @@ -234,7 +234,7 @@ jobs:

- os: "mac"
name: "amd64"
runs-on: "macos-13"
runs-on: "macos-desktop"

- os: "mac"
name: "arm64"
Expand Down Expand Up @@ -279,6 +279,7 @@ jobs:
registry-url: "https://registry.npmjs.org"

- uses: actions/setup-python@v3
if: runner.os != 'macOS'
with:
python-version: "3.10"

Expand Down Expand Up @@ -487,8 +488,9 @@ jobs:
- name: Get release notes
id: release_notes
run: |
RELEASE_NOTES=$(curl -s -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' https://api.github.com/repos/${{ github.repository }}/releases/tags/${VERSION} | jq -r '.body')
RELEASE_NOTES="cortex update to version ${{ needs.create-draft-release.outputs.version }}"
echo "RELEASE_NOTES=${RELEASE_NOTES}" >> $GITHUB_ENV

- name: Update change log
run: |
sed -i "s/VERSION/${{ needs.create-draft-release.outputs.version }}/g" package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/debian/changelog
Expand All @@ -501,6 +503,6 @@ jobs:
cd package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}
echo "y" | debuild -S -sa -k${{ secrets.HOMEBREW_GPG_FINGERPRINT }}
sudo pbuilder create --distribution jammy --debootstrapopts --variant=buildd
sudo sudo pbuilder build ../cortexso_${{ needs.create-draft-release.outputs.version }}.dsc
dput ppa:cortexlabs/cortex ../cortexso_${{ needs.create-draft-release.outputs.version }}_source.changes
sudo pbuilder build ../cortexso_${{ needs.create-draft-release.outputs.version }}.dsc
dput ppa:homebrew-computer/main ../cortexso_${{ needs.create-draft-release.outputs.version }}_source.changes

4 changes: 2 additions & 2 deletions package-managers-template/launchpad/cortexso/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
cortexso (VERSION) jammy; urgency=low

CHANGELOG_HERE
* CHANGELOG_HERE

-- Homebrew Computer Pte Ltd <[email protected]> TIME_HERE

cortexso (VERSION) noble; urgency=low

CHANGELOG_HERE
* CHANGELOG_HERE

-- Homebrew Computer Pte Ltd <[email protected]> TIME_HERE