Skip to content

[hal] E: Refactoring Exception Controller #8

[hal] E: Refactoring Exception Controller

[hal] E: Refactoring Exception Controller #8

Workflow file for this run

# Copyright(c) 2011-2024 The Maintainers of Nanvix.
# Licensed under the MIT License.
name: x86 Release
on: push
env:
TARGET_BRANCH: ${{ github.ref_name }}
jobs:
setup:
name: Setup
runs-on: ubuntu-latest
steps:
- name: Setup
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.hostname }}
username: ${{ secrets.username }}
key: ${{ secrets.sshkey }}
port: ${{ secrets.portnum }}
envs: TARGET_BRANCH
script: |
rm -rf kernel-release
git clone --recursive https://github.com/nanvix/kernel.git --branch ${TARGET_BRANCH} kernel-release
build:
name: Build
needs: setup
runs-on: ubuntu-latest
steps:
- name: Build
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.hostname }}
username: ${{ secrets.username }}
key: ${{ secrets.sshkey }}
port: ${{ secrets.portnum }}
script: |
cd kernel-release
make TOOLCHAIN_DIR=$HOME/toolchain RELEASE=yes TARGET=x86 LOG_LEVEL=trace all
test-isapc:
name: Test (isapc)
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Test
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.hostname }}
username: ${{ secrets.username }}
key: ${{ secrets.sshkey }}
port: ${{ secrets.portnum }}
script: |
cd kernel-release
make TIMEOUT=90 TOOLCHAIN_DIR=$HOME/toolchain RELEASE=yes TARGET=x86 LOG_LEVEL=trace MACHINE=isapc run | tee output.txt
echo "Magic String: $(cat output.txt | tail -n 1)"
[ "$(cat output.txt | tail -n 1)" != "PANIC: Hello World!" ] && exit 1 || exit 0 ;
test-pc:
name: Test (pc)
needs: [test-isapc]
runs-on: ubuntu-latest
steps:
- name: Test
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.hostname }}
username: ${{ secrets.username }}
key: ${{ secrets.sshkey }}
port: ${{ secrets.portnum }}
script: |
cd kernel-release
make TIMEOUT=90 TOOLCHAIN_DIR=$HOME/toolchain RELEASE=yes TARGET=x86 LOG_LEVEL=trace MACHINE=pc run | tee output.txt
echo "Magic String: $(cat output.txt | tail -n 1)"
[ "$(cat output.txt | tail -n 1)" != "PANIC: Hello World!" ] && exit 1 || exit 0 ;
cleanup:
name: Cleanup
needs: test-pc
if: always()
runs-on: ubuntu-latest
steps:
- name: Cleanup
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.hostname }}
username: ${{ secrets.username }}
key: ${{ secrets.sshkey }}
port: ${{ secrets.portnum }}
script: |
cd kernel-release
git checkout --force dev
git clean -fdx
git remote prune origin