Skip to content

Commit eec390d

Browse files
authored
Update msbuild.yml
1 parent b4760ae commit eec390d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/msbuild.yml

+36
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,42 @@ jobs:
3838
working-directory: ${{env.GITHUB_WORKSPACE}}
3939
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
4040

41+
- name: Set up environment variables
42+
run: |
43+
echo "DOWNLOADS_DIR=${{ runner.temp }}/downloads" >> $GITHUB_ENV
44+
echo "DEPENDENCIES_DIR=${{ runner.temp }}/dependencies" >> $GITHUB_ENV
45+
echo "GITHUB_ENV=${{ github.env }}" >> $GITHUB_ENV
46+
echo "GITHUB_PATH=${{ github.path }}" >> $GITHUB_ENV
47+
48+
- name: Create directories
49+
run: |
50+
mkdir -p ${{ runner.temp }}/downloads
51+
mkdir -p ${{ runner.temp }}/dependencies
52+
53+
- name: Set download URL for ARM Performance Libraries (APL)
54+
run: echo "DOWNLOAD_URL=https://developer.arm.com/-/cdn-downloads/permalink/Arm-Performance-Libraries/Version_24.10/arm-performance-libraries_24.10_Windows.msi" >> $GITHUB_ENV
55+
56+
- name: Download ARM Performance Libraries (APL)
57+
run: curl -L -o "${{ env.DOWNLOADS_DIR }}/arm-performance-libraries.msi" ${{ env.DOWNLOAD_URL }}
58+
59+
- name: Install ARM Performance Libraries (APL)
60+
run: msiexec /i "${{ env.DOWNLOADS_DIR }}/arm-performance-libraries.msi" /qn /norestart ACCEPT_EULA=1 INSTALLFOLDER="${{ env.DEPENDENCIES_DIR }}"
61+
62+
- name: Check installation success
63+
run: |
64+
if (${{ env.ERRORLEVEL }} -ne 0) {
65+
echo "Failed to install ARM Performance Libraries (APL) components. (exitcode = ${{ env.ERRORLEVEL }})"
66+
exit 1
67+
}
68+
69+
- name: Add to environment
70+
run: |
71+
echo "ARMPL_DIR=${{ env.DEPENDENCIES_DIR }}/armpl_24.10" >> $GITHUB_ENV
72+
echo "${{ env.DEPENDENCIES_DIR }}/armpl_24.10/bin" >> $GITHUB_PATH
73+
74+
- name: Finish
75+
run: echo "Dependency ARM Performance Libraries (APL) installation finished."
76+
4177
- name: Build
4278
working-directory: ${{env.GITHUB_WORKSPACE}}
4379
# Add additional options to the MSBuild command line here (like platform or verbosity level).

0 commit comments

Comments
 (0)