Skip to content

Commit 5809d70

Browse files
committed
Merge branch 'refactor' into fc-mem-patch
2 parents e78abaa + d7b3db0 commit 5809d70

File tree

3 files changed

+14
-30
lines changed

3 files changed

+14
-30
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ linux/
33
.env
44
.terraform
55
.tfplan
6+
.env

Makefile

Lines changed: 0 additions & 18 deletions
This file was deleted.

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,29 @@
22

33
## Overview
44

5-
This project automates the building of custom Firecracker. It supports building specific firecracker versions and uploading the resulting binaries to a Google Cloud Storage (GCS) bucket.
5+
This project automates the building of custom Firecracker versions. It supports building specific firecracker versions and uploading the resulting binaries to a Google Cloud Storage (GCS) bucket.
66

77
## Prerequisites
88

99
- Linux environment (for building firecracker)
1010

1111
## Building Firecrackers
1212

13-
1. **Configure firecracker versions:**
14-
- Edit `firecracker_versions.txt` to specify which firecracker versions to build (one per line, e.g., `<last_tag-prelease>-<first-8-letters-of-the-specific-commit>`).
13+
The `firecracker_versions.txt` file specifies which versions to build:
1514

16-
2. **Build:**
15+
- Edit `firecracker_versions.txt` to specify firecracker versions (one per line)
16+
- Versions can be tags (e.g., `v1.10.1`) or tag with shorthash (e.g., `v1.12.1_abcdef12`)
17+
- On every push, GitHub Actions will automatically:
18+
1. Parse versions from `firecracker_versions.txt` and resolve commit hashes
19+
2. Build each version in parallel
20+
3. Check CI status for each version
21+
4. Upload successful builds to GCS and create GitHub releases (on main branch)
1722

18-
```sh
19-
make build
20-
```
23+
## Scripts
2124

22-
The built firecrackers will be placed in `builds/<version_name>/firecracker`.
23-
24-
## Development Workflow
25-
26-
- On every push, GitHub Actions will automatically build the firecrackers and save it as an artifact.
25+
- `build.sh <version> <hash> <version_name>` - Builds a single Firecracker version
26+
- `scripts/parse-versions-with-hash.sh` - Parses versions and resolves commit hashes
27+
- `scripts/check-fc-ci.sh <versions_json>` - Checks CI status for parsed versions
2728

2829
## License
2930

0 commit comments

Comments
 (0)