-
Notifications
You must be signed in to change notification settings - Fork 35
38 lines (35 loc) · 1.28 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
34
35
36
37
38
name: release
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: 下载源码
uses: actions/checkout@v3
- name: 初始化
run: |
sudo apt update
sudo apt -y install gcc gcc-multilib nasm p7zip-full autoconf automake make patch binutils-dev liblzma-dev gcc-mingw-w64-i686
- name: 编译
run: |
make -C umbr
make -j -C g4dext
make -j -C g4eext
# make -C grubutils/fbinst OSTYPE=MINGW CC=i686-w64-mingw32-gcc
# make -C grubutils/loadbin
# make -C grubutils/makemod OSTYPE=MINGW CC=i686-w64-mingw32-gcc
# make -C grubutils/makerom OSTYPE=MINGW CC=i686-w64-mingw32-gcc
# make -C grubutils/wee
# make -C grubutils/weesetup OSTYPE=MINGW CC=i686-w64-mingw32-gcc
# 7z a grubutils.7z grubutils/fbinst/fbinst.exe grubutils/loadbin/*.bin grubutils/makemod/makemod.exe grubutils/makerom/makerom.exe grubutils/makerom/*.bin grubutils/weesetup/weesetup.exe
- name: 上传
continue-on-error: true
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
gh release delete latest --cleanup-tag --yes
gh release create latest -t "Development Build" g4dext-*.zip g4eext-*.zip
env:
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"