-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (39 loc) · 1.36 KB
/
unstable-pkg.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
name: unstable-package-builder
on:
push:
branches: [ next ]
pull_request:
branches: [ next ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install
run: sudo apt-get update -qqy && sudo apt-get install -qqy devio git rsync
- name: Build
run: |
echo "building base firmware with armv7 kernel modules..."
make alt-f_base_defconfig
sed -i 's,base,dns327,g' .config
sed -i 's,pkgs/linux.config,dns327/linux.config,g' .config
make
fakeroot ./board/dns32x/mkpkg.sh -force kernel-modules-armv7
echo "reconfiguring for armv5 kernel..."
rm -fR ./output/target/usr/lib/modules/* ./output/build/linux-{4,5}*
make alt-f_base_defconfig
make
echo "building packages..."
./board/dns32x/build-pkgs.sh
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACCESS_TOKEN: ${{ secrets.CROSS_DEPLOY_KEY }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
REPOSITORY_NAME: awanga/alt-f-next_binaries
BRANCH: pkgs/unstable # The branch the action should deploy to.
FOLDER: output/pkgs # The folder the action should deploy.