Skip to content

Commit ea03a8c

Browse files
authored
Merge pull request #199 from morningtzh/release/1.0
[release/1.0]Fix Release Workflow and Update Kernel Compilation
2 parents a0c38ec + 6602fd9 commit ea03a8c

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Build vmm sandboxer
2525
run: make bin/vmm-sandboxer HYPERVISOR=${{ matrix.hypervisor }}
2626
- name: Upload Artifacts
27-
uses: actions/upload-artifact@v3
27+
uses: actions/upload-artifact@v4
2828
with:
2929
name: vmm-sandboxer ${{ matrix.hypervisor }}
3030
path: |
@@ -39,7 +39,7 @@ jobs:
3939
- name: Build vm image
4040
run: sudo make bin/kuasar.img RUNTIME=docker
4141
- name: Upload Artifacts
42-
uses: actions/upload-artifact@v3
42+
uses: actions/upload-artifact@v4
4343
with:
4444
name: image
4545
path: bin/kuasar.img
@@ -55,7 +55,7 @@ jobs:
5555
- name: Build vm kernel
5656
run: make bin/vmlinux.bin HYPERVISOR=${{ matrix.hypervisor }}
5757
- name: Upload Artifacts
58-
uses: actions/upload-artifact@v3
58+
uses: actions/upload-artifact@v4
5959
with:
6060
name: kernel ${{ matrix.hypervisor }}
6161
path: bin/vmlinux.bin
@@ -68,7 +68,7 @@ jobs:
6868
- name: Build quark
6969
run: make quark
7070
- name: Upload Artifacts
71-
uses: actions/upload-artifact@v3
71+
uses: actions/upload-artifact@v4
7272
with:
7373
name: quark
7474
path: bin/quark-sandboxer
@@ -90,7 +90,7 @@ jobs:
9090
- name: Build wasm
9191
run: make wasm WASM_RUNTIME=${{ matrix.features }}
9292
- name: Upload Artifacts
93-
uses: actions/upload-artifact@v3
93+
uses: actions/upload-artifact@v4
9494
with:
9595
name: wasm-sandboxer ${{ matrix.features }}
9696
path: bin/wasm-sandboxer
@@ -103,7 +103,7 @@ jobs:
103103
- name: Build runc
104104
run: make runc
105105
- name: Upload Artifacts
106-
uses: actions/upload-artifact@v3
106+
uses: actions/upload-artifact@v4
107107
with:
108108
name: runc
109109
path: bin/runc-sandboxer
@@ -117,7 +117,7 @@ jobs:
117117
run: ./scripts/build/build-containerd.sh
118118
shell: bash
119119
- name: Upload Artifacts
120-
uses: actions/upload-artifact@v3
120+
uses: actions/upload-artifact@v4
121121
with:
122122
name: containerd
123123
path: |
@@ -149,7 +149,7 @@ jobs:
149149
sudo -E chown -R root:root /tmp/${dir}
150150
mkdir _release
151151
sudo -E tar -czf _release/${dir}.tar.gz -C /tmp/ ${dir}
152-
- uses: actions/download-artifact@v3
152+
- uses: actions/download-artifact@v4
153153
with:
154154
path: _artifacts
155155
- name: Package binaries

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
HYPERVISOR ?= cloud_hypervisor
22
GUESTOS_IMAGE ?= centos
33
WASM_RUNTIME ?= wasmedge
4-
KERNEL_VERSION ?= 6.2
4+
KERNEL_VERSION ?= 6.12.8
55
ARCH ?= x86_64
66
# DEST_DIR is used when built with RPM format
77
DEST_DIR ?= /

vmm/scripts/kernel/cloud_hypervisor/build.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
# limitations under the License.
1515

1616
set -e
17+
set -x
1718

18-
readonly version=${1:-6.1.6}
19+
readonly version=${1:-6.12.8}
1920
readonly base_dir="$(dirname $(readlink -f $0))"
2021

2122
sudo apt-get update
@@ -25,12 +26,9 @@ sudo apt-get install -y libelf-dev elfutils
2526
rm -rf /tmp/linux-cloud-hypervisor
2627
git clone --depth 1 https://github.com/cloud-hypervisor/linux.git -b ch-${version} /tmp/linux-cloud-hypervisor
2728
pushd /tmp/linux-cloud-hypervisor
28-
wget --no-check-certificate https://raw.githubusercontent.com/cloud-hypervisor/cloud-hypervisor/main/resources/linux-config-x86_64
29-
# TODO support arm
30-
# wget https://raw.githubusercontent.com/cloud-hypervisor/cloud-hypervisor/main/resources/linux-config-aarch64
31-
cp linux-config-x86_64 .config # x86-64
32-
# TODO support arm
33-
# cp linux-config-aarch64 .config # AArch64
29+
make ch_defconfig
30+
31+
# Do native build of the x86-64 kernel
3432
KCFLAGS="-Wa,-mx86-used-note=no" make bzImage -j `nproc`
3533
# TODO support arm
3634
# make -j `nproc`

0 commit comments

Comments
 (0)