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

Commit

Permalink
ci: action: Import coreboot image, if its in the revision archive
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 39830d6 commit bbfebe7
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions .github/workflows/action-build-all-i386.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: 'Step 2: Install all packages'
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 build-essential gcc g++ gdb git pax bison flex texinfo unzip
sudo apt-get install -yy python3-dev libncurses5-dev zlib1g-dev python-dev curl locales wget
sudo apt-get clean all
- name: 'Step 3: Generating locales'
Expand Down Expand Up @@ -143,29 +143,23 @@ jobs:
name: 'CI i386: Build coreboot'
runs-on: ubuntu-latest
steps:
- name: 'Step 1: Install packages for building'
- name: 'Step 1: Checkout Repo'
uses: actions/[email protected]
with:
submodules: true
fetch-depth: 0
- name: 'Step 2: Install packages for building'
run: |
sudo apt-get update
sudo apt-get install git build-essential gnat flex bison libncurses5-dev wget zlib1g-dev
- name: 'Step 2: Clone repo'
sudo apt-get install git build-essential gnat flex bison libncurses5-dev wget zlib1g-dev unzip
- name: 'Step 3: Build/Import coreboot image'
run: |
git clone https://review.coreboot.org/coreboot .
git submodule update --init --checkout
cversion=$(git describe --tag)
coreboot_artifact_path=$(bash ./ci/ci-import-coreboot-artifact.sh)
[[ "${coreboot_artifact_path}" == "does-not-exist" ]] && ./ci/ci-coreboot-build-image.sh || unzip ${coreboot_artifact_path}
cversion=$(basename *.rom -x86-p35-coreboot.rom)
echo ${cversion}
echo "::set-env name=VERSION::$cversion"
- name: 'Step 3: Build crossgcc ${{ env.VERSION }}'
run: make crossgcc-i386 CPUS=${{ steps.cpu-cores.outputs.count }}
- name: 'Step 4: Build coreboot ${{ env.VERSION }}'
run: |
make distclean
touch .config
./util/scripts/config --enable CONFIG_VENDOR_EMULATION
./util/scripts/config --enable CONFIG_BOARD_EMULATION_QEMU_X86_Q35
make olddefconfig
make
cp build/coreboot.rom ${{ env.VERSION }}-x86-p35-coreboot.rom
- name: 'Step 5: Upload artifact: ${{ env.VERSION }}-x86-p35-coreboot-artifact'
- name: 'Step 4: Upload artifact: ${{ env.VERSION }}-x86-p35-coreboot-artifact'
uses: actions/upload-artifact@v2
with:
name: 'x86-p35-coreboot-test-artifact'
Expand Down

0 comments on commit bbfebe7

Please sign in to comment.