Skip to content

Commit

Permalink
chore(ci): build for dsm 7.1 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
moetayuko committed Nov 19, 2023
1 parent 0dd3fc5 commit ab069c2
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/build-epyc7002.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,38 @@ on:

jobs:
build:
strategy:
matrix:
version: [7.1, 7.2]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Download toolchain
run: |
wget https://global.synologydownload.com/download/ToolChain/toolchain/7.2-63134/AMD%20x86%20Linux%20Linux%205.10.55%20%28epyc7002%29/epyc7002-gcc1220_glibc236_x86_64-GPL.txz
env_tarball=ds.epyc7002-${{ matrix.version }}.env.txz
wget https://global.synologydownload.com/download/ToolChain/toolkit/${{ matrix.version }}/epyc7002/$env_tarball
mkdir toolchain
tar xf epyc7002-gcc1220_glibc236_x86_64-GPL.txz -C toolchain
tar xf $env_tarball -C toolchain
- name: Download kernel source
run: |
wget https://global.synologydownload.com/download/ToolChain/toolkit/7.2/epyc7002/ds.epyc7002-7.2.dev.txz
dev_tarball=ds.epyc7002-${{ matrix.version }}.dev.txz
wget https://global.synologydownload.com/download/ToolChain/toolkit/${{ matrix.version }}/epyc7002/$dev_tarball
mkdir ksrc
tar xf ds.epyc7002-7.2.dev.txz -C ksrc
tar xf $dev_tarball -C ksrc
- name: Build
run: |
export BACKPORT_DIR=$PWD
export KLIB_BUILD=$PWD/ksrc/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib/modules/DSM-7.2/build
export CROSS_COMPILE=$PWD/toolchain/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-
export KLIB_BUILD=$PWD/ksrc/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib/modules/DSM-${{ matrix.version }}/build
export CROSS_COMPILE=$PWD/toolchain/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-
make defconfig-drm
make -j$(nproc) modules_copy
- name: Save Build Result
uses: actions/upload-artifact@v3
with:
name: i915_dsm_epyc7002
name: i915_dsm-${{ matrix.version }}_epyc7002
path: out/modules/

0 comments on commit ab069c2

Please sign in to comment.