Skip to content

Commit 8434375

Browse files
Merge pull request ballerina-platform#57 from azinneera/cicd
Update readme and push workflow
2 parents 94f6da7 + a37392e commit 8434375

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

.github/workflows/push.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
id: version
3333
run: |
3434
SHORT_SHA=$(git rev-parse --short HEAD)
35-
echo "version=ballerina-${SHORT_SHA}" >> $GITHUB_OUTPUT
35+
DATE=$(date -u +%Y%m%d)
36+
echo "version=${DATE}-${SHORT_SHA}" >> $GITHUB_OUTPUT
3637
3738
- name: Build the Ballerina CLI for all platforms
3839
env:

.vscode/launch.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
8+
79
{
8-
"name": "Debug Ballerina interpreter",
10+
"name": "Debug Ballerina Interpreter - Single File",
911
"type": "go",
1012
"request": "launch",
1113
"mode": "auto",
@@ -14,6 +16,17 @@
1416
"run",
1517
"${file}"
1618
]
19+
},
20+
{
21+
"name": "Debug Ballerina Interpreter - Package",
22+
"type": "go",
23+
"request": "launch",
24+
"mode": "auto",
25+
"program": "${workspaceFolder}/cli/cmd",
26+
"args": [
27+
"run",
28+
"${fileDirname}"
29+
]
1730
}
1831
]
1932
}

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,16 @@ go build -o bal ./cli/cmd
3131
./bal run --help
3232
```
3333

34-
#### Running a bal source file
34+
#### Running a bal source
35+
36+
Currently, the following are supported:
37+
- Single .bal file
38+
- Ballerina package with only the default module
3539

36-
Currently, only single files are supported
3740
E.g
3841
```bash
3942
./bal run --dump-bir corpus/bal/subset1/01-boolean/equal1-v.bal
43+
./bal run project-api-test/testdata/myproject
4044
```
4145

4246
### Testing

0 commit comments

Comments
 (0)