Update build-tool-packages.yml

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

@ -107,26 +107,41 @@ jobs:
name: Test ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}]
needs: build
runs-on: ${{ matrix.os }}
env:
ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-x64
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-14-large, windows-latest]
platform: [linux, darwin, win32]
include:
- os: ubuntu-latest
platform: linux
- os: macos-latest
platform: darwin
- os: windows-latest
platform: win32
steps:
- name: Get architecture
id: get-arch
run: echo "::set-output name=architecture::$(uname -m)"
shell: bash
- name: Build
env:
ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-${{ steps.get-arch.outputs.architecture }}
- uses: actions/checkout@v3
with:
submodules: true
submodules: true
- name: Fully cleanup the toolcache directory before testing
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
uses: actions/download-artifact@v3
with:

Loading…
Cancel
Save