diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..163a508 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: ci +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] +jobs: + rax3000m-op23_05_4: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.x + - name: Install dependencies + run: | + sudo apt install -y u-boot-tools device-tree-compiler + - name: Test + run: | + wget https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/openwrt-23.05.4-mediatek-filogic-cmcc_rax3000m-squashfs-sysupgrade.itb && \ + python3 patch_itb.py openwrt-23.05.4-mediatek-filogic-cmcc_rax3000m-squashfs-sysupgrade.itb patched.itb && \ + (echo "04b38ffa06ccfe85c7337d69eedb1f9d patched.itb" | md5sum -c)