Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACS
Public
HermitOS
kernel
Commits
02bd4bcb
Commit
02bd4bcb
authored
2 years ago
by
Martin Kröning
Browse files
Options
Downloads
Patches
Plain Diff
Migrate to loader releases
parent
19688451
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/x86.yml
+9
-7
9 additions, 7 deletions
.github/workflows/x86.yml
.gitlab-ci.yml
+4
-4
4 additions, 4 deletions
.gitlab-ci.yml
Dockerfile
+2
-13
2 additions, 13 deletions
Dockerfile
with
15 additions
and
24 deletions
.github/workflows/x86.yml
+
9
−
7
View file @
02bd4bcb
...
...
@@ -66,20 +66,22 @@ jobs:
if
:
${{ matrix.os == 'ubuntu-latest' }}
working-directory
:
libhermit-rs
run
:
cargo test --lib --target x86_64-unknown-linux-gnu
-
name
:
Build loader
run
:
cargo xtask build --arch x86_64 --release
working-directory
:
loader
-
name
:
Download loader
uses
:
dsaltares/fetch-gh-release-asset@1.0.0
with
:
repo
:
hermitcore/rusty-loader
file
:
rusty-loader-x86_64
-
name
:
Test dev profile
run
:
|
qemu-system-x86_64 -display none -smp 1 -m 128M -serial stdio \
-cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr \
-device isa-debug-exit,iobase=0xf4,iosize=0x04 \
-kernel
loader/target/x86_64/release/
rusty-loader \
-kernel rusty-loader
-x86_64
\
-initrd target/x86_64-unknown-hermit/debug/rusty_demo
-
name
:
Integration tests (ubuntu)
working-directory
:
libhermit-rs
if
:
${{ matrix.os == 'ubuntu-latest' }}
run
:
cargo test --tests --no-fail-fast -- --bootloader_path=
../loader/target/x86_64/release/
rusty-loader
run
:
cargo test --tests --no-fail-fast -- --bootloader_path=rusty-loader
-x86_64
continue-on-error
:
true
-
name
:
Build release profile
run
:
cargo build -Zbuild-std=core,alloc,std,panic_abort -Zbuild-std-features=compiler-builtins-mem --target x86_64-unknown-hermit --release
...
...
@@ -88,7 +90,7 @@ jobs:
qemu-system-x86_64 -display none -smp 1 -m 128M -serial stdio \
-cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr \
-device isa-debug-exit,iobase=0xf4,iosize=0x04 \
-kernel
loader/target/x86_64/release/
rusty-loader \
-kernel rusty-loader
-x86_64
\
-initrd target/x86_64-unknown-hermit/release/rusty_demo
-
name
:
Build minimal profile
if
:
${{ matrix.os == 'ubuntu-latest' }}
...
...
@@ -103,7 +105,7 @@ jobs:
-M microvm,x-option-roms=off,pit=off,pic=off,rtc=on \
-global virtio-mmio.force-legacy=on -nodefaults -no-user-config \
-display none -smp 1 -m 64M -serial stdio \
-kernel
loader/target/x86_64/release/
rusty-loader \
-kernel rusty-loader
-x86_64
\
-initrd target/x86_64-unknown-hermit/release/hello_world \
-cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr \
-device isa-debug-exit,iobase=0xf4,iosize=0x04 \
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
4
−
4
View file @
02bd4bcb
...
...
@@ -92,25 +92,25 @@ test:qemu:
-cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr,rdrand
-device isa-debug-exit,iobase=0xf4,iosize=0x04
-display none -m 64M -serial stdio -enable-kvm
-kernel /usr/local/bin/rusty-loader
-kernel /usr/local/bin/rusty-loader
-x86_64
-initrd rusty-hermit/target/x86_64-unknown-hermit/debug/rusty_demo
-
qemu-system-x86_64 -smp
2
-cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr,rdrand
-device isa-debug-exit,iobase=0xf4,iosize=0x04
-display none -m 64M -serial stdio -enable-kvm
-kernel /usr/local/bin/rusty-loader
-kernel /usr/local/bin/rusty-loader
-x86_64
-initrd rusty-hermit/target/x86_64-unknown-hermit/debug/rusty_demo
-
qemu-system-x86_64 -smp
1
-cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr,rdrand
-device isa-debug-exit,iobase=0xf4,iosize=0x04
-display none -m 64M -serial stdio -enable-kvm
-kernel /usr/local/bin/rusty-loader
-kernel /usr/local/bin/rusty-loader
-x86_64
-initrd rusty-hermit/target/x86_64-unknown-hermit/release/rusty_demo
-
qemu-system-x86_64 -smp
2
-cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr,rdrand
-device isa-debug-exit,iobase=0xf4,iosize=0x04
-display none -m 64M -serial stdio -enable-kvm
-kernel /usr/local/bin/rusty-loader
-kernel /usr/local/bin/rusty-loader
-x86_64
-initrd rusty-hermit/target/x86_64-unknown-hermit/release/rusty_demo
tags
:
-
privileged
This diff is collapsed.
Click to expand it.
Dockerfile
+
2
−
13
View file @
02bd4bcb
...
...
@@ -40,18 +40,6 @@ FROM rust:bullseye as stable-deps
RUN
set
-eux
;
\
cargo
install
uhyve
;
# Build dependencies with libhermit-rs' toolchain channel
FROM
hermit-toolchain
as
hermit-deps
RUN
set
-eux
;
\
apt-get update
;
\
apt-get
install
-y
--no-install-recommends
\
nasm
\
;
\
rm
-rf
/var/lib/apt/lists/
*
;
\
git clone https://github.com/hermitcore/rusty-loader.git
;
\
cd
rusty-loader
;
\
cargo xtask build
--arch
x86_64
--release
;
# Install dependencies
FROM
hermit-toolchain
as
ci-runner
RUN
set
-eux
;
\
...
...
@@ -63,5 +51,6 @@ RUN set -eux; \
qemu-system-x86 \
; \
rm -rf /var/lib/apt/lists/*;
RUN
set
-eux
;
\
wget
-P
/usr/local/bin
"https://github.com/hermitcore/rusty-loader/releases/download/v0.3.0/rusty-loader-x86_64"
;
COPY
--from=stable-deps $CARGO_HOME/bin/uhyve $CARGO_HOME/bin/uhyve
COPY
--from=hermit-deps rusty-loader/target/x86_64/release/rusty-loader /usr/local/bin/rusty-loader
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment