Skip to content

Commit d15765f

Browse files
ci: weekly builds
Signed-off-by: Anhad Singh <[email protected]>
1 parent ad77bef commit d15765f

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/weekly.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Weekly Aero Build
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
aero-build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v3
13+
14+
- name: Unshallow repo tags
15+
run: git fetch --prune --unshallow --tags
16+
17+
- name: Check if build is necessary
18+
run: test "$(git tag --points-at HEAD)" = ""
19+
20+
- name: Install dependencies
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y nasm meson ninja-build
24+
python3 -m pip install requests xbstrap
25+
sudo ./tools/deps.sh
26+
27+
- name: Build Sysroot
28+
run: |
29+
mkdir build
30+
31+
pushd build
32+
[ -f bootstrap.link ] || xbstrap init ..
33+
xbstrap install bash coreutils dwm alacritty
34+
popd
35+
36+
- name: Build Kernel
37+
run: ./aero.py --no-run
38+
39+
- name: Create weekly release
40+
uses: softprops/action-gh-release@v1
41+
with:
42+
name: Weekly Build ${{ env.TAG_DATE }}
43+
tag_name: nightly-${{ env.TAG_DATE }}
44+
body: Image of an up to date Aero weekly build :^)
45+
files: |
46+
build/aero.iso
47+
build/disk.img
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)