misc: Update gh workflow
This commit is contained in:
parent
0bd4e297a5
commit
3e9eee3b0c
82
.github/workflows/main.yml
vendored
82
.github/workflows/main.yml
vendored
@ -14,47 +14,93 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install packages
|
||||
run: sudo apt install build-essential
|
||||
- name: Build the toolchain (BIOS)
|
||||
uses: mintsuki-org/debian-x86_64@v0.3
|
||||
with:
|
||||
command: make toolchain-bios
|
||||
|
||||
- name: Build the toolchain
|
||||
run: make toolchain
|
||||
- name: Build the toolchain (UEFI)
|
||||
uses: mintsuki-org/debian-x86_64@v0.3
|
||||
with:
|
||||
command: make toolchain-uefi
|
||||
|
||||
- name: Build the bootloader
|
||||
run: make bootloader
|
||||
uses: mintsuki-org/debian-x86_64@v0.3
|
||||
with:
|
||||
command: apt-get update && apt-get install nasm -y && make
|
||||
|
||||
- name: Build limine-install-linux-x86_64
|
||||
run: make CFLAGS="-O2 -pipe -static" clean all
|
||||
uses: mintsuki-org/debian-x86_64@v0.3
|
||||
with:
|
||||
command: make CFLAGS="-O2 -pipe -static" bin/limine-install
|
||||
|
||||
- name: Strip limine-install-linux-x86_64
|
||||
run: strip limine-install
|
||||
uses: mintsuki-org/debian-x86_64@v0.3
|
||||
with:
|
||||
command: strip bin/limine-install
|
||||
|
||||
- name: Rename limine-install-linux-x86_64
|
||||
run: mv limine-install limine-install-linux-x86_64
|
||||
uses: mintsuki-org/debian-x86_64@v0.3
|
||||
with:
|
||||
command: mv bin/limine-install bin/limine-install-linux-x86_64
|
||||
|
||||
- name: Remove limine-hdd.o
|
||||
uses: mintsuki-org/debian-x86_64@v0.3
|
||||
with:
|
||||
command: rm limine-hdd.o
|
||||
|
||||
- name: Build limine-install-linux-x86_32
|
||||
uses: mintsuki/ubuntu-18.04-x86@0.1
|
||||
uses: mintsuki-org/debian-i386@v0.3
|
||||
with:
|
||||
command: make CFLAGS="-O2 -pipe -static" clean all
|
||||
command: make CFLAGS="-O2 -pipe -static" bin/limine-install
|
||||
|
||||
- name: Strip limine-install-linux-x86_32
|
||||
uses: mintsuki/ubuntu-18.04-x86@0.1
|
||||
uses: mintsuki-org/debian-i386@v0.3
|
||||
with:
|
||||
command: strip limine-install
|
||||
command: strip bin/limine-install
|
||||
|
||||
- name: Rename limine-install-linux-x86_32
|
||||
uses: mintsuki/ubuntu-18.04-x86@0.1
|
||||
uses: mintsuki-org/debian-x86_64@v0.3
|
||||
with:
|
||||
command: mv limine-install limine-install-linux-x86_32
|
||||
command: mv bin/limine-install bin/limine-install-linux-x86_32
|
||||
|
||||
- name: Remove limine-hdd.o
|
||||
uses: mintsuki-org/debian-x86_64@v0.3
|
||||
with:
|
||||
command: rm limine-hdd.o
|
||||
|
||||
- name: Build and strip limine-install-win32
|
||||
uses: mintsuki-org/debian-x86_64@v0.3
|
||||
with:
|
||||
command: apt-get update && apt-get install gcc-mingw-w64 -y && make CC="i686-w64-mingw32-gcc" OBJCOPY="i686-w64-mingw32-objcopy" CFLAGS="-O2 -pipe" bin/limine-install && i686-w64-mingw32-strip bin/limine-install.exe
|
||||
|
||||
- name: Rename limine-install-linux-win32
|
||||
uses: mintsuki-org/debian-x86_64@v0.3
|
||||
with:
|
||||
command: mv bin/limine-install.exe bin/limine-install-win32.exe
|
||||
|
||||
- name: Rename bin directory
|
||||
uses: mintsuki-org/debian-x86_64@v0.3
|
||||
with:
|
||||
command: mv bin limine-binary-${GITHUB_REF##*/}
|
||||
|
||||
- name: Package ZIP
|
||||
uses: mintsuki-org/debian-x86_64@v0.3
|
||||
with:
|
||||
command: apt-get update && apt-get install zip -y && zip -r limine-binary-${GITHUB_REF##*/}.zip limine-binary-${GITHUB_REF##*/}
|
||||
|
||||
- name: Package tar.xz
|
||||
uses: mintsuki-org/debian-x86_64@v0.3
|
||||
with:
|
||||
command: tar -Jcf limine-binary-${GITHUB_REF##*/}.tar.xz limine-binary-${GITHUB_REF##*/}
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
draft: true
|
||||
fail_on_unmatched_files: true
|
||||
files: |
|
||||
limine-install-linux-x86_64
|
||||
limine-install-linux-x86_32
|
||||
limine-pxe.bin
|
||||
limine-cd.bin
|
||||
limine-binary-*.zip
|
||||
limine-binary-*.tar.xz
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user