Skip to content

Commit

Permalink
cd: build iso
Browse files Browse the repository at this point in the history
  • Loading branch information
portasynthinca3 committed Jul 30, 2024
1 parent d150f73 commit f5a1fb5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-iso.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: build-iso

on:
push:
branches:
- master

jobs:
build-iso:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-07-25
override: true
components: clippy, rust-src
- uses: gleam-lang/setup-erlang@v1.1.3
with:
otp-version: "23.2"
- run: cargo install just
- run: sudo apt install -y coreutils binutils mtools
- run: just iso
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Commit Build"
files: |
.build/boss.iso
4 changes: 3 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
default: iso

clean:
rm -rf target/x86_64-boss-uefi
rm -rf .build
rm -rf apps/.build
mkdir .build

# Base image
bosbaima:
Expand All @@ -23,6 +24,7 @@ emulator:
cargo build {{cargo_flags}}
cargo clippy {{cargo_flags}}
# magic! (read mem_manager::reloc::relocate_pe for an explanation)
mkdir -p .build
dd if=/dev/random of=.build/rand bs=1 count=1024 2> /dev/null
dd if=/dev/zero of=.build/zero bs=1 count=14 2> /dev/null
cat .build/rand .build/rand > .build/reloc-magic
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly"
channel = "nightly-2024-07-25"
targets = [ "x86_64-unknown-uefi" ]

0 comments on commit f5a1fb5

Please sign in to comment.