From 39510bc797b019c4c73b4e46581359ad61b53057 Mon Sep 17 00:00:00 2001 From: Daniel Frederico Lins Leite Date: Fri, 11 Nov 2022 06:45:33 -0300 Subject: [PATCH] splitting rustup target --- .github/workflows/release_cli.yml | 19 ++++++------------- .github/workflows/release_lsp.yml | 15 +++++++-------- 2 files changed, 13 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release_cli.yml b/.github/workflows/release_cli.yml index 59c6d53d1c40..0f521cb60e89 100644 --- a/.github/workflows/release_cli.yml +++ b/.github/workflows/release_cli.yml @@ -59,7 +59,7 @@ jobs: - os: ubuntu-20.04 target: x86_64-unknown-linux-gnu code-target: linux-x64 - container: quay.io/opencv-ci/opencv-python-manylinux2014_x86_64 + container: ghcr.io/rome/rome-ci-x86-64-centos7:latest - os: ubuntu-20.04 target: aarch64-unknown-linux-gnu code-target: linux-arm64 @@ -83,22 +83,16 @@ jobs: prerelease: ${{ needs.check.outputs.prerelease }} steps: + - name: Who Am I + run: whoami + - name: Checkout repository uses: actions/checkout@v3 with: fetch-depth: 1 - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 14.x - - - name: Install Rustup - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.target }} - default: true + - name: Install Rust toolchain + run: rustup target add ${{ matrix.target }} - name: Install arm64 toolchain if: matrix.code-target == 'linux-arm64' @@ -109,7 +103,6 @@ jobs: - name: Audit crates.io dependencies if: matrix.code-target == 'linux-x64' run: | - cargo install cargo-audit cargo audit # Build the CLI binary diff --git a/.github/workflows/release_lsp.yml b/.github/workflows/release_lsp.yml index 68086ec86512..81f2da66ae86 100644 --- a/.github/workflows/release_lsp.yml +++ b/.github/workflows/release_lsp.yml @@ -80,10 +80,10 @@ jobs: - os: ubuntu-20.04 target: x86_64-unknown-linux-gnu code-target: linux-x64 + container: ghcr.io/rome/rome-ci-x86-64-centos7:latest - os: ubuntu-20.04 target: aarch64-unknown-linux-gnu code-target: linux-arm64 - container: quay.io/opencv-ci/opencv-python-manylinux2014-aarch64:20220824 - os: macos-11 target: x86_64-apple-darwin code-target: darwin-x64 @@ -93,7 +93,9 @@ jobs: name: Package ${{ matrix.code-target }} runs-on: ${{ matrix.os }} - container: ${{ matrix.container }} + container: + image: ${{ matrix.container }} + options: --user root needs: check env: @@ -106,17 +108,14 @@ jobs: prerelease: ${{ env.prerelease }} steps: + - name: Who Am I + run: whoami + - name: Checkout repository uses: actions/checkout@v3 with: fetch-depth: 1 - - name: Install Rustup - if: matrix.code-target == 'linux-x64' - run: | - which rustup || curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - source "$HOME/.cargo/env" - - name: Install Rust toolchain run: rustup target add ${{ matrix.target }}