Merge pull request #10 from sndnvaps/master #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI for edk2 | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| arch: | |
| - ARM | |
| - AARCH64 | |
| - IA32 | |
| - X64 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: 'recursive' | |
| - name: Clone edk2 | |
| uses: actions/checkout@v2 | |
| with: | |
| repository: tianocore/edk2 | |
| submodules: 'recursive' | |
| ref: edk2-stable202105 | |
| path: edk2 | |
| - name: Install requires packages | |
| run: | | |
| sudo apt update | |
| sudo apt install --yes --no-install-recommends build-essential uuid-dev iasl nasm gcc-aarch64-linux-gnu gcc-arm-none-eabi gcc-i686-linux-gnu gettext python make | |
| - name: Build for ${{matrix.arch}} | |
| run: bash scripts/build-edk2.sh ${{matrix.arch}} | |
| - name: Upload Artifact SimpleInit-${{matrix.arch}}.efi | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| name: SimpleInit-${{matrix.arch}}.efi | |
| path: build-edk2/Build/SimpleInit/RELEASE_GCC5/${{matrix.arch}}/SimpleInitMain.efi | |
| - name: Upload Artifact SimpleInit-${{matrix.arch}}.debug | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| name: SimpleInit-${{matrix.arch}}.debug | |
| path: build-edk2/Build/SimpleInit/RELEASE_GCC5/${{matrix.arch}}/SimpleInitMain.debug | |
| - name: Upload Artifact KernelFdtDxe-${{matrix.arch}}.efi | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| name: KernelFdtDxe-${{matrix.arch}}.efi | |
| path: build-edk2/Build/SimpleInit/RELEASE_GCC5/${{matrix.arch}}/KernelFdtDxe.efi | |
| - name: Upload Artifact KernelFdtDxe-${{matrix.arch}}.debug | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| name: KernelFdtDxe-${{matrix.arch}}.debug | |
| path: build-edk2/Build/SimpleInit/RELEASE_GCC5/${{matrix.arch}}/KernelFdtDxe.debug |