Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
Update versions (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch authored Aug 2, 2024
1 parent ccc4d1a commit 30ca276
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: brew pr-pull

on:
pull_request_target:
pull_request:
types:
- labeled

Expand Down Expand Up @@ -29,10 +29,14 @@ jobs:
uses: Homebrew/actions/git-try-push@c62170a03ff2bcb9ab097fd7d6acbc905618e42a
with:
token: ${{ github.token }}
branch: main
branch: ${{ github.ref }}

- name: Delete branch
if: github.event.pull_request.head.repo.fork == false
env:
BRANCH: ${{ github.event.pull_request.head.ref }}
run: git push --delete origin "$BRANCH"
- name: Merge pr
uses: actions/github-script@v7
with:
script: |
await github.rest.pulls.merge({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
})
13 changes: 8 additions & 5 deletions Formula/soroban-cli.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
class SorobanCli < Formula
desc "CLI for interacting with and deploying to Soroban"
desc "CLI for building for and interacting with the Stellar network"
homepage "https://developers.stellar.org"
url "https://github.com/stellar/soroban-cli.git", tag: "v20.3.4"
head "https://github.com/stellar/soroban-cli.git", branch: "main"
url "https://github.com/stellar/stellar-cli.git", tag: "v21.2.0"
head "https://github.com/stellar/stellar-cli.git", branch: "main"

depends_on "rust" => :build
depends_on "openssl@3"

def install
chdir "cmd/soroban-cli" do
system "cargo", "install", "--bin=soroban", *std_cargo_args
system "cargo", "install", "--bin=soroban", "--features=opt", *std_cargo_args
system "cargo", "install", "--bin=stellar", "--features=opt", *std_cargo_args
end
end

test do
assert_match "soroban 20.3.4", shell_output("#{bin}/soroban version")
assert_match "stellar 21.2.0", shell_output("#{bin}/soroban version")
assert_match "stellar 21.2.0", shell_output("#{bin}/stellar version")
end
end
6 changes: 3 additions & 3 deletions Formula/stellar-xdr.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
class StellarXdr < Formula
desc "CLI for encoding and decoding Stellar XDR"
homepage "https://github.com/stellar/rs-stellar-xdr"
url "https://github.com/stellar/rs-stellar-xdr.git", tag: "v20.0.0"
url "https://github.com/stellar/rs-stellar-xdr.git", tag: "v21.2.0"
head "https://github.com/stellar/rs-stellar-xdr.git", branch: "main"

depends_on "rust" => :build

def install
system "cargo", "install", "--features=cli", *std_cargo_args
system "cargo", "install", "--bin=stellar-xdr", "--features=cli", *std_cargo_args
end

test do
assert_match "stellar-xdr 20.0.0", shell_output("#{bin}/stellar-xdr version")
assert_match "stellar-xdr 21.2.0", shell_output("#{bin}/stellar-xdr version")
end
end

0 comments on commit 30ca276

Please sign in to comment.