Skip to content

Commit 223524e

Browse files
committed
Note about CURLIB and LIBL
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
1 parent fbe5cb9 commit 223524e

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

src/content/docs/developing/local/actions.mdx

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ sidebar:
44
order: 4
55
---
66

7+
import { Tabs, TabItem } from '@astrojs/starlight/components';
8+
79
Similar to other repository settings, users can now store Actions as part of the Workspace. Users can now create `.vscode/actions.json` inside of your Workspace, and can contain Actions that are specific to that Workspace. That configuration file should also be checked into git for that application.
810

911
Running local Actions will execute the commands with the working directory as the deploy directory.
@@ -137,4 +139,37 @@ The `&BRANCHLIB` variable will always start with `VS` followed by a deterministi
137139
"deployFirst": true
138140
}
139141
]
140-
```
142+
```
143+
144+
### `.env` and ILE actions
145+
146+
When you are compiling local sources using `"environment": "ile"`, then it will use the User Library List for the job. You can use the `CURLIB` and `LIBL` variables to override them. This is useful because then it allows project-specific library lists.
147+
148+
<Tabs>
149+
<TabItem label="actions.json">
150+
151+
```json
152+
[
153+
{
154+
"name": "Compile with CRTBNDRPG 🔨",
155+
"command": "CRTBNDRPG PGM(&CURLIB/&NAME) SRCSTMF('&RELATIVEPATH') OPTION(*EVENTF) DBGVIEW(*SOURCE) TGTRLS(*CURRENT) TGTCCSID(*JOB)",
156+
"environment": "ile",
157+
"deployFirst": true,
158+
"extensions": [
159+
"RPGLE"
160+
]
161+
}
162+
]
163+
```
164+
165+
</TabItem>
166+
<TabItem label=".env">
167+
168+
```sh
169+
# developer A:
170+
CURLIB=BLDLIB
171+
LIBL=MYDB SAMPLE SYSTOOLS
172+
```
173+
174+
</TabItem>
175+
</Tabs>

0 commit comments

Comments
 (0)