Update GH actions workflow

This commit is contained in:
kimocoder 2023-04-02 13:01:14 +02:00
parent 9d5c4aac62
commit fe71d83686

View File

@ -9,7 +9,7 @@ jobs:
outputs: outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }} matrix: ${{ steps.set-matrix.outputs.matrix }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Avoid 0x0BDA - name: Avoid 0x0BDA
#Find devices that not use 0x0BDA instead of const USB_VENDOR_ID_REALTEK #Find devices that not use 0x0BDA instead of const USB_VENDOR_ID_REALTEK
run: grep -c -i "0x0BDA" os_dep/linux/usb_intf.c | grep -w 1 run: grep -c -i "0x0BDA" os_dep/linux/usb_intf.c | grep -w 1
@ -27,7 +27,7 @@ jobs:
needs: commontasks needs: commontasks
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
version: ${{fromJson(needs.commontasks.outputs.matrix)}} version: ${{fromJson(needs.commontasks.outputs.matrix)}}
#version: [4.9.248, 4.4.248] #version: [4.9.248, 4.4.248]
include: include:
@ -39,7 +39,7 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- name: install deb packages - name: install deb packages
env: env:
VERSION: ${{matrix.version }} VERSION: ${{matrix.version }}
if: ${{ !matrix.use_apt }} if: ${{ !matrix.use_apt }}
run: | run: |
@ -58,6 +58,6 @@ jobs:
run: | run: |
sudo apt-get install linux-headers-$(uname -r) sudo apt-get install linux-headers-$(uname -r)
echo "KVER=${{matrix.version }}" >> $GITHUB_ENV echo "KVER=${{matrix.version }}" >> $GITHUB_ENV
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: build - name: build
run: make KVER=$KVER run: make KVER=$KVER