Skip to content

Commit

Permalink
Update ipk
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpdboy authored Jan 16, 2025
1 parent f00571c commit 4ff6a55
Showing 1 changed file with 55 additions and 55 deletions.
110 changes: 55 additions & 55 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,70 +1,70 @@
name: build
name: Build

on:
push:
tags:
- "*"

jobs:
release:
name: Build and Release for ${{ matrix.arch }}
build:
name: Build ${{ matrix.arch }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- arch: x86_64
sdk_url_path: https://downloads.openwrt.org/snapshots/targets/x86/64
sdk_name: -sdk-x86-64_

env:
PACKAGE_NAME: luci-app-autotimeset
SDK_URL_PATH: ${{ matrix.sdk_url_path }}
SDK_NAME: ${{ matrix.sdk_name }}
ARCH: ${{ matrix.arch }}
CACHE_DIR: ~/cache
arch:
- aarch64_cortex-a53
- aarch64_cortex-a72
- aarch64_generic
- arm_arm1176jzf-s_vfp
- arm_arm926ej-s
- arm_cortex-a15_neon-vfpv4
- arm_cortex-a5_vfpv4
- arm_cortex-a7
- arm_cortex-a7_neon-vfpv4
- arm_cortex-a8_vfpv3
- arm_cortex-a9
- arm_cortex-a9_neon
- arm_cortex-a9_vfpv3-d16
- arm_fa526
- arm_mpcore
- arm_xscale
- i386_pentium-mmx
- i386_pentium4
- mips64_octeonplus
- mips_24kc
- mips_4kec
- mips_mips32
- mipsel_24kc
- mipsel_24kc_24kf
- mipsel_74kc
- mipsel_mips32
- x86_64

steps:
- uses: actions/checkout@v2

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -yq gettext libncurses5-dev rsync xsltproc
- name: Create Directories
run: |
echo "SDK_HOME=$(mktemp -d)" >> $GITHUB_ENV
echo "SDK_DL_DIR=$(mktemp -d)" >> $GITHUB_ENV
- name: Prepare Build Environment
run: |
cd "$SDK_DL_DIR"
if ! ( wget -q -O - "$SDK_URL_PATH/sha256sums" | grep -- "$SDK_NAME" > sha256sums.small 2>/dev/null ) ; then
echo "Can not find ${SDK_NAME} file in sha256sums."
exit 1
fi
SDK_FILE="$(cat sha256sums.small | cut -d' ' -f2 | sed 's/*//g')"
wget -q -O "$SDK_FILE" "$SDK_URL_PATH/$SDK_FILE"
if ! sha256sum -c ./sha256sums.small >/dev/null 2>&1 ; then
echo "SDK can not be verified!"
exit 1
fi
tar -Jxf "$SDK_DL_DIR/$SDK_FILE" -C "$SDK_HOME" --strip=1
- name: Build Packages
run: |
cd "$SDK_HOME"
./scripts/feeds update -a > /dev/null 2>&1
./scripts/feeds install golang > /dev/null 2>&1
ln -s "${{ github.workspace }}" "package/$PACKAGE_NAME"
make defconfig > /dev/null 2>&1
make package/${PACKAGE_NAME}/{clean,download,compile}
find "$SDK_HOME/bin" -type f -name "${PACKAGE_NAME}_*.ipk" \
-exec cp -f {} "${{ github.workspace }}" \;
- name: Release and Upload Assets
uses: softprops/action-gh-release@v1
- uses: actions/checkout@main
with:
files: "*.ipk"
fetch-depth: 0


- name: Building packages
uses: sbwml/openwrt-gh-action-sdk@go1.23
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
ARCH: ${{ matrix.arch }}-openwrt-22.03
FEEDNAME: packages_ci
PACKAGES: luci-app-autotimeset
NO_REFRESH_CHECK: true

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.arch }}
path: bin/packages/${{ matrix.arch }}/packages_ci/*.ipk

- name: Upload packages
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.REPO_TOKEN }}
allowUpdates: true
replacesArtifacts: true
artifacts: "bin/packages/${{ matrix.arch }}/packages_ci/*.ipk"

0 comments on commit 4ff6a55

Please sign in to comment.