Skip to content

Commit

Permalink
circleci renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aebischer committed Jan 31, 2025
1 parent 1fb93a0 commit 61cdc61
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
paths:
- dist/tubectl-win-x64.exe

build_osx:
build_osx_arm64:
macos:
xcode: 16.1.0
resource_class: macos.m1.medium.gen1
Expand All @@ -118,7 +118,7 @@ jobs:
name: build
command: |
npm run build
npm run dist-osx
npm run dist-osx-arm64
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
Expand All @@ -128,7 +128,7 @@ jobs:
- persist_to_workspace:
root: .
paths:
- dist/tubectl-osx
- dist/tubectl-osx-arm64

build_osx_x64:
macos:
Expand Down Expand Up @@ -200,18 +200,18 @@ jobs:
git config --global user.name "circleci Build"
git clone --depth 1 https://github.com/gyselroth/homebrew-core > /dev/null 2>&1
sha256=$(sha256sum dist/tubectl-osx | cut -d ' ' -f1) && echo $sha256
sha256=$(sha256sum dist/tubectl-osx-arm64 | cut -d ' ' -f1) && echo $sha256
sed -i 's/sha256.*$/sha256 "'$sha256'"/g' homebrew-core/Formula/tubectl.rb
sed -i 's/version.*$/version "'$version'"/g' homebrew-core/Formula/tubectl.rb
sed -i 's/url.*$/url "https:\/\/github.com\/gyselroth\/tubee-client-cli\/releases\/download\/'$CIRCLE_TAG'\/tubectl-osx"/g' homebrew-core/Formula/tubectl.rb
sed -i 's/url.*$/url "https:\/\/github.com\/gyselroth\/tubee-client-cli\/releases\/download\/'$CIRCLE_TAG'\/tubectl-osx-arm64"/g' homebrew-core/Formula/tubectl.rb
sha256=$(sha256sum dist/tubectl-osx-x64 | cut -d ' ' -f1) && echo $sha256
sed -i 's/sha256.*$/sha256 "'$sha256'"/g' homebrew-core/Formula/tubectl-x64.rb
sed -i 's/version.*$/version "'$version'"/g' homebrew-core/Formula/tubectl-x64.rb
sed -i 's/url.*$/url "https:\/\/github.com\/gyselroth\/tubee-client-cli\/releases\/download\/'$CIRCLE_TAG'\/tubectl-osx-x64"/g' homebrew-core/Formula/tubectl-x64.rb
cd homebrew-core
git commit --message "tubectl release $CIRCLE_TAG" Formula/tubectl.rb
git commit --message "tubectl release arm64 $CIRCLE_TAG" Formula/tubectl.rb
git commit --message "tubectl release x64 $CIRCLE_TAG" Formula/tubectl-x64.rb
git remote set-url origin [email protected]:gyselroth/homebrew-core.git
git push origin master > /dev/null 2>&1
Expand All @@ -229,7 +229,7 @@ workflows:
filters:
tags:
only: /.*/
- build_osx:
- build_osx_arm64:
filters:
tags:
only: /.*/
Expand All @@ -241,14 +241,14 @@ workflows:
requires:
- build_linux
- build_windows
- build_osx
- build_osx_arm64
- build_osx_x64
filters:
tags:
only: /^v.*/
# - publish-macos-release-to-homebrew:
# requires:
# - build_osx
# - build_osx_arm64
# - build_osx_x64
# filters:
# tags:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"coveralls": "coveralls < coverage/lcov.info",
"dist-linux": "nexe --verbose -r node_modules/@gyselroth/tubee-sdk-node/openapi.yml -r node_modules/keytar/build/Release/keytar.node -i build/main.js -o dist/tubectl-linux-x64 -t linux-x64-8.12.0",
"dist-windows": "nexe --verbose -r node_modules/@gyselroth/tubee-sdk-node/openapi.yml -r node_modules/keytar/build/Release/keytar.node -i build/main.js -o dist/tubectl-win-x64 -t windows-x64-8.12.0",
"dist-osx": "nexe --verbose -r node_modules/@gyselroth/tubee-sdk-node/openapi.yml -r node_modules/keytar/build/Release/keytar.node -i build/main.js -o dist/tubectl-osx -t mac-x64-8.12.0",
"dist-osx-arm64": "nexe --verbose -r node_modules/@gyselroth/tubee-sdk-node/openapi.yml -r node_modules/keytar/build/Release/keytar.node -i build/main.js -o dist/tubectl-osx-arm64 -t mac-x64-8.12.0",
"dist-osx-x64": "nexe --verbose -r node_modules/@gyselroth/tubee-sdk-node/openapi.yml -r node_modules/keytar/build/Release/keytar.node -i build/main.js -o dist/tubectl-osx-x64 -t mac-x64-8.12.0"
},
"repository": {
Expand Down

0 comments on commit 61cdc61

Please sign in to comment.