Update build-tool-packages.yml

pull/73/head
aparnajyothi-y 12 months ago committed by GitHub
parent 2a854637cb
commit b954700562
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -108,17 +108,20 @@ jobs:
needs: build needs: build
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
env: env:
ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-x64 ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-${{ matrix.arch }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- os: ubuntu-latest - os: ubuntu-latest
platform: linux platform: linux
arch: x64
- os: macos-latest - os: macos-latest
platform: darwin platform: darwin
arch: arm64
- os: windows-latest - os: windows-latest
platform: win32 platform: win32
arch: x64
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
@ -127,24 +130,10 @@ jobs:
- name: Fully cleanup the toolcache directory before testing - name: Fully cleanup the toolcache directory before testing
run: ./helpers/clean-toolcache.ps1 -ToolName "${{ inputs.tool-name }}" run: ./helpers/clean-toolcache.ps1 -ToolName "${{ inputs.tool-name }}"
- name: Get architecture
id: get-arch
shell: bash
run: |
if [[ "${{ matrix.platform }}" == "darwin" ]]; then
echo "ARCH=$(uname -m)" >> $GITHUB_ENV
else
echo "ARCH=x64" >> $GITHUB_ENV
fi
- name: Set env
run: echo "ARTIFACT_NAME=${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-$ARCH" >> $GITHUB_ENV
- name: Download artifact - name: Download artifact
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ runner.temp }} path: ${{ runner.temp }}
- name: Extract files - name: Extract files

Loading…
Cancel
Save