Skip to content

Commit

Permalink
更新编译脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
wjz304 committed Dec 20, 2024
1 parent 30dc27a commit 4cb8c98
Showing 1 changed file with 29 additions and 10 deletions.
39 changes: 29 additions & 10 deletions .github/workflows/modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ jobs:
matrix:
include:
- arch: x86_64
kver: 4.14.24
qver: 4.5.4
#- arch: x86_64
# qver: 5.0.0
#- arch: x86_64
# qver: 5.1.0
- arch: x86_64
kver: 5.10.60
qver: 5.2.0

runs-on: ubuntu-latest
steps:
Expand All @@ -53,19 +57,34 @@ jobs:
- name: Make modules
run: |
sudo -s # use root to compile
KVER=${{ matrix.kver }}
ROOT_PATH=${{ github.workspace }}
ARCH=${{ matrix.arch }}
QVER=${{ matrix.qver }}
DEVICE="TS-X89"
. qr-modules/compile.sh
echo "makeEnvDeploy"
makeEnvDeploy ${{ matrix.arch }} "${KVER%.*}"
makeEnvDeploy "${ROOT_PATH}" "${ARCH}" "${QVER}" "${DEVICE}"
echo "makemodules"
makemodules "qr-modules/src/${KVER}" "output/modules/${KVER}-qnap"
KVER=$(getKver "${ROOT_PATH}" "${ARCH}" "${QVER}" "${DEVICE}")
mkdir -p "output/modules/${KVER}-qnap"
makemodules "${ROOT_PATH}" "${ARCH}" "${QVER}" "${DEVICE}" "qr-modules/src/${KVER}" "output/modules/${KVER}-qnap"
- name: firmware
run: |
KVER=${{ matrix.kver }}
sudo -s # use root to compile
ROOT_PATH=${{ github.workspace }}
ARCH=${{ matrix.arch }}
QVER=${{ matrix.qver }}
DEVICE="TS-X89"
. qr-modules/compile.sh
KVER=$(getKver "${ROOT_PATH}" "${ARCH}" "${QVER}" "${DEVICE}")
mkdir -p output/firmware
mkdir -p "output/firmware"
echo "get firmware"
SOURCE=/tmp/linux-firmware
Expand All @@ -81,14 +100,14 @@ jobs:
- name: Tar to Artifacts
run: |
tar -zcf ${{ matrix.arch }}-${{ matrix.kver }}.tgz -C output .
tar -zcf ${{ matrix.arch }}-${{ matrix.qver }}.tgz -C output .
- name: Upload to Artifacts
uses: actions/upload-artifact@v4
with:
name: modules-${{ matrix.arch }}-${{ matrix.kver }}
name: modules-${{ matrix.arch }}-${{ matrix.qver }}
path: |
${{ matrix.arch }}-${{ matrix.kver }}.tgz
${{ matrix.arch }}-${{ matrix.qver }}.tgz
release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4cb8c98

Please sign in to comment.