Skip to content

Commit

Permalink
github/workflows: Added build targets without '-D WINDOWS_10_IA32' fo…
Browse files Browse the repository at this point in the history
…r IA32.
  • Loading branch information
Mikhail Krichanov committed Oct 29, 2024
1 parent 985923c commit 5ff060b
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
TARGETS: RELEASE,DEBUG,NOOPT
TOOLCHAIN: GCC

- name: Build ArmVirtQemu
- name: Build ArmVirtQemu for Linux
if: always()
run: ./efibuild.sh
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_nolto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
TARGETS: RELEASE,DEBUG
TOOLCHAIN: GCC

- name: Build ArmVirtQemu
- name: Build ArmVirtQemu for Linux
if: always()
run: ./efibuild.sh
env:
Expand Down
130 changes: 130 additions & 0 deletions .github/workflows/build_x86.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,30 @@ jobs:
SELFPKG: MdePkg
SKIP_BUILD: 1

- name: Build OvmfPkgIa32 for Linux
if: always()
run: ./efibuild.sh
env:
SELFPKG: OvmfPkgIa32
SELFPKG_DIR: OvmfPkg
ARCHS: IA32
SKIP_TESTS: 1
SKIP_PACKAGE: 1
BUILD_ARGUMENTS: -D DEBUG_ON_SERIAL_PORT

- name: Prepare artifacts with firmwares for Linux
if: always()
run: |
IFS=', ' read -r -a TARGETS <<< "$TARGETS"
for target in "${TARGETS[@]}"; do
mkdir -p ./firmware_artifacts/Ovmf/Linux/Ia32/"$target"_"$TOOLCHAIN"
cp ./Build/OvmfIa32/"$target"_"$TOOLCHAIN"/FV/OVMF.fd ./firmware_artifacts/Ovmf/Linux/Ia32/"$target"_"$TOOLCHAIN"/FW.fd
done
rm -r ./Build/*
env:
TARGETS: RELEASE,DEBUG,NOOPT
TOOLCHAIN: XCODE5

- name: Build OvmfPkgIa32
if: always()
run: ./efibuild.sh
Expand Down Expand Up @@ -167,6 +191,30 @@ jobs:
SELFPKG: MdePkg
SKIP_BUILD: 1

- name: Build OvmfPkgIa32 for Linux
if: always()
run: ./efibuild.sh
env:
SELFPKG: OvmfPkgIa32
SELFPKG_DIR: OvmfPkg
ARCHS: IA32
SKIP_TESTS: 1
SKIP_PACKAGE: 1
BUILD_ARGUMENTS: -D DEBUG_ON_SERIAL_PORT

- name: Prepare artifacts with firmwares for Linux
if: always()
run: |
IFS=', ' read -r -a TARGETS <<< "$TARGETS"
for target in "${TARGETS[@]}"; do
mkdir -p ./firmware_artifacts/Ovmf/Linux/Ia32/"$target"_"$TOOLCHAIN"
cp ./Build/OvmfIa32/"$target"_"$TOOLCHAIN"/FV/OVMF.fd ./firmware_artifacts/Ovmf/Linux/Ia32/"$target"_"$TOOLCHAIN"/FW.fd
done
rm -r ./Build/*
env:
TARGETS: RELEASE,DEBUG,NOOPT
TOOLCHAIN: VS2019

- name: Build OvmfPkgIa32
if: always()
run: ./efibuild.sh
Expand Down Expand Up @@ -260,6 +308,32 @@ jobs:
SELFPKG: MdePkg
SKIP_BUILD: 1

- name: Build OvmfPkgIa32 for Linux
if: always()
run: docker compose run build-package
env:
SELFPKG: OvmfPkgIa32
SELFPKG_DIR: OvmfPkg
TOOLCHAINS: CLANGPDB
ARCHS: IA32
TARGETS: RELEASE,DEBUG,NOOPT
SKIP_TESTS: 1
SKIP_PACKAGE: 1
BUILD_ARGUMENTS: -D DEBUG_ON_SERIAL_PORT

- name: Prepare artifacts with firmwares for Linux
if: always()
run: |
IFS=', ' read -r -a TARGETS <<< "$TARGETS"
for target in "${TARGETS[@]}"; do
mkdir -p ./firmware_artifacts/Ovmf/Linux/Ia32/"$target"_"$TOOLCHAIN"
cp ./Build/OvmfIa32/"$target"_"$TOOLCHAIN"/FV/OVMF.fd ./firmware_artifacts/Ovmf/Linux/Ia32/"$target"_"$TOOLCHAIN"/FW.fd
done
rm -r ./Build/*
env:
TARGETS: RELEASE,DEBUG,NOOPT
TOOLCHAIN: CLANGPDB

- name: Build OvmfPkgIa32
if: always()
run: docker compose run build-package
Expand Down Expand Up @@ -365,6 +439,32 @@ jobs:
SELFPKG: MdePkg
SKIP_BUILD: 1

- name: Build OvmfPkgIa32 for Linux
if: always()
run: docker compose run build-package
env:
SELFPKG: OvmfPkgIa32
SELFPKG_DIR: OvmfPkg
TOOLCHAINS: CLANGDWARF
ARCHS: IA32
TARGETS: RELEASE,DEBUG,NOOPT
SKIP_TESTS: 1
SKIP_PACKAGE: 1
BUILD_ARGUMENTS: -D DEBUG_ON_SERIAL_PORT

- name: Prepare artifacts with firmwares for Linux
if: always()
run: |
IFS=', ' read -r -a TARGETS <<< "$TARGETS"
for target in "${TARGETS[@]}"; do
mkdir -p ./firmware_artifacts/Ovmf/Linux/Ia32/"$target"_"$TOOLCHAIN"
cp ./Build/OvmfIa32/"$target"_"$TOOLCHAIN"/FV/OVMF.fd ./firmware_artifacts/Ovmf/Linux/Ia32/"$target"_"$TOOLCHAIN"/FW.fd
done
rm -r ./Build/*
env:
TARGETS: RELEASE,DEBUG,NOOPT
TOOLCHAIN: CLANGDWARF

- name: Build OvmfPkgIa32
if: always()
run: docker compose run build-package
Expand Down Expand Up @@ -470,6 +570,32 @@ jobs:
SELFPKG: MdePkg
SKIP_BUILD: 1

- name: Build OvmfPkgIa32 for Linux
if: always()
run: docker compose run build-package
env:
SELFPKG: OvmfPkgIa32
SELFPKG_DIR: OvmfPkg
TOOLCHAINS: GCC
ARCHS: IA32
TARGETS: RELEASE,DEBUG,NOOPT
SKIP_TESTS: 1
SKIP_PACKAGE: 1
BUILD_ARGUMENTS: -D DEBUG_ON_SERIAL_PORT

- name: Prepare artifacts with firmwares for Linux
if: always()
run: |
IFS=', ' read -r -a TARGETS <<< "$TARGETS"
for target in "${TARGETS[@]}"; do
mkdir -p ./firmware_artifacts/Ovmf/Linux/Ia32/"$target"_"$TOOLCHAIN"
cp ./Build/OvmfIa32/"$target"_"$TOOLCHAIN"/FV/OVMF.fd ./firmware_artifacts/Ovmf/Linux/Ia32/"$target"_"$TOOLCHAIN"/FW.fd
done
rm -r ./Build/*
env:
TARGETS: RELEASE,DEBUG,NOOPT
TOOLCHAIN: GCC

- name: Build OvmfPkgIa32
if: always()
run: docker compose run build-package
Expand Down Expand Up @@ -633,6 +759,8 @@ jobs:
echo Checking "$PACKAGE""$arch" "$target"_"$TOOLCHAIN"
python3 test_qemu_fw.py ./firmware_artifacts/"$PACKAGE"/"$arch"/"$target"_"$TOOLCHAIN"/FW.fd
done
echo Checking "$PACKAGE"Ia32 "$target"_"$TOOLCHAIN" for Linux
python3 test_qemu_fw.py ./firmware_artifacts/"$PACKAGE"/Linux/Ia32/"$target"_"$TOOLCHAIN"/FW.fd
done
env:
PACKAGE: ${{ matrix.package.name }}
Expand All @@ -650,6 +778,8 @@ jobs:
echo Checking "$PACKAGE""$arch" "$target"_"$TOOLCHAIN"
python3 test_qemu_fw.py ./firmware_artifacts/"$PACKAGE"/"$arch"/"$target"_"$TOOLCHAIN"/FW.fd --test-linux
done
echo Checking "$PACKAGE"Ia32 "$target"_"$TOOLCHAIN" for Linux
python3 test_qemu_fw.py ./firmware_artifacts/"$PACKAGE"/Linux/Ia32/"$target"_"$TOOLCHAIN"/FW.fd --test-linux
done
env:
PACKAGE: ${{ matrix.package.name }}
Expand Down

0 comments on commit 5ff060b

Please sign in to comment.