This repository has been archived by the owner on Aug 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
56 lines (40 loc) · 1.62 KB
/
autobuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# 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 }}