-
Notifications
You must be signed in to change notification settings - Fork 80
57 lines (53 loc) · 1.28 KB
/
windows_msvc_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
name: Windows, MSVC, 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: windows-latest
strategy:
matrix:
arch: [x64, ia32, aa64, arm]
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: Patch GRUB
run: |
cd grub
git apply ..\0001-GRUB-fixes.patch
cd ..
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
- name: Build drivers
run: |
msbuild efifs.sln /m /p:Configuration=Debug,Platform=${{ matrix.arch }}
msbuild efifs.sln /m /p:Configuration=Release,Platform=${{ matrix.arch }}
- name: Upload artifacts
uses: actions/upload-artifact@v2
if: ${{ github.event_name == 'push' }}
with:
name: msvc_gnu-efi
path: ${{ matrix.arch }}/Release/*.efi