Skip to content

Commit

Permalink
Merge branch 'sbwml:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
pmkol committed Jul 5, 2024
2 parents 7af551b + a361a67 commit 1bb2d94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ on:
device:
description: 'Select device to build'
required: true
default: 'nanopi-r5s'
default: 'x86_64'
type: choice
options:
- 'armv8'
- 'nanopi-r4s'
- 'nanopi-r5s'
- 'netgear_r8500'
- 'x86_64'
build_options:
description: 'Build options (separate multiple options with spaces)'
required: false
default: 'BUILD_FAST=y ENABLE_LTO=y ENABLE_LRNG=y ENABLE_BPF=y USE_GCC13=y USE_MOLD=y'
type: string

jobs:
build:
Expand Down Expand Up @@ -61,7 +67,8 @@ jobs:
continue-on-error: true
run: |
export GITHUB_REPO=${{ github.repository }}
BUILD_FAST=y ENABLE_LTO=y ENABLE_LRNG=y ENABLE_BPF=y USE_GCC13=y USE_MOLD=y bash <(curl -sS https://raw.githubusercontent.com/${{ github.repository }}/master/openwrt/build.sh) rc2 ${{ github.event.inputs.device }}
export ${{ github.event.inputs.build_options }}
bash <(curl -sS https://raw.githubusercontent.com/${{ github.repository }}/master/openwrt/build.sh) rc2 ${{ github.event.inputs.device }}
cd openwrt
tags=$(git describe --abbrev=0 --tags)
echo "latest_release=$tags" >>$GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion openwrt/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ if [ "$platform" = "x86_64" ]; then
BUILD_TYPE=releases
fi
VERSION=$(sed 's/v//g' version.txt)
SHA256=$(sha256sum bin/targets/x86/64/*-generic-squashfs-combined-efi.img.gz | awk '{print $1}')
SHA256=$(sha256sum bin/targets/x86/64*/*-generic-squashfs-combined-efi.img.gz | awk '{print $1}')
cat > ota/fw.json <<EOF
{
"x86_64": [
Expand Down

0 comments on commit 1bb2d94

Please sign in to comment.