forked from gregkh/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (57 loc) · 1.78 KB
/
release.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
56
57
58
59
60
61
62
63
64
65
66
name: Main
on: push
jobs:
build:
runs-on: ubuntu-latest
container:
image: illinoisrobert/kernel-build
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set ownership
run: |
# this is to fix GIT not liking owner of the checkout dir
# see: https://github.com/actions/runner/issues/2033
chown -R $(id -u):$(id -g) $PWD
- name: Build
run: |
make defconfig memorizer.config
make -j $(expr $(nproc) / 3 + 1)
make -j $(expr $(nproc) / 3 + 1) modules
# deb-pkg didn't work. (I didn't save the error.)
make -j $(expr $(nproc) / 3 + 1) deb-pkg
cp ../*.deb .
make -j $(expr $(nproc) / 3 + 1) tar-pkg
- name: Test
run: echo I really wish I knew what to do here.
- name: Patch
if: startsWith(github.ref, 'refs/tags/v')
run: |
set -ex
myref=${{github.ref}}
mytag=$(basename $myref)
baseref=$(echo $myref | sed s/-memor.*//)
basetag=$(basename $baseref)
git fetch --depth=1 origin tag "$basetag"
git diff -p "$basetag" "$myref" > "$mytag.patch"
- name: PDF
run: |
set -ex
make SPHINXDIRS="memorizer" pdfdocs htmldocs
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
vmlinux
vmlinux*.py
linux-*.tar
arch/x86_64/boot/bzImage
./*.patch
./*.deb
Documentation/output/memorizer/pdf/*.pdf
- name: Announce
if: startsWith(github.ref, 'refs/tags/')
run: echo do something here