-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.16 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: |
wget 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
- shell: bash
run: |
export PATH=/opt/cross-tools/bin:$PATH
export WORKSPACE=$PWD
export PACKAGES_PATH=$PWD/edk2:$PWD/edk2-platforms:$PWD/edk2-non-osi
export GCC5_LOONGARCH64_PREFIX=loongarch64-unknown-linux-gnu-
source 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
- uses: ncipollo/release-action@v1
with:
artifacts: Build/LoongArchQemu/RELEASE_GCC5/FV/*.fd