Skip to content

Commit

Permalink
docker run
Browse files Browse the repository at this point in the history
  • Loading branch information
rise0chen committed Jan 2, 2025
1 parent a5ae7c8 commit 15e5eda
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 77 deletions.
36 changes: 6 additions & 30 deletions .github/workflows/lua.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ permissions:
contents: write
pull-requests: read

env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
builds_linux:
strategy:
Expand All @@ -28,35 +25,14 @@ jobs:
uses: actions/checkout@v3
with:
submodules: true
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
continue-on-error: true
- name: Install Cross Compiler
if: ${{ matrix.archit == 'arm'}}
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
- name: Install Cross Compiler
if: ${{ matrix.archit == 'aarch64' }}
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends gcc-aarch64-linux-gnu libc6-dev-arm64-cross
- name: Build
run: cargo build --release --features ffi_lua,module,mdns --target ${{matrix.target}}
- name: Patch glibc
uses: lmangani/polyfill-glibc-action@main
id: polyfill
uses: mosteo-actions/docker-run@v2
with:
glibc: "2.19"
target: ./target/${{matrix.target}}/release/liblebai_sdk.so
image: registry.cn-shanghai.aliyuncs.com/lebai/util:14.04
host-dir: "."
guest-dir: /app
command: |
cargo build --release --features ffi_lua,module,mdns --target ${{matrix.target}}
- name: Upload
uses: actions/upload-artifact@v3
with:
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ permissions:
contents: write
pull-requests: read

env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
builds_linux:
strategy:
Expand Down Expand Up @@ -52,16 +49,10 @@ jobs:
- name: Build
uses: PyO3/[email protected]
with:
container: off
container: registry.cn-shanghai.aliyuncs.com/lebai/util:14.04
manylinux: 2_17
command: build
args: --release --features ffi_py,module,mdns --target ${{matrix.target}} --skip-auditwheel
- name: Patch glibc
uses: lmangani/polyfill-glibc-action@main
id: polyfill
with:
glibc: "2.19"
target: ./target/wheels/*.whl
- name: Upload
uses: actions/upload-artifact@v3
with:
Expand Down
32 changes: 1 addition & 31 deletions .github/workflows/python_asyncio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ permissions:
contents: write
pull-requests: read

env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
builds_linux:
strategy:
Expand All @@ -28,27 +25,6 @@ jobs:
uses: actions/checkout@v3
with:
submodules: true
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
continue-on-error: true
- name: Install Cross Compiler
if: ${{ matrix.archit == 'arm'}}
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
- name: Install Cross Compiler
if: ${{ matrix.archit == 'aarch64'}}
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends gcc-aarch64-linux-gnu libc6-dev-arm64-cross
- name: Rename
uses: colathro/[email protected]
with:
Expand All @@ -58,16 +34,10 @@ jobs:
- name: Build
uses: PyO3/[email protected]
with:
container: off
container: registry.cn-shanghai.aliyuncs.com/lebai/util:14.04
manylinux: 2_17
command: build
args: --release --features ffi_py_asyncio,module,mdns --target ${{matrix.target}} --skip-auditwheel
- name: Patch glibc
uses: lmangani/polyfill-glibc-action@main
id: polyfill
with:
glibc: "2.19"
target: ./target/wheels/*.whl
- name: Upload
uses: actions/upload-artifact@v3
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ permissions:
contents: write
pull-requests: read

env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
builds:
strategy:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ permissions:
contents: write
pull-requests: read

env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
builds:
strategy:
Expand Down

0 comments on commit 15e5eda

Please sign in to comment.