Skip to content

Commit

Permalink
update builds to use better way to install server (#975)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottf authored Sep 19, 2023
1 parent 71dac96 commit 47532a0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 56 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/branch-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,10 @@ jobs:
with:
java-version: '8'
distribution: 'adopt'
- name: Setup GO
uses: actions/setup-go@v3
with:
go-version: '1.19.9'
- name: Install Nats Server
run: |
cd $GITHUB_WORKSPACE
git clone https://github.com/nats-io/nats-server.git
cd nats-server
git checkout tags/v2.9.18 -b nscustom
go get
go build main.go
mkdir -p ~/.local/bin
cp main ~/.local/bin/nats-server
cd ..
rm -rf nats-server
curl -sf https://binaries.nats.dev/nats-io/nats-server/v2@main | PREFIX=. sh
sudo mv nats-server /usr/local/bin
nats-server -v
- name: Check out code
uses: actions/checkout@v3
Expand Down
16 changes: 2 additions & 14 deletions .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,10 @@ jobs:
with:
java-version: '8'
distribution: 'adopt'
- name: Setup GO
uses: actions/setup-go@v3
with:
go-version: '1.19.9'
- name: Install Nats Server
run: |
cd $GITHUB_WORKSPACE
git clone https://github.com/nats-io/nats-server.git
cd nats-server
git checkout tags/v2.9.18 -b nscustom
go get
go build main.go
mkdir -p ~/.local/bin
cp main ~/.local/bin/nats-server
cd ..
rm -rf nats-server
curl -sf https://binaries.nats.dev/nats-io/nats-server/v2@main | PREFIX=. sh
sudo mv nats-server /usr/local/bin
nats-server -v
- name: Check out code
uses: actions/checkout@v3
Expand Down
16 changes: 2 additions & 14 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,10 @@ jobs:
with:
java-version: '8'
distribution: 'adopt'
- name: Setup GO
uses: actions/setup-go@v3
with:
go-version: '1.19.9'
- name: Install Nats Server
run: |
cd $GITHUB_WORKSPACE
git clone https://github.com/nats-io/nats-server.git
cd nats-server
git checkout tags/v2.9.18 -b nscustom
go get
go build main.go
mkdir -p ~/.local/bin
cp main ~/.local/bin/nats-server
cd ..
rm -rf nats-server
curl -sf https://binaries.nats.dev/nats-io/nats-server/v2@main | PREFIX=. sh
sudo mv nats-server /usr/local/bin
nats-server -v
- name: Check out code
uses: actions/checkout@v3
Expand Down
16 changes: 2 additions & 14 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,10 @@ jobs:
with:
java-version: '8'
distribution: 'adopt'
- name: Setup GO
uses: actions/setup-go@v3
with:
go-version: '1.19.9'
- name: Install Nats Server
run: |
cd $GITHUB_WORKSPACE
git clone https://github.com/nats-io/nats-server.git
cd nats-server
git checkout tags/v2.9.18 -b nscustom
go get
go build main.go
mkdir -p ~/.local/bin
cp main ~/.local/bin/nats-server
cd ..
rm -rf nats-server
curl -sf https://binaries.nats.dev/nats-io/nats-server/v2@main | PREFIX=. sh
sudo mv nats-server /usr/local/bin
nats-server -v
- name: Check out code
uses: actions/checkout@v3
Expand Down

0 comments on commit 47532a0

Please sign in to comment.