Skip to content
Snippets Groups Projects
Unverified Commit 91d13a11 authored by bors[bot]'s avatar bors[bot] Committed by GitHub
Browse files

Merge #381


381: Omit implicit core,alloc from build-std r=mkroening a=mkroening



Co-authored-by: default avatarMartin Kröning <mkroening@posteo.net>
parents 7b9ac6df a740f02b
No related branches found
No related tags found
No related merge requests found
Pipeline #851334 failed
...@@ -62,7 +62,7 @@ jobs: ...@@ -62,7 +62,7 @@ jobs:
with: with:
submodules: true submodules: true
- name: Build dev profile - name: Build dev profile
run: cargo build -Zbuild-std=core,alloc,std,panic_abort --target x86_64-unknown-hermit --package rusty_demo run: cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit --package rusty_demo
- name: Install uhyve - name: Install uhyve
run: cargo install --locked uhyve run: cargo install --locked uhyve
- name: Check KVM availability - name: Check KVM availability
...@@ -75,7 +75,7 @@ jobs: ...@@ -75,7 +75,7 @@ jobs:
env: env:
RUST_LOG: debug RUST_LOG: debug
- name: Build release profile - name: Build release profile
run: cargo build -Zbuild-std=core,alloc,std,panic_abort --target x86_64-unknown-hermit --package rusty_demo --release run: cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit --package rusty_demo --release
- name: Test release version - name: Test release version
run: uhyve --verbose -c 1 target/x86_64-unknown-hermit/release/rusty_demo run: uhyve --verbose -c 1 target/x86_64-unknown-hermit/release/rusty_demo
env: env:
...@@ -93,7 +93,7 @@ jobs: ...@@ -93,7 +93,7 @@ jobs:
with: with:
submodules: true submodules: true
- name: Build dev profile - name: Build dev profile
run: cargo build -Zbuild-std=core,alloc,std,panic_abort --target x86_64-unknown-hermit --package rusty_demo run: cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit --package rusty_demo
- name: Download loader - name: Download loader
uses: dsaltares/fetch-gh-release-asset@1.1.0 uses: dsaltares/fetch-gh-release-asset@1.1.0
with: with:
...@@ -107,7 +107,7 @@ jobs: ...@@ -107,7 +107,7 @@ jobs:
-initrd target/x86_64-unknown-hermit/debug/rusty_demo -initrd target/x86_64-unknown-hermit/debug/rusty_demo
- name: Build release profile - name: Build release profile
run: run:
cargo build -Zbuild-std=core,alloc,std,panic_abort --target x86_64-unknown-hermit --package rusty_demo --release cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit --package rusty_demo --release
- name: Test release profile - name: Test release profile
run: | run: |
qemu-system-x86_64 -display none -smp 1 -m 128M -serial stdio \ qemu-system-x86_64 -display none -smp 1 -m 128M -serial stdio \
...@@ -116,7 +116,7 @@ jobs: ...@@ -116,7 +116,7 @@ jobs:
-initrd target/x86_64-unknown-hermit/release/rusty_demo -initrd target/x86_64-unknown-hermit/release/rusty_demo
- name: Build httpd with DHCP support - name: Build httpd with DHCP support
run: run:
cargo build -Zbuild-std=core,alloc,std,panic_abort --target x86_64-unknown-hermit --package httpd --features ci,dhcpv4 cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit --package httpd --features ci,dhcpv4
- name: Test httpd with DHCP support - name: Test httpd with DHCP support
run: | run: |
qemu-system-x86_64 -smp 1 -cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr,rdrand \ qemu-system-x86_64 -smp 1 -cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr,rdrand \
...@@ -130,4 +130,4 @@ jobs: ...@@ -130,4 +130,4 @@ jobs:
sleep 1 sleep 1
- name: Build httpd without DHCP support - name: Build httpd without DHCP support
run: run:
cargo build -Zbuild-std=core,alloc,std,panic_abort --target x86_64-unknown-hermit --package httpd cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit --package httpd
...@@ -28,7 +28,7 @@ jobs: ...@@ -28,7 +28,7 @@ jobs:
username: hermitcore username: hermitcore
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Build demo - name: Build demo
run: cargo build -Zbuild-std=core,alloc,std,panic_abort --target x86_64-unknown-hermit --no-default-features -p rusty_demo --release run: cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit --no-default-features -p rusty_demo --release
- name: Copy demo out of target dir - name: Copy demo out of target dir
run: cp target/x86_64-unknown-hermit/release/rusty_demo . run: cp target/x86_64-unknown-hermit/release/rusty_demo .
- name: Download loader - name: Download loader
......
...@@ -23,7 +23,7 @@ jobs: ...@@ -23,7 +23,7 @@ jobs:
sudo apt-get update sudo apt-get update
sudo apt-get install nasm sudo apt-get install nasm
- name: Generate documentation - name: Generate documentation
run: cargo doc -Zbuild-std=core,alloc,std,panic_abort --target x86_64-unknown-hermit run: cargo doc -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit
- name: Generate index.html - name: Generate index.html
run: | run: |
cat > target/x86_64-unknown-hermit/doc/index.html <<EOL cat > target/x86_64-unknown-hermit/doc/index.html <<EOL
......
...@@ -32,8 +32,8 @@ build:demo: ...@@ -32,8 +32,8 @@ build:demo:
stage: build stage: build
image: ${DOCKER_IMAGE}:${DOCKER_TAG} image: ${DOCKER_IMAGE}:${DOCKER_TAG}
script: script:
- cargo build -Zbuild-std=core,alloc,std,panic_abort --target x86_64-unknown-hermit --package rusty_demo - cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit --package rusty_demo
- cargo build -Zbuild-std=core,alloc,std,panic_abort --target x86_64-unknown-hermit --package rusty_demo --release - cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit --package rusty_demo --release
artifacts: artifacts:
paths: paths:
- target/x86_64-unknown-hermit/debug/rusty_demo - target/x86_64-unknown-hermit/debug/rusty_demo
...@@ -43,7 +43,7 @@ build:httpd: ...@@ -43,7 +43,7 @@ build:httpd:
stage: build stage: build
image: ${DOCKER_IMAGE}:${DOCKER_TAG} image: ${DOCKER_IMAGE}:${DOCKER_TAG}
script: script:
- cargo build -Zbuild-std=core,alloc,std,panic_abort --target x86_64-unknown-hermit --manifest-path examples/httpd/Cargo.toml --no-default-features --features pci,acpi,tcp,vga,dhcpv4 --release - cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit --manifest-path examples/httpd/Cargo.toml --no-default-features --features pci,acpi,tcp,vga,dhcpv4 --release
artifacts: artifacts:
paths: paths:
- target/x86_64-unknown-hermit/release/httpd - target/x86_64-unknown-hermit/release/httpd
...@@ -52,7 +52,7 @@ build:httpd_mvm: ...@@ -52,7 +52,7 @@ build:httpd_mvm:
stage: build stage: build
image: ${DOCKER_IMAGE}:${DOCKER_TAG} image: ${DOCKER_IMAGE}:${DOCKER_TAG}
script: script:
- cargo build -Zbuild-std=core,alloc,std,panic_abort --target x86_64-unknown-hermit --manifest-path examples/httpd/Cargo.toml --no-default-features --features tcp,dhcpv4 --release - cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit --manifest-path examples/httpd/Cargo.toml --no-default-features --features tcp,dhcpv4 --release
artifacts: artifacts:
paths: paths:
- target/x86_64-unknown-hermit/release/httpd - target/x86_64-unknown-hermit/release/httpd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment