Skip to content

Commit

Permalink
Update build-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax authored Sep 11, 2024
1 parent 2bbe4bb commit 6f00b7b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,30 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache Chocolatey packages
id: chocolatey-cache
uses: actions/cache@v4
with:
path: |
C:\ProgramData\chocolatey
C:\Users\runneradmin\AppData\Local\Temp\chocolatey
key: ${{ runner.os }}-chocolatey-${{ hashFiles('**/build-windows.bat') }}
key: ${{ runner.os }}-chocolatey
restore-keys: |
${{ runner.os }}-chocolatey
- name: Set up MSVC compiler
if: steps.chocolatey-cache.outputs.cache-hit != 'true'
run: |
choco install visualstudio2017buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --includeOptional"
shell: cmd

- name: Build salam.exe for Windows
run: |
cd src
build-windows.bat
shell: cmd

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 6f00b7b

Please sign in to comment.