mirror of
https://github.com/limine-bootloader/limine
synced 2024-11-26 02:20:31 +03:00
misc: GitHub workflows test run
This commit is contained in:
parent
0673962817
commit
20055d3e11
60
.github/workflows/main.yml
vendored
Normal file
60
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
name: Limine
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build, create release, and upload artifacts
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install packages
|
||||
run: sudo apt install build-essential gcc-multilib
|
||||
|
||||
- name: Build the toolchain
|
||||
run: make toolchain
|
||||
|
||||
- name: Build the bootloader
|
||||
run: make bootloader
|
||||
|
||||
- name: Build limine-install-linux-x86_64
|
||||
run: make CFLAGS="-O2 -pipe -static" clean all
|
||||
|
||||
- name: Strip limine-install-linux-x86_64
|
||||
run: strip limine-install
|
||||
|
||||
- name: Rename limine-install-linux-x86_64
|
||||
run: mv limine-install limine-install-linux-x86_64
|
||||
|
||||
- name: Build limine-install-linux-x86_32
|
||||
uses: mintsuki/ubuntu-18.04-x86@0.1
|
||||
with:
|
||||
command: make CFLAGS="-m32 -O2 -pipe -static" clean all
|
||||
|
||||
- name: Strip limine-install-linux-x86_32
|
||||
uses: mintsuki/ubuntu-18.04-x86@0.1
|
||||
with:
|
||||
command: strip limine-install
|
||||
|
||||
- name: Rename limine-install-linux-x86_32
|
||||
uses: mintsuki/ubuntu-18.04-x86@0.1
|
||||
with:
|
||||
command: mv limine-install limine-install-linux-x86_32
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
draft: true
|
||||
files: |
|
||||
limine-install-linux-x86_64
|
||||
limine-install-linux-x86_32
|
||||
limine-pxe.bin
|
||||
limine-cd.bin
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue
Block a user