Skip to content

Commit

Permalink
workflow: linux build system
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Sep 4, 2024
1 parent dfd63ad commit 83013bc
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build - linux

on:
[push, pull_request, workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt install build-essential nasm curl make

- name: Fetch and install toolchain
run: |
curl https://github.com/lux-operating-system/toolchain-x86_64/releases/download/github-runners/toolchain-linux-x86_64.tar.xz -o toolchain-linux-x86_64.tar.xz
tar -xvJf toolchain-linux-x86_64.tar.xz
mv toolchain $HOME/work/toolchain
mv host $HOME/work/host
echo "$HOME/work/toolchain/bin" >> $GITHUB_PATH
- name: Verify toolchain is executable
run: x86_64-lux-gcc -v

- name: Build kernel
run: make

- name: Clean up artifacts
run: |
rm -rf toolchain-linux-x86_64.tar.xz $HOME/work/toolchain $HOME/work/host
make clean

0 comments on commit 83013bc

Please sign in to comment.