65 lines
1.5 KiB
YAML
Raw Normal View History

2025-02-13 19:35:27 +03:00
name: Build and Package OPKG
on:
push:
branches:
- main
jobs:
build:
2025-02-14 00:34:41 +03:00
name: Build for ${{ matrix.arch }}
2025-02-13 19:35:27 +03:00
runs-on: ubuntu-latest
strategy:
matrix:
arch: [mipsel, mips, aarch64, armv7, armv5]
include:
2025-02-14 00:34:41 +03:00
- arch: mipsel-3.4
2025-02-13 19:35:27 +03:00
goos: linux
goarch: mipsle
gomips: softfloat
2025-02-14 00:34:41 +03:00
- arch: mips-3.4
2025-02-13 19:35:27 +03:00
goos: linux
goarch: mips
gomips: softfloat
2025-02-14 00:34:41 +03:00
- arch: aarch64-3.10
2025-02-13 19:35:27 +03:00
goos: linux
goarch: arm64
2025-02-14 00:34:41 +03:00
- arch: armv7-3.2
2025-02-13 19:35:27 +03:00
goos: linux
goarch: arm
goarm: 7
2025-02-14 00:34:41 +03:00
- arch: armv7-2.6
goos: linux
goarch: arm
goarm: 7
- arch: armv5-3.2
2025-02-13 19:35:27 +03:00
goos: linux
goarch: arm
goarm: 5
steps:
- name: Checkout repository
uses: actions/checkout@v4
2025-02-14 00:02:28 +03:00
with:
fetch-tags: 1
2025-02-13 19:35:27 +03:00
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
2025-02-13 23:51:35 +03:00
cache: false
2025-02-13 19:35:27 +03:00
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y fakeroot
2025-02-13 21:08:11 +03:00
- name: Build and Package
2025-02-13 19:35:27 +03:00
run: |
2025-02-13 21:08:11 +03:00
ARCH=${{ matrix.arch }} GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} GOMIPS=${{ matrix.gomips }} GOARM=${{ matrix.goarm }} make
2025-02-13 19:35:27 +03:00
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: kvas2_${{ matrix.arch }}.ipk
2025-02-13 21:08:11 +03:00
path: .build/kvas2_${{ matrix.arch }}.ipk