Skip to content

Commit

Permalink
CI: Add bring-up Linux kernel automation script
Browse files Browse the repository at this point in the history
Add macOS environment to embrace more working environments.
  • Loading branch information
ChinYikMing committed Dec 8, 2024
1 parent 4ef0ff4 commit 3dcc502
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: install-dependencies
run: |
sudo apt-get update -q -y
sudo apt-get install -q -y libsdl2-dev libsdl2-mixer-dev
sudo apt-get install -q -y libsdl2-dev libsdl2-mixer-dev device-tree-compiler expect
.ci/riscv-toolchain-install.sh
echo "${{ github.workspace }}/toolchain/bin" >> $GITHUB_PATH
wget https://apt.llvm.org/llvm.sh
Expand Down Expand Up @@ -85,6 +85,11 @@ jobs:
run: |
make clean && make ENABLE_UBSAN=1 check -j$(nproc)
make ENABLE_JIT=1 clean && make ENABLE_JIT=1 ENABLE_UBSAN=1 check -j$(nproc)
- name: boot Linux kernel test
run: |
make clean && make ENABLE_SYSTEM=1 && make ENABLE_SYSTEM=1 artifact -j$(nproc)
.ci/boot-linux.sh
make ENABLE_SYSTEM=1 clean
host-arm64:
needs: [detect-code-related-file-changes]
Expand Down Expand Up @@ -120,6 +125,20 @@ jobs:
make ENABLE_JIT=1 clean && make ENABLE_EXT_F=0 ENABLE_JIT=1 check -j$(nproc)
make ENABLE_JIT=1 clean && make ENABLE_EXT_C=0 ENABLE_JIT=1 check -j$(nproc)
# Currently, this environment only for system emulation testing
macOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: install-dependencies
run: |
brew install make dtc expect
- name: boot Linux kernel test
run: |
make clean && make ENABLE_SYSTEM=1 && make ENABLE_SYSTEM=1 artifact -j$(nproc)
.ci/boot-linux.sh
make ENABLE_SYSTEM=1 clean
coding-style:
needs: [detect-code-related-file-changes]
if: needs.detect-code-related-file-changes.outputs.has_code_related_changes == 'true'
Expand Down

0 comments on commit 3dcc502

Please sign in to comment.