This commit is contained in:
itdoginfo
2024-10-11 17:46:05 +03:00
parent 4c1aeddf6c
commit 2dde8e6d38
2 changed files with 26 additions and 19 deletions

View File

@@ -7,29 +7,29 @@ on:
jobs: jobs:
build: build:
name: ${{ matrix.arch }} build name: test build
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
arch:
- x86_64
# - mips_24kc
steps: steps:
- uses: actions/checkout@v4.2.1 - uses: actions/checkout@v4.2.1
- name: Build and push
uses: docker/build-push-action@v6
with: with:
fetch-depth: 0 context: .
tags: test-sdk/app:latest
- name: Bild SDK test - name: Create Docker container
run: | run: docker create --name test test-sdk/app:latest
docker run -v ${{ GITHUB.WORKSPACE }}:/builder/package/feeds/ci openwrt/sdk:${{ matrix.arch }}-v23.05.5 sh -c "
./scripts/feeds update -a
make package/podkop/{ clean, compile } V=s
ls bin/packages/x86_64/ci
"
# - name: Store packages - name: Copy file from Docker container
# uses: actions/upload-artifact@v4.4.3 run: docker cp test:/builder/bin/packages/x86_64/utilites ./bin/
# with:
# name: ${{ matrix.arch}}-packages - name: Remove Docker container
# path: bin/packages/${{ matrix.arch }}/packages/*.ipk run: docker rm test
- name: Upload copied file as artifact
uses: actions/upload-artifact@v4.4.3
with:
name: packages
path: ./bin/*.ipk

7
Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM openwrt/sdk:x86_64-v23.05.5
RUN mkdir -p /builder/package/feeds/utilites/
COPY ./podkop /builder/package/feeds/utilites/podkop
RUN make defconfig && make package/podkop/compile V=s -j4