Skip to content

Commit cabddec

Browse files
authored
feat: add coder-cli-nightly release (#12)
1 parent fc957ca commit cabddec

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/test.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,12 @@ jobs:
1111
- uses: actions/checkout@v1
1212
- run: brew install --build-from-source ./coder-cli.rb
1313
- run: coder --version
14-
14+
coder_cli_nightly:
15+
strategy:
16+
matrix:
17+
os: [macos-latest, ubuntu-latest]
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- uses: actions/checkout@v1
21+
- run: brew install --build-from-source ./coder-cli-nightly.rb
22+
- run: coder --version

coder-cli-nightly.rb

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
class CoderCliNightly < Formula
2+
desc "Command-line tool for the Coder remote development platform, nightly release channel"
3+
homepage "https://github.com/cdr/coder-cli"
4+
version "1.16.0-rc.0"
5+
bottle :unneeded
6+
7+
if OS.mac?
8+
url "https://github.com/cdr/coder-cli/releases/download/v1.16.0-rc.0/coder-cli-darwin-amd64.zip"
9+
sha256 "283fbdbbd57ca75361ac89fb0300546483c326bb047e7cd96eb524c39241c5c5"
10+
else
11+
url "https://github.com/cdr/coder-cli/releases/download/v1.16.0-rc.0/coder-cli-linux-amd64.tar.gz"
12+
sha256 "7552b45f956c2a027c58beb0867d6df32d75291a0a5b6ad0c6bc9957306da989"
13+
end
14+
15+
def install
16+
bin.install "coder"
17+
end
18+
test do
19+
system "#{bin}/coder", "--version"
20+
end
21+
end

0 commit comments

Comments
 (0)