Skip to content

Commit 45b6825

Browse files
committed
Add snapshot release info to README
1 parent a1d3219 commit 45b6825

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

.github/workflows/build-and-snapshot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- master
78
pull_request:
89
schedule:
910
- cron: '0 0 * * 0' # Weekly on Sunday at midnight

.github/workflows/build.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@
88
"Linux": "linux",
99
"Windows": "windows"
1010
}
11-
os_name = os_name_map[platform.system()].lower()
12-
arch = platform.machine() # e.g., 'x86_64', 'arm64'
11+
arch_map = {
12+
"x86_64": "amd64",
13+
"arm64": "arm64",
14+
"aarch64": "arm64",
15+
"amd64": "amd64"
16+
}
17+
os_name = os_name_map[platform.system().lower()]
18+
arch = arch_map[platform.machine().lower()]
1319
print(f"Building for {os_name} {arch}")
1420

1521
os.system(f"go build -o dist/cf-cli-java-plugin-{os_name}-{arch}")

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![REUSE status](https://api.reuse.software/badge/github.com/SAP/cf-cli-java-plugin)](https://api.reuse.software/info/github.com/SAP/cf-cli-java-plugin)
1+
[![REUSE status](https://api.reuse.software/badge/github.com/SAP/cf-cli-java-plugin)](https://api.reuse.software/info/github.com/SAP/cf-cli-java-plugin) [![Build and Snapshot Release](https://github.com/SAP/cf-cli-java-plugin/actions/workflows/build-and-snapshot.yml/badge.svg)](https://github.com/SAP/cf-cli-java-plugin/actions/workflows/build-and-snapshot.yml)
22

33
# Cloud Foundry Command Line Java plugin
44

@@ -29,6 +29,22 @@ Install the plugin with `cf install-plugin [cf-cli-java-plugin]` (replace `[cf-c
2929

3030
You can verify that the plugin is successfully installed by looking for `java` in the output of `cf plugins`.
3131

32+
### Manual Installation of Snapshot Release
33+
34+
Download the current snapshot release from [GitHub](https://github.com/SAP/cf-cli-java-plugin/releases/tag/snapshot).
35+
This is intended for experimentation and might fail.
36+
37+
To install a new version of the plugin, run the following:
38+
39+
```sh
40+
# on Mac arm64
41+
cf install-plugin -f https://github.com/SAP/cf-cli-java-plugin/releases/download/snapshot/cf-cli-java-plugin-macos-arm64
42+
# on Windows x86
43+
cf install-plugin -f https://github.com/SAP/cf-cli-java-plugin/releases/download/snapshot/cf-cli-java-plugin-windows-amd64
44+
# on Linux x86
45+
cf install-plugin -f https://github.com/SAP/cf-cli-java-plugin/releases/download/snapshot/cf-cli-java-plugin-linux-amd64
46+
```
47+
3248
### Updating from version 1.x to 2.x
3349

3450
With release 2.0 we aligned the convention of the plugin having the same name as the command it contributes (in our case, `java`).

0 commit comments

Comments
 (0)