mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-07 12:06:56 +03:00
Update
This commit is contained in:
38
.github/workflows/build.yml
vendored
38
.github/workflows/build.yml
vendored
@@ -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
7
Dockerfile
Normal 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
|
||||||
Reference in New Issue
Block a user