Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
ci: action: Add a new step to test the output image on QEMU
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Polyakov <[email protected]>
  • Loading branch information
maxpoliak committed Oct 29, 2021
1 parent 68e3b5c commit 5e7df15
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/action-build-all-i386.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI i386 Build all
name: 'CI: i386: Build all Test'

on:
push:
Expand All @@ -13,13 +13,18 @@ env:

jobs:
build-test-all-components:
name: 'CI i386 Build all'
name: 'CI: i386: Build all Test'
runs-on: ubuntu-latest
env:
VERSION: unknown
steps:
- name: 'Step 1: Install all packages'
run: sudo apt-get install -yy build-essential gcc g++ gdb git unzip pax bison flex texinfo unzip python3-dev libncurses5-dev zlib1g-dev python-dev curl locales && sudo apt-get clean all
run: |
sudo apt-get update
sudo apt-get install -yy build-essential gcc g++ gdb git unzip pax bison flex texinfo unzip
sudo apt-get install -yy python3-dev libncurses5-dev zlib1g-dev python-dev curl locales
sudo apt-get install -yy qemu-system-i386
sudo apt-get clean all
- name: 'Step 2: Generating locales'
run: sudo localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
- name: 'Step 3: Clone the project repository'
Expand Down Expand Up @@ -49,3 +54,7 @@ jobs:
with:
name: '${{ env.VERSION }}-boot-disk-img-artifact'
path: boot-disk.img
- name: 'Step 11: Test the image on QEMU'
timeout-minutes: 10
run: |
qemu-system-i386 -m 128 -hda boot-disk.img -M q35 -nographic

0 comments on commit 5e7df15

Please sign in to comment.