Skip to content

Commit

Permalink
Updates buildroot + switches from ISOs to directly booting a bzImage …
Browse files Browse the repository at this point in the history
…and a initramfs + makes the kernel even leaner
  • Loading branch information
alexkar598 committed Jun 22, 2024
1 parent e63d5dc commit 88b1842
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 100 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: byondvm

- name: Cache Buildroot CCache
id: cache-ccache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.buildroot-ccache
key: linux-buildroot-ccache

- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v1
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores

- name: Download Buildroot
run: |
wget https://buildroot.org/downloads/buildroot-2022.05.tar.gz
tar -xzf ./buildroot-2022.05.tar.gz
mv -v ./buildroot-2022.05/ ./buildroot
wget https://buildroot.org/downloads/buildroot-2024.02.3.tar.gz
tar -xzf ./buildroot-2024.02.3.tar.gz
mv -v ./buildroot-2024.02.3/ ./buildroot
mv -v ./byondvm ./buildroot/byondvm
- name: Setup Buildroot
Expand All @@ -45,13 +45,11 @@ jobs:
make defconfig byondvm_defconfig
make -j ${{ steps.cpu-cores.outputs.count }}
make -j ${{ steps.cpu-cores.outputs.count }}
mv ./output/images/rootfs.iso9660 ./controller.iso
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: controller.iso
path: buildroot/controller.iso
path: buildroot/output/images/*

- name: Set current date as env variable
if: github.event_name == 'push'
Expand All @@ -70,6 +68,6 @@ jobs:
uses: ncipollo/release-action@v1
if: github.event_name == 'push'
with:
artifacts: "buildroot/controller.iso"
artifacts: "buildroot/output/images/*"
tag: ${{ env.HASH }}
generateReleaseNotes: true
Loading

0 comments on commit 88b1842

Please sign in to comment.