Mark Poliakov 18fa8b954a Add 'kernel/' from commit '7f1f6b73377367db17f98a740316b904c37ce3b1'
git-subtree-dir: kernel
git-subtree-mainline: 817f71f90f97270dd569fd44246bf74e57636552
git-subtree-split: 7f1f6b73377367db17f98a740316b904c37ce3b1
2024-03-12 15:52:48 +02:00

52 lines
1.8 KiB
YAML

name: Kernel tests
run_name: Kernel tests
on: [pull_request]
jobs:
Test-x86_64-Build:
runs-on: ubuntu-latest
steps:
- name: Checkout kernel sources
uses: actions/checkout@v3
- name: Install build dependencies
run: |
apt update && apt install -y nasm gcc
- name: Install nightly Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y --default-toolchain nightly
source "$HOME/.cargo/env"
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Update dependencies
run: |
source "$HOME/.cargo/env"
cd ${{ gitea.workspace }}
cargo update yggdrasil-abi elf
- name: Build x86-64
run: |
source "$HOME/.cargo/env"
cd ${{ gitea.workspace }}
cargo build -Z build-std=core,alloc,compiler_builtins --target=etc/x86_64-unknown-none.json
Test-aarch64-Build:
runs-on: ubuntu-latest
steps:
- name: Checkout kernel sources
uses: actions/checkout@v3
- name: Install build dependencies
run: |
apt update && apt install -y nasm gcc
- name: Install nightly Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y --default-toolchain nightly
source "$HOME/.cargo/env"
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Update dependencies
run: |
source "$HOME/.cargo/env"
cd ${{ gitea.workspace }}
cargo update yggdrasil-abi elf
- name: Build aarch64
run: |
source "$HOME/.cargo/env"
cd ${{ gitea.workspace }}
cargo build -Z build-std=core,alloc,compiler_builtins --target=etc/aarch64-unknown-qemu.json