Skip to content

Commit

Permalink
Merge pull request #1100 from a-gave/ci/multiarch
Browse files Browse the repository at this point in the history
ci: multi-arch-build: use a different output path
  • Loading branch information
ilario authored Mar 28, 2024
2 parents f5c5285 + 4fa8888 commit f7ff091
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/multi-arch-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ jobs:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: libremesh/lime-feed
publish_dir: bin/packages/${{ matrix.arch }}/libremesh/
destination_dir: ${{ env.DEST_DIR }}/packages/${{ matrix.arch }}
destination_dir: arch_packages/${{ env.DEST_DIR }}/${{ matrix.arch }}

7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ Within the container, add the `lime-packages` feeds:

```shell
echo "src/gz libremesh https://feed.libremesh.org/master" >> repositories.conf
echo "src/gz libremesh_arch_packages https://feed.libremesh.org/master/packages/mips_24kc" >> repositories.conf
echo "src/gz libremesh_arch_packages https://feed.libremesh.org/arch_packages/master/mips_24kc" >> repositories.conf
echo "untrusted comment: signed by libremesh.org key a71b3c8285abd28b" > keys/a71b3c8285abd28b
echo "RWSnGzyChavSiyQ+vLk3x7F0NqcLa4kKyXCdriThMhO78ldHgxGljM/8" >> keys/a71b3c8285abd28b
```

If your device is not part of ath79-generic replace `mips_24kc` with the architecture of the selected <target>-<subtarget>.
If your device is not part of ath79-generic replace `mips_24kc` with the architecture of the selected <target>/<subtarget>.

Ideally add your own `lime-community` files within the container in the folder
`./files/etc/config/`. To find possible options consult the
Expand All @@ -95,10 +95,11 @@ Go to <https://firmware-selector.openwrt.org/>. Find your device. Click on the f

```shell
echo "src/gz libremesh https://feed.libremesh.org/master" >> repositories.conf
echo "src/gz libremesh_arch_packages https://feed.libremesh.org/master/packages/mips_24kc" >> repositories.conf
echo "src/gz libremesh_arch_packages https://feed.libremesh.org/arch_packages/master/mips_24kc" >> repositories.conf
echo "untrusted comment: signed by libremesh.org key a71b3c8285abd28b" > keys/a71b3c8285abd28b
echo "RWSnGzyChavSiyQ+vLk3x7F0NqcLa4kKyXCdriThMhO78ldHgxGljM/8" >> keys/a71b3c8285abd28b
```
If your device is not part of ath79-generic replace `mips_24kc` with the architecture of the selected &lt;target&gt;/&lt;subtarget&gt;.

Create an image with
```shell
Expand Down
6 changes: 3 additions & 3 deletions packages/lime-system/files/etc/uci-defaults/92_add-lime-repos
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ feeds_file="/etc/opkg/limefeeds.conf"
exit 0
}

arch_packages="$(cat /etc/os-release | grep OPENWRT_ARCH | sed 's/OPENWRT_ARCH=\"\(.*\)\"/\1/')"
arch_packages="$(grep OPENWRT_ARCH /etc/os-release | sed 's/OPENWRT_ARCH=\"\(.*\)\"/\1/')"

[ "$LIME_CODENAME" == "development" ] && {
packages_url="http://feed.libremesh.org/master";
arch_packages_url="http://feed.libremesh.org/master/packages/$arch_packages";
arch_packages_url="http://feed.libremesh.org/arch_packages/master/$arch_packages";
} || {
packages_url="http://feed.libremesh.org/$LIME_RELEASE"
arch_packages_url="http://feed.libremesh.org/$LIME_RELEASE/packages/$arch_packages";
arch_packages_url="http://feed.libremesh.org/arch_packages/$LIME_RELEASE/$arch_packages";
}

profiles_url="http://feed.libremesh.org/profiles"
Expand Down

0 comments on commit f7ff091

Please sign in to comment.