Update build.yml #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
# branches: | |
# - boss | |
# - release/* | |
paths: | |
- 'deps/**' | |
- 'src/**' | |
- '**/CMakeLists.txt' | |
- 'version.inc' | |
- 'resources/**' | |
- ".github/workflows/*.yml" | |
- "build_release_linux.sh" | |
- "build_release_macos.sh" | |
- "build_win.bat" | |
pull_request: | |
branches: | |
- boss | |
- release/* | |
paths: | |
- 'deps/**' | |
- 'src/**' | |
- '**/CMakeLists.txt' | |
- 'version.inc' | |
- ".github/workflows/*.yml" | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
vcredist: | |
name: VC redist test | |
runs-on: windows-latest | |
steps: | |
- name: Download Visual C++ 2022 Redistributable | |
id: download-vcredist | |
uses: carlosperate/download-file-action@v2 | |
with: | |
file-url: https://github.com/abbodi1406/vcredist/releases/download/v0.77.0/VisualCppRedist_AIO_x86_x64.exe | |
file-name: vcredist_14_38_3313_0.7z | |
location: ${{ runner.temp }} | |
sha256: 74acbc9669fe760cfa3108dc75f49d764751501cef6d4ceace793266f91ea0e8 | |
- name: Unpack Visual C++ Runtime | |
run: | | |
7z e ${{ steps.download-vcredist.outputs.file-path }} -o ${{ runner.temp }}/vcredist 2022\x64\System64\*.dll | |
- name: Pack release | |
run: | | |
mkdir ${{ github.workspace }}/Release | |
cd ${{ github.workspace }}/Release | |
move ${{ runner.temp }}\vcredist\vcruntime140.dll . | |
move ${{ runner.temp }}\vcredist\vcruntime140_1.dll . | |
move ${{ runner.temp }}\vcredist\msvcp140.dll . | |
move ${{ runner.temp }}\vcredist\msvcp140_codecvt_ids.dll . | |
7z a -tzip ${{ github.workspace }}\test.zip resources *.exe *.dll mesa/opengl32.dll | |
- name: List release content | |
run: | | |
7z l ${{ github.workspace }}\test.zip |