Skip to content

Commit

Permalink
refact(build): refact macos_arm64 builder (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
ihexon authored Dec 17, 2024
1 parent 16710d9 commit 7340ed9
Show file tree
Hide file tree
Showing 16 changed files with 331 additions and 11,515 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build_macos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build MacOS Profile
on:
push:
branches:
- 'main'
- 'dev'
pull_request:
branches:
- 'main'
- 'dev'

jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: 'actions/checkout@v4'

- name: Build
run: sudo -E ./make macos_arm64
20 changes: 20 additions & 0 deletions .github/workflows/build_wsl2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build WSL2 Profile
on:
push:
branches:
- 'main'
- 'dev'
pull_request:
branches:
- 'main'
- 'dev'

jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: 'actions/checkout@v4'

- name: Build
run: sudo -E ./make wsl2_amd64
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
tmp/
output/*
tools/*
*.back
*.bak
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# `make` commands
- `macos_arm64` : make ovm bootable image for macos arm64
- `wsl2_amd64` : make ovm wsl2 rootfs distribute
- `wsl2_amd64` : make ovm wsl2 rootfs distribute



# Development environment
- SKIP_BUILD_PROOT=true: Skip build proot
- SKIP_APT_GET_INSTALL: Skip apt update && apt install -y required package

- `SKIP_BUILD_PROOT=true`: Skip build [proot](https://github.com/proot-me/proot)
- `SKIP_APT_GET_INSTALL=true`: Skip `apt update && apt install -y required package`
- `VM_PROVIDER=qemu`: using qemu as vm provider
11 changes: 11 additions & 0 deletions docs/build_kernsl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Build kernel scripts

## Usage
```sh
$ ./build_kernel.sh \
--kernel-version=<next|mainline|stable|longterm> \
--kernel-config=tmp/config \
--menuconfig \
--dts=rockchip/rk3399-eaidk-610.dts # or --dtb=/tmp/mydtb.dtb \
--output=/tmp/kernel_out
```
10 changes: 0 additions & 10 deletions docs/help

This file was deleted.

1 change: 1 addition & 0 deletions docs/help
Loading

0 comments on commit 7340ed9

Please sign in to comment.