Skip to content

Commit

Permalink
upload windows version prebuild image by action
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Li <Frank.Li@nxp.com>
  • Loading branch information
nxpfrankli committed Jun 1, 2023
1 parent 03d673e commit 39d45e5
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,39 @@ jobs:

- name: Build static solution
run: msbuild /p:Configuration=${{ matrix.configuration }} /p:PlatformToolset=v143 /p:Platform=${{ matrix.platform }} msvc/uuu-static-link.sln


- name: Debug
run: echo ${GITHUB_WORKSPACE}

- name: Debug1
run: dir msvc

- name: Create or Update Release
id: create_or_update_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: UUU_1.5.${{ github.run_id }}_TEST
release_name: Release UUU_1.5.${{ github.sha }}_TEST
draft: true
prerelease: true

- name: Upload Build Artifacts
uses: actions/upload-artifact@v2
with:
name: uuu.exe
path: ${GITHUB_WORKSPACE}/mfgtools/msvc/x64/Release/uuu.exe

- name: Upload Assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_or_update_release.outputs.upload_url }}
asset_path: ${GITHUB_WORKSPACE}/mfgtools/msvc/x64/Release/uuu.exe
asset_name: uuu.exe
asset_content_type: application/octet-stream

- name: Build dynamic solution
run: msbuild /p:Configuration=${{ matrix.configuration }} /p:PlatformToolset=v143 /p:Platform=${{ matrix.platform }} msvc/uuu.sln

0 comments on commit 39d45e5

Please sign in to comment.