Testing actions

This commit is contained in:
Fabio Belavenuto 2022-07-02 12:56:20 -03:00
parent 4d2786d73e
commit 549e4251cd
23 changed files with 119 additions and 4 deletions

46
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,46 @@
name: Build img
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events
push:
branches:
- "main"
- "dev"
pull_request:
branches:
- "main"
- "dev"
# 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:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a set of commands using the runners shell
- name: Build img
id: build
run: |
VERSION=`<VERSION`
echo "::set-output name=VERSION::$VERSION"
./compile-lkm.sh
./img-gen.sh
mkdir /output
cp "arpl-${VERSION}.img.zip" /output
# Upload img
- name: Upload
uses: actions/upload-artifact@v3
with:
name: Upload arpl-{{ steps.bulid.outputs.VERSION }}.img.zip
path: /output

View File

@ -1 +1 @@
0.1-alpha
0.1-alpha2

2
addons

@ -1 +1 @@
Subproject commit 20c0bb10fbd141e2776fe0f6d743dc7b3c19eccd
Subproject commit 11c4352a906678fcc6a861b598dacf97a1a223f9

View File

@ -22,7 +22,7 @@ function die() {
while read PLATFORM KVER; do
# Compile using docker
docker run --rm -t --user `id -u` -v "${TMP_PATH}":/output \
-v "${PWD}/redpill-lkm":/input syno-compiler compile-lkm ${PLATFORM}
-v "${PWD}/redpill-lkm":/input fbelavenuto/syno-compiler compile-lkm ${PLATFORM}
mv "${TMP_PATH}/redpill-dev.ko" "${DEST_PATH}/rp-${PLATFORM}-${KVER}-dev.ko"
mv "${TMP_PATH}/redpill-prod.ko" "${DEST_PATH}/rp-${PLATFORM}-${KVER}-prod.ko"
done < PLATFORMS

View File

@ -43,4 +43,4 @@ sed -i "s|@@@TOOLKIT_VER@@@|${TOOLKIT_VER}|g" Dockerfile
# Build
echo "Building... Drink a coffee and wait!"
docker image rm syno-compiler >/dev/null 2>&1
docker buildx build . --load --tag syno-compiler
docker buildx build . --load --tag fbelavenuto/syno-compiler

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,25 @@
version: 1
name: r8125
description: "Driver for RealTek RTL8125 2.5Gigabit PCI-e Ethernet adapter"
available-for:
apollolake-4.4.180:
install-script: &script "install.sh"
modules: true
broadwell-4.4.180:
install-script: *script
modules: true
broadwellnk-4.4.180:
install-script: *script
modules: true
denverton-4.4.180:
install-script: *script
modules: true
geminilake-4.4.180:
install-script: *script
modules: true
v1000-4.4.180:
install-script: *script
modules: true
purley-4.4.180:
install-script: *script
modules: true

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,30 @@
version: 1
name: r8169
description: "Driver for Realtek R8169 Ethernet adapters"
conflits:
- r8168
available-for:
bromolow-3.10.108:
install-script: &script "install.sh"
modules: true
apollolake-4.4.180:
install-script: *script
modules: true
broadwell-4.4.180:
install-script: *script
modules: true
broadwellnk-4.4.180:
install-script: *script
modules: true
denverton-4.4.180:
install-script: *script
modules: true
geminilake-4.4.180:
install-script: *script
modules: true
v1000-4.4.180:
install-script: *script
modules: true
purley-4.4.180:
install-script: *script
modules: true

Binary file not shown.

Binary file not shown.

14
install-addons.sh Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
SRC_PATH="addons"
DEST_PATH="files/board/arpl/p3/addons"
echo "Installing addons to ${DEST_PATH}"
for PKG in `ls ${SRC_PATH}/*.addon`; do
ADDON=`basename ${PKG} | sed 's|.addon||'`
mkdir -p "${DEST_PATH}/${ADDON}"
echo "Extracting ${PKG} to ${DEST_PATH}/${ADDON}"
tar xaf "${PKG}" -C "${DEST_PATH}/${ADDON}"
done