diff --git a/.github/workflows/release_cli.yml b/.github/workflows/release_cli.yml index 346f2fc67e4..69b75431d11 100644 --- a/.github/workflows/release_cli.yml +++ b/.github/workflows/release_cli.yml @@ -59,6 +59,7 @@ 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 @@ -71,6 +72,10 @@ jobs: name: Package ${{ matrix.code-target }} runs-on: ${{ matrix.os }} + container: + image: ${{ matrix.container }} + env: + PATH: /root/.cargo/bin:/root/.nvm/versions/node/v14.21.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/bin needs: check if: needs.check.outputs.version_changed == 'true' || needs.check.outputs.nightly == 'true' @@ -81,19 +86,17 @@ jobs: prerelease: ${{ needs.check.outputs.prerelease }} steps: + - name: Who Am I + run: whoami && printenv + - 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 Rust toolchain run: rustup target add ${{ matrix.target }} - + - name: Install arm64 toolchain if: matrix.code-target == 'linux-arm64' run: | @@ -102,7 +105,8 @@ jobs: - name: Audit crates.io dependencies if: matrix.code-target == 'linux-x64' - run: cargo audit + run: | + cargo audit # Build the CLI binary - name: Build binaries diff --git a/.github/workflows/release_lsp.yml b/.github/workflows/release_lsp.yml index ba4b2fe1a1a..81f2da66ae8 100644 --- a/.github/workflows/release_lsp.yml +++ b/.github/workflows/release_lsp.yml @@ -80,6 +80,7 @@ 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 @@ -92,6 +93,9 @@ jobs: name: Package ${{ matrix.code-target }} runs-on: ${{ matrix.os }} + container: + image: ${{ matrix.container }} + options: --user root needs: check env: @@ -104,6 +108,9 @@ jobs: prerelease: ${{ env.prerelease }} steps: + - name: Who Am I + run: whoami + - name: Checkout repository uses: actions/checkout@v3 with: