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 6f80cea commit b079235
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 63 deletions.
33 changes: 7 additions & 26 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 @@ -23,35 +20,19 @@ jobs:
- archit: aarch64
target: aarch64-unknown-linux-gnu
runs-on: ubuntu-22.04
container: registry.cn-shanghai.aliyuncs.com/lebai/util:14.04
steps:
- name: Checkout
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}}
uses: mosteo-actions/docker-run@v2
with:
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
6 changes: 1 addition & 5 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 All @@ -23,7 +20,6 @@ jobs:
- archit: aarch64
target: aarch64-unknown-linux-gnu
runs-on: ubuntu-22.04
container: registry.cn-shanghai.aliyuncs.com/lebai/util:14.04
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -53,7 +49,7 @@ 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
Expand Down
27 changes: 1 addition & 26 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 @@ -23,33 +20,11 @@ jobs:
- archit: aarch64
target: aarch64-unknown-linux-gnu
runs-on: ubuntu-22.04
container: registry.cn-shanghai.aliyuncs.com/lebai/util:14.04
steps:
- name: Checkout
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 @@ -59,7 +34,7 @@ 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
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 b079235

Please sign in to comment.