mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Testing actions
This commit is contained in:
parent
4d2786d73e
commit
549e4251cd
46
.github/workflows/main.yml
vendored
Normal file
46
.github/workflows/main.yml
vendored
Normal 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
|
2
addons
2
addons
@ -1 +1 @@
|
|||||||
Subproject commit 20c0bb10fbd141e2776fe0f6d743dc7b3c19eccd
|
Subproject commit 11c4352a906678fcc6a861b598dacf97a1a223f9
|
@ -22,7 +22,7 @@ function die() {
|
|||||||
while read PLATFORM KVER; do
|
while read PLATFORM KVER; do
|
||||||
# Compile using docker
|
# Compile using docker
|
||||||
docker run --rm -t --user `id -u` -v "${TMP_PATH}":/output \
|
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-dev.ko" "${DEST_PATH}/rp-${PLATFORM}-${KVER}-dev.ko"
|
||||||
mv "${TMP_PATH}/redpill-prod.ko" "${DEST_PATH}/rp-${PLATFORM}-${KVER}-prod.ko"
|
mv "${TMP_PATH}/redpill-prod.ko" "${DEST_PATH}/rp-${PLATFORM}-${KVER}-prod.ko"
|
||||||
done < PLATFORMS
|
done < PLATFORMS
|
||||||
|
@ -43,4 +43,4 @@ sed -i "s|@@@TOOLKIT_VER@@@|${TOOLKIT_VER}|g" Dockerfile
|
|||||||
# Build
|
# Build
|
||||||
echo "Building... Drink a coffee and wait!"
|
echo "Building... Drink a coffee and wait!"
|
||||||
docker image rm syno-compiler >/dev/null 2>&1
|
docker image rm syno-compiler >/dev/null 2>&1
|
||||||
docker buildx build . --load --tag syno-compiler
|
docker buildx build . --load --tag fbelavenuto/syno-compiler
|
||||||
|
BIN
files/board/arpl/p3/addons/r8125/apollolake-4.4.180.tgz
Normal file
BIN
files/board/arpl/p3/addons/r8125/apollolake-4.4.180.tgz
Normal file
Binary file not shown.
BIN
files/board/arpl/p3/addons/r8125/broadwell-4.4.180.tgz
Normal file
BIN
files/board/arpl/p3/addons/r8125/broadwell-4.4.180.tgz
Normal file
Binary file not shown.
BIN
files/board/arpl/p3/addons/r8125/broadwellnk-4.4.180.tgz
Normal file
BIN
files/board/arpl/p3/addons/r8125/broadwellnk-4.4.180.tgz
Normal file
Binary file not shown.
BIN
files/board/arpl/p3/addons/r8125/denverton-4.4.180.tgz
Normal file
BIN
files/board/arpl/p3/addons/r8125/denverton-4.4.180.tgz
Normal file
Binary file not shown.
BIN
files/board/arpl/p3/addons/r8125/geminilake-4.4.180.tgz
Normal file
BIN
files/board/arpl/p3/addons/r8125/geminilake-4.4.180.tgz
Normal file
Binary file not shown.
25
files/board/arpl/p3/addons/r8125/manifest.yml
Normal file
25
files/board/arpl/p3/addons/r8125/manifest.yml
Normal 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
|
BIN
files/board/arpl/p3/addons/r8125/purley-4.4.180.tgz
Normal file
BIN
files/board/arpl/p3/addons/r8125/purley-4.4.180.tgz
Normal file
Binary file not shown.
BIN
files/board/arpl/p3/addons/r8125/v1000-4.4.180.tgz
Normal file
BIN
files/board/arpl/p3/addons/r8125/v1000-4.4.180.tgz
Normal file
Binary file not shown.
BIN
files/board/arpl/p3/addons/r8169/apollolake-4.4.180.tgz
Normal file
BIN
files/board/arpl/p3/addons/r8169/apollolake-4.4.180.tgz
Normal file
Binary file not shown.
BIN
files/board/arpl/p3/addons/r8169/broadwell-4.4.180.tgz
Normal file
BIN
files/board/arpl/p3/addons/r8169/broadwell-4.4.180.tgz
Normal file
Binary file not shown.
BIN
files/board/arpl/p3/addons/r8169/broadwellnk-4.4.180.tgz
Normal file
BIN
files/board/arpl/p3/addons/r8169/broadwellnk-4.4.180.tgz
Normal file
Binary file not shown.
BIN
files/board/arpl/p3/addons/r8169/bromolow-3.10.108.tgz
Normal file
BIN
files/board/arpl/p3/addons/r8169/bromolow-3.10.108.tgz
Normal file
Binary file not shown.
BIN
files/board/arpl/p3/addons/r8169/denverton-4.4.180.tgz
Normal file
BIN
files/board/arpl/p3/addons/r8169/denverton-4.4.180.tgz
Normal file
Binary file not shown.
BIN
files/board/arpl/p3/addons/r8169/geminilake-4.4.180.tgz
Normal file
BIN
files/board/arpl/p3/addons/r8169/geminilake-4.4.180.tgz
Normal file
Binary file not shown.
30
files/board/arpl/p3/addons/r8169/manifest.yml
Normal file
30
files/board/arpl/p3/addons/r8169/manifest.yml
Normal 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
|
BIN
files/board/arpl/p3/addons/r8169/purley-4.4.180.tgz
Normal file
BIN
files/board/arpl/p3/addons/r8169/purley-4.4.180.tgz
Normal file
Binary file not shown.
BIN
files/board/arpl/p3/addons/r8169/v1000-4.4.180.tgz
Normal file
BIN
files/board/arpl/p3/addons/r8169/v1000-4.4.180.tgz
Normal file
Binary file not shown.
14
install-addons.sh
Executable file
14
install-addons.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user