diff --git a/.github/workflows/ax3200.yaml b/.github/workflows/ax3200.yaml index 0cf02ce..e6f99b7 100644 --- a/.github/workflows/ax3200.yaml +++ b/.github/workflows/ax3200.yaml @@ -4,7 +4,6 @@ name: Build OpenWRT for Xiaomi AX3200 on: workflow_dispatch: - push: env: REMOTE_REPOSITORY: openwrt/openwrt @@ -14,8 +13,25 @@ env: ROLE_CONFIG: configs/common/dumb_ap jobs: + check_commits: + name: Check Commits + runs-on: ubuntu-24.04 + outputs: + latest_commit_sha: ${{ steps.get_sha.outputs.latest_commit_sha }} + steps: + - name: Checkout remote repository + uses: actions/checkout@v4 + with: + repository: ${{ env.REMOTE_REPOSITORY }} + ref: ${{ env.REMOTE_BRANCH }} + + - name: Get the latest commit SHA + id: get_sha + run: echo "latest_commit_sha=$(git rev-parse HEAD)" >> $GITHUB_ENV + build: name: Build OpenWRT for AX3200 + needs: [check_commits] runs-on: ubuntu-24.04 steps: - name: Install dependencies diff --git a/.github/workflows/ax3600.yaml b/.github/workflows/ax3600.yaml index 9de12d1..cd5b5dd 100644 --- a/.github/workflows/ax3600.yaml +++ b/.github/workflows/ax3600.yaml @@ -5,11 +5,8 @@ name: Build OpenWRT for Xiaomi AX3600 NSS build on: workflow_dispatch: - push: env: - # REMOTE_REPOSITORY: openwrt/openwrt - # REMOTE_BRANCH: main REMOTE_REPOSITORY: qosmio/openwrt-ipq REMOTE_BRANCH: qualcommax-6.x-nss-wifi RELEASE_PREFIX: IPQ_8074_ax3600 @@ -18,8 +15,25 @@ env: NSS_CONFIG: configs/common/nss jobs: + check_commits: + name: Check Commits + runs-on: ubuntu-24.04 + outputs: + latest_commit_sha: ${{ steps.get_sha.outputs.latest_commit_sha }} + steps: + - name: Checkout remote repository + uses: actions/checkout@v4 + with: + repository: ${{ env.REMOTE_REPOSITORY }} + ref: ${{ env.REMOTE_BRANCH }} + + - name: Get the latest commit SHA + id: get_sha + run: echo "latest_commit_sha=$(git rev-parse HEAD)" >> $GITHUB_ENV + build: name: Build OpenWRT for AX3600 + needs: [check_commits] runs-on: ubuntu-24.04 steps: - name: Install dependencies diff --git a/.github/workflows/bpi-r4.yaml b/.github/workflows/bpi-r4.yaml index 6403d60..326f6b7 100644 --- a/.github/workflows/bpi-r4.yaml +++ b/.github/workflows/bpi-r4.yaml @@ -4,22 +4,34 @@ name: Build OpenWRT for Banana Pi R4 on: workflow_dispatch: - push: env: REMOTE_REPOSITORY: openwrt/openwrt REMOTE_BRANCH: main - # REMOTE_REPOSITORY: danpawlik/openwrt - # REMOTE_BRANCH: bpi-r4 - # MTK_PPE_ENTRIES_SHIFT_PATCH: 001-32k_ppe.patch - # PREFETCH_PATCH: 002-prefetch.patch RELEASE_PREFIX: Mediatek_mt7988a_bpi-r4 DEVICE_CONFIG: configs/mediatek/mt7988a/bpi-r4 ROLE_CONFIG: configs/common/main-router jobs: + check_commits: + name: Check Commits + runs-on: ubuntu-24.04 + outputs: + latest_commit_sha: ${{ steps.get_sha.outputs.latest_commit_sha }} + steps: + - name: Checkout remote repository + uses: actions/checkout@v4 + with: + repository: ${{ env.REMOTE_REPOSITORY }} + ref: ${{ env.REMOTE_BRANCH }} + + - name: Get the latest commit SHA + id: get_sha + run: echo "latest_commit_sha=$(git rev-parse HEAD)" >> $GITHUB_ENV + build: name: Build OpenWRT for BPI-R4 + needs: [check_commits] runs-on: ubuntu-24.04 steps: - name: Install dependencies @@ -37,17 +49,6 @@ jobs: repository: ${{ env.REMOTE_REPOSITORY }} ref: ${{ env.REMOTE_BRANCH }} -# - name: Checkout current repository -# uses: actions/checkout@v4 -# with: -# path: "custom_repo" -# -# - name: Configure firmware image -# run: | -# cp custom_repo/${{ env.DEVICE_CONFIG }} .config -# cat custom_repo/${{ env.ROLE_CONFIG }} >> .config -# make defconfig - - name: Update and install feeds run: | ./scripts/feeds update -a @@ -99,6 +100,7 @@ jobs: uses: actions/download-artifact@v4 with: name: bpi_r4-images + - name: Extract artifacts run: tar xf bpi_r4-images.tar