From 20055d3e11c3c588de49b5da199878c869a3fc4a Mon Sep 17 00:00:00 2001 From: mintsuki Date: Mon, 22 Feb 2021 23:36:21 +0100 Subject: [PATCH] misc: GitHub workflows test run --- .github/workflows/main.yml | 60 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..f23d8957 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 }}