diff --git a/.github/workflows/lua.yml b/.github/workflows/lua.yml index 24b12e7..bd9dbbc 100644 --- a/.github/workflows/lua.yml +++ b/.github/workflows/lua.yml @@ -6,9 +6,6 @@ permissions: contents: write pull-requests: read -env: - ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true - jobs: builds_linux: strategy: @@ -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: diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index cf584e1..b11ff1b 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -6,9 +6,6 @@ permissions: contents: write pull-requests: read -env: - ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true - jobs: builds_linux: strategy: @@ -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 @@ -53,7 +49,7 @@ jobs: - name: Build uses: PyO3/maturin-action@v1.40.8 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 diff --git a/.github/workflows/python_asyncio.yml b/.github/workflows/python_asyncio.yml index 31f4b0b..c7443e2 100644 --- a/.github/workflows/python_asyncio.yml +++ b/.github/workflows/python_asyncio.yml @@ -6,9 +6,6 @@ permissions: contents: write pull-requests: read -env: - ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true - jobs: builds_linux: strategy: @@ -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/toml-editor@1.1.1 with: @@ -59,7 +34,7 @@ jobs: - name: Build uses: PyO3/maturin-action@v1.40.8 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 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8a3a4a0..abd29e6 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -6,9 +6,6 @@ permissions: contents: write pull-requests: read -env: - ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true - jobs: builds: strategy: diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index b0c0790..7262b3a 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -6,9 +6,6 @@ permissions: contents: write pull-requests: read -env: - ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true - jobs: builds: strategy: