Skip to content

Commit

Permalink
Do not build module packages; add version info to the tag
Browse files Browse the repository at this point in the history
  • Loading branch information
danpawlik committed Jul 23, 2024
1 parent 05cff93 commit b2d5e3c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 10 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ax3200.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ jobs:
cat custom_repo/${{ env.ROLE_CONFIG }} >> .config
make defconfig
- name: Remove packages that are marked as modules
run: |
grep "=m" .config | grep -v 'CONFIG_PACKAGE_libustream-mbedtls=m' | while read -r line; do module=$(echo "$line" | cut -f1 -d'='); sed -i "s/^$line$/# $module is not set/" .config; done
- name: Download dependencies
run: make -j $(nproc) download

Expand Down Expand Up @@ -77,17 +81,20 @@ jobs:
- name: Extract artifacts
run: tar xf ax_3200-images.tar

- name: Get version
run: echo "VERSION_INFO=$(cat version.buildinfo)" >> $GITHUB_ENV

- name: Get current date
run: echo "RELEASE_DATE=$(date +%F)" >> $GITHUB_ENV

- name: Create release
uses: softprops/action-gh-release@master
with:
files: bin/targets/mediatek/mt7622/*
tag_name: ${{ env.RELEASE_PREFIX }}-${{ env.RELEASE_DATE }}
name: Openwrt AX3200 ${{ env.RELEASE_DATE }}
tag_name: ${{ env.RELEASE_PREFIX }}-${{ env.RELEASE_DATE }}-${{ env.VERSION_INFO }}
name: OpenWRT AX3200 ${{ env.RELEASE_DATE }}-${{ env.VERSION_INFO }}
body: |
Updated prebuilt images for ${{ env.RELEASE_DATE }}
Updated prebuilt images for ${{ env.RELEASE_DATE }} based on ${{ env.VERSION_INFO }}
Build Commit: ${{ needs.check_commits.outputs.latest_commit_sha }}
- name: Clean up old releases
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/ax3600.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ jobs:
cat custom_repo/${{ env.NSS_CONFIG }} >> .config
make defconfig
- name: Remove packages that are marked as modules
run: |
grep "=m" .config | grep -v 'CONFIG_PACKAGE_libustream-mbedtls=m' | while read -r line; do module=$(echo "$line" | cut -f1 -d'='); sed -i "s/^$line$/# $module is not set/" .config; done
- name: Download dependencies
run: make -j $(nproc) download

Expand Down Expand Up @@ -82,17 +86,20 @@ jobs:
- name: Extract artifacts
run: tar xf ax_3600-images.tar

- name: Get version
run: echo "VERSION_INFO=$(cat version.buildinfo)" >> $GITHUB_ENV

- name: Get current date
run: echo "RELEASE_DATE=$(date +%F)" >> $GITHUB_ENV

- name: Create release
uses: softprops/action-gh-release@master
with:
files: bin/targets/qualcommax/ipq807x/*
tag_name: ${{ env.RELEASE_PREFIX }}-${{ env.RELEASE_DATE }}
name: Openwrt AX3600-NSS ${{ env.RELEASE_DATE }}
tag_name: ${{ env.RELEASE_PREFIX }}-${{ env.RELEASE_DATE }}-${{ env.VERSION_INFO }}
name: OpenWRT AX3600-NSS ${{ env.RELEASE_DATE }}-${{ env.VERSION_INFO }}
body: |
Updated prebuilt images for ${{ env.RELEASE_DATE }}
Updated prebuilt images for ${{ env.RELEASE_DATE }} based on ${{ env.VERSION_INFO }}
Build Commit: ${{ needs.check_commits.outputs.latest_commit_sha }}
- name: Clean up old releases
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/bpi-r4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
./scripts/feeds update -a
./scripts/feeds install -a
- name: Apply kmod-thermal
- name: Apply kmod-thermal and build mt7925 firmware
run: |
cd target/linux/mediatek/patches-6.6
curl -LO https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/patches/0001-Add-kmod-thermal-for-BPI-R4.patch
Expand All @@ -62,6 +62,10 @@ jobs:
cat custom_repo/${{ env.ROLE_CONFIG }} >> .config
make defconfig
- name: Remove packages that are marked as modules
run: |
grep "=m" .config | grep -v 'CONFIG_PACKAGE_libustream-mbedtls=m' | while read -r line; do module=$(echo "$line" | cut -f1 -d'='); sed -i "s/^$line$/# $module is not set/" .config; done
# - name: Include custom files
# run: |
# mkdir -p ${{ env.CUSTOM_FILES_PATH }}
Expand Down Expand Up @@ -95,17 +99,20 @@ jobs:
- name: Extract artifacts
run: tar xf bpi_r4-images.tar

- name: Get version
run: echo "VERSION_INFO=$(cat version.buildinfo)" >> $GITHUB_ENV

- name: Get current date
run: echo "RELEASE_DATE=$(date +%F)" >> $GITHUB_ENV

- name: Create release
uses: softprops/action-gh-release@master
with:
files: bin/targets/mediatek/filogic/*
tag_name: ${{ env.RELEASE_PREFIX }}-${{ env.RELEASE_DATE }}
name: Openwrt BPI-r4 ${{ env.RELEASE_DATE }}
tag_name: ${{ env.RELEASE_PREFIX }}-${{ env.RELEASE_DATE }}-${{ env.VERSION_INFO }}
name: OpenWRT BPI-r4 ${{ env.RELEASE_DATE }}-${{ env.VERSION_INFO }}
body: |
Updated prebuilt images for ${{ env.RELEASE_DATE }}
Updated prebuilt images for ${{ env.RELEASE_DATE }} based on ${{ env.VERSION_INFO }}
Build Commit: ${{ needs.check_commits.outputs.latest_commit_sha }}
- name: Clean up old releases
Expand Down

0 comments on commit b2d5e3c

Please sign in to comment.