Skip to content

Commit

Permalink
Add initial github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Apr 30, 2024
0 parents commit 637de0a
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: build
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
https://github.com/loongson/build-tools/releases/download/2023.08.08/x86_64-cross-tools-loongarch64-binutils_2.41-gcc_13.2.0.tar.xz
tar -vxf x86_64-cross-tools-loongarch64-binutils_2.41-gcc_13.2.0.tar.xz -C /opt
- run: |
export PATH=/opt/cross-tools/bin:$PATH
export PACKAGES_PATH=$PWD/edk2:$PWD/edk2-platforms:$PWD/edk2-non-osi
export GCC5_LOONGARCH64_PREFIX=loongarch64-unknown-linux-gnu-
. edk2/edksetup.sh
make -C edk2/BaseTools
build --buildtarget=RELEASE --tagname=GCC5 --arch=LOONGARCH64 --platform=Platform/Loongson/LoongArchQemuPkg/Loongson.dsc
- uses: actions/upload-artifact@v4
with:
name: firmware
path: Build/LoongArchQemu/RELEASE_GCC5/FV/*.fd
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "edk2"]
path = edk2
url = https://github.com/tianocore/edk2.git
[submodule "edk2-non-osi"]
path = edk2-non-osi
url = https://github.com/tianocore/edk2-non-osi.git
[submodule "edk2-platforms"]
path = edk2-platforms
url = https://github.com/tianocore/edk2-platforms.git
1 change: 1 addition & 0 deletions edk2
Submodule edk2 added at 0c74aa
1 change: 1 addition & 0 deletions edk2-non-osi
Submodule edk2-non-osi added at 054cac
1 change: 1 addition & 0 deletions edk2-platforms
Submodule edk2-platforms added at 73cfdc

0 comments on commit 637de0a

Please sign in to comment.