-
Notifications
You must be signed in to change notification settings - Fork 80
81 lines (76 loc) · 1.88 KB
/
linux_gcc_gnu-efi.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Linux, gcc, gnu-efi
on:
push:
paths-ignore:
- '.gitignore'
- '.gitattributes'
- '**.cmd'
- '!set_grub_cpu.cmd'
- '**.md'
- '**.sh'
- '!set_grub_cpu.sh'
- '**.txt'
- '**.vbs'
pull_request:
paths-ignore:
- '.gitignore'
- '.gitattributes'
- '**.cmd'
- '!set_grub_cpu.cmd'
- '**.md'
- '**.sh'
- '!set_grub_cpu.sh'
- '**.txt'
- '**.vbs'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [x64, ia32, aa64, arm, riscv64]
include:
- arch: x64
pkg: gcc-mingw-w64-x86-64
tuple: x86_64-w64-mingw32-
- arch: ia32
pkg: gcc-mingw-w64-i686
tuple: i686-w64-mingw32-
- arch: aa64
pkg: gcc-aarch64-linux-gnu
tuple: aarch64-linux-gnu-
- arch: arm
pkg: gcc-arm-linux-gnueabi
tuple: arm-linux-gnueabi-
- arch: riscv64
pkg: gcc-riscv64-linux-gnu
tuple: riscv64-linux-gnu-
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Install gcc toolchain
run: sudo apt install ${{ matrix.pkg }}
- name: Patch GRUB
run: |
cd grub
git apply ../0001-GRUB-fixes.patch
cd ..
- name: Build drivers
run: make ARCH=${{ matrix.arch }} CROSS_COMPILE=${{ matrix.tuple }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: ${{ github.event_name == 'push' }}
with:
name: gcc_gnu-efi_${{ matrix.arch }}
path: src/*.efi
merge-artifacts:
runs-on: ubuntu-latest
needs: build
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: gcc_gnu-efi
delete-merged: true