initial fork #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build OpenWrt Packages | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
env: | |
V: '' | |
PACKAGES: rns lxmf | |
EXTRA_FEEDS: >- | |
src-git|reticulum|https://github.com/gretel/feed-reticulum.git | |
jobs: | |
build: | |
name: ${{ matrix.arch }}-${{ matrix.release }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
release: | |
- master | |
arch: | |
- mips_24kc | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Setup Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build SDK container | |
uses: docker/build-push-action@v6 | |
env: | |
DOCKER_BUILD_SUMMARY: false | |
with: | |
tags: sdk | |
context: . | |
push: false | |
load: true | |
build-args: | | |
CONTAINER=ghcr.io/openwrt/sdk | |
ARCH=${{ matrix.arch }}-${{ matrix.release }} | |
- name: Prepare artifacts directory | |
run: | | |
mkdir -p artifacts | |
sudo chown -R 1000:1000 artifacts | |
shell: bash | |
- name: Build packages | |
run: | | |
docker run --rm \ | |
--env EXTRA_FEEDS=${{ env.EXTRA_FEEDS }} \ | |
--env IGNORE_ERRORS \ | |
--env KEY_BUILD \ | |
--env NO_DEFAULT_FEEDS \ | |
--env PACKAGES=${{ env.PACKAGES }} \ | |
--env PRIVATE_KEY=${{ secrets.SIGNING_KEY }} \ | |
--env INDEX \ | |
--env V=${{ env.V }} \ | |
-v ${{ github.workspace }}/artifacts:/artifacts \ | |
sdk | |
- name: Debug output locations | |
if: always() | |
run: | | |
find ${{ github.workspace }}/artifacts | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/" | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.arch }}-${{ matrix.release }}-packages | |
path: artifacts/bin/**/*.*pk | |
retention-days: 7 | |
compression-level: 0 |