misc: GitHub workflows test run

This commit is contained in:
mintsuki 2021-02-22 23:36:21 +01:00
parent 0673962817
commit 20055d3e11

60
.github/workflows/main.yml vendored Normal file
View 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 }}