Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
voltrare committed Jun 22, 2022
0 parents commit effaad0
Show file tree
Hide file tree
Showing 4 changed files with 740 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This is a basic workflow to help you get started with Actions

name: AutoBuild

# Controls when the workflow will run
on:

watch:
types: [started]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Fetch latest wsl kernel source
run: git clone https://github.com/microsoft/WSL2-Linux-Kernel .

- name: Checkout
uses: actions/[email protected]
with:
path: overlay


- name: Install build tool chain
run: sudo apt update && sudo apt install build-essential flex bison libssl-dev libelf-dev dwarves -y

- name: Enable drivers for anbox
run: cp Microsoft/config-wsl .config && cat overlay/config-append >> .config

- name: Build linux kernel
run: make

- name: Get date
run: echo "date=$(date +'%m/%d_%Y_%H/%M')" >> $GITHUB_ENV

- name: Upload a Build Artifact
uses: actions/[email protected]
with:
path: arch/x86/boot/bzImage

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.REPO_TOKEN }}"
files: arch/x86/boot/bzImage
prerelease: false
automatic_release_tag: ${{ env.date }}


Loading

0 comments on commit effaad0

Please sign in to comment.