mtk-wifi-fw/.github/workflows/ci.yml

38 lines
1.2 KiB
YAML

name: ci
on:
push:
pull_request:
schedule:
- cron: '17 3 * * 1' # weekly: track upstream blob updates
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Fetch MediaTek WiFi blobs (linux-firmware HEAD)
run: tools/fetch_blobs.sh firmware/mediatek
- name: Tests (golden manifests, ELF emitter)
run: make test
env:
MTK_FW_DIR: ${{ github.workspace }}/firmware/mediatek
track:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clone linux-firmware history
run: |
git clone --no-checkout https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git lf
- name: Walk blob history
run: python3 tools/fw_history.py lf -o /tmp/history.jsonl
- name: Report new revisions since last committed dataset
run: |
diff <(cat dataset/history.jsonl) /tmp/history.jsonl > /tmp/history.diff || true
wc -l /tmp/history.diff
head -100 /tmp/history.diff || true
- uses: actions/upload-artifact@v4
with:
name: upstream-history-${{ github.run_id }}
path: /tmp/history.jsonl