-
Notifications
You must be signed in to change notification settings - Fork 84
41 lines (39 loc) · 1.05 KB
/
check.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
name: CI
on:
push:
branches:
- master
tags-ignore:
- 'release-*'
paths:
- 'luci-app-argon-config/**'
pull_request:
branches:
- master
jobs:
build:
name: Build the IPK
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Prepare
run: |
mkdir -p bin/luci-app-argon-config
cp -rf ./luasrc ./po ./root ./Makefile ./bin/luci-app-argon-config
- name: Docker Build
run: |
docker pull openwrt/sdk
docker run --rm -u root -v "$(pwd)"/bin/:/home/build/openwrt/bin -v ${{ github.workspace }}/.github/workflows:/home/build/workflows openwrt/sdk /bin/sh /home/build/workflows/build.sh
- name: Upload app
uses: actions/upload-artifact@v3
with:
name: luci-app-argon-config
path: ./bin/packages/x86_64/base/*argon-config*
if-no-files-found: error
- name: Upload Log
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: buildlog
path: bin/logs.tar.xz