-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yaml
More file actions
49 lines (43 loc) · 1.27 KB
/
action.yaml
File metadata and controls
49 lines (43 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Workbench Up
description: "Run workbench up with default configuration to start S3C workbench environment"
inputs:
environment:
description: "Name of the environment to start (defaults to 'default')"
required: false
default: "default"
environment-dir:
description: "Directory to store the environment"
required: false
default: "env"
build:
description: "Build images before starting containers"
required: false
default: "false"
no-cache:
description: "Do not use cache when building images"
required: false
default: "false"
runs:
using: "composite"
steps:
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.24.3'
cache: true
cache-dependency-path: go.sum
- name: Build workbench
shell: bash
run: |
make build
sudo mv workbench /usr/local/bin/workbench
working-directory: ${{ github.action_path }}
- name: Start workbench environment
shell: bash
run: |
workbench up \
--detach \
--name ${{ inputs.environment }} \
--env-dir ${{ inputs.environment-dir }} \
${{ inputs.build == 'true' && '--build' || '' }} \
${{ inputs.no-cache == 'true' && '--no-cache' || '' }}