Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
Signed-off-by: sbwml <[email protected]>
  • Loading branch information
sbwml committed Oct 12, 2024
1 parent 2726c80 commit bbeb54b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build-snapshots_kernel-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
build:
name: Build ${{ matrix.model }}-${{ matrix.tag.version }}
name: Build ${{ matrix.model }} kernel modules
runs-on: ubuntu-24.04
defaults:
run:
Expand All @@ -15,7 +15,6 @@ jobs:
matrix:
model:
- armv8
- nanopi-r4s
- nanopi-r5s
- x86_64
- netgear_r8500
Expand Down Expand Up @@ -70,8 +69,14 @@ jobs:
cd openwrt
make V=s IGNORE_ERRORS="n m"
- name: rename
working-directory: /builder
run: |
base_name=$(basename ${{ env.build_dir }}/openwrt/*-*.tar.gz)
kmod_name=$(echo $base_name | sed 's/~/-/g')
mv ${{ env.build_dir }}/openwrt/*-*.tar.gz ${{ env.build_dir }}/openwrt/$kmod_name
- name: Release kernel modules
if: ${{ matrix.model != 'nanopi-r4s' }}
uses: ncipollo/[email protected]
with:
name: kmod-snapshot
Expand All @@ -85,7 +90,6 @@ jobs:
${{ env.build_dir }}/openwrt/*-*.tar.gz
- name: Sync kernel modules
if: ${{ matrix.model != 'nanopi-r4s' }}
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.workflow_token }}
Expand Down

0 comments on commit bbeb54b

Please sign in to comment.