Skip to content

Commit

Permalink
Generated from base-vm
Browse files Browse the repository at this point in the history
  • Loading branch information
Generate.yml committed Oct 6, 2024
1 parent fbfbb5d commit 219704d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/tpl/README.tpl.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Use this action to run your CI in {{VM_NAME}}.

The github workflow only supports Ubuntu, Windows and MacOS. But what if you need to use {{VM_NAME}}?

This action is to support {{VM_NAME}}.


Sample workflow `test.yml`:

## 1. Example: `test.yml`:

```yml

Expand Down Expand Up @@ -64,6 +64,10 @@ So, you will have the same directory and same default env variables when you `ru

{{VM_SHELL_COMMENTS}}



## 2. Share code

The code is shared from the host to the VM via `rsync` by default, you can choose to use to `sshfs` share code instead.


Expand Down Expand Up @@ -121,6 +125,7 @@ When using `rsync`, you can define `copyback: false` to not copy files back fro
```


## 3. NAT from host runner to the VM

You can add NAT port between the host and the VM.

Expand All @@ -142,6 +147,8 @@ You can add NAT port between the host and the VM.
```


## 4. Set memory and cpu

The default memory of the VM is 6144MB, you can use `mem` option to set the memory size:

```
Expand Down Expand Up @@ -175,6 +182,9 @@ The VM is using all the cpu cores of the host by default, you can use `cpu` opti
...
```


## 5. Select release

It uses [the {{VM_NAME}} {{DEFAULT_RELEASE}}](conf/default.release.conf) by default, you can use `release` option to use another version of {{VM_NAME}}:

```
Expand All @@ -193,6 +203,7 @@ All the supported releases are here: {{VM_NAME}} {{ALL_RELEASES}} [See all here



## 6. Custom shell

Support custom shell:

Expand Down

0 comments on commit 219704d

Please sign in to comment.