Fix compilation #49
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 binary | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get toolchain from cache | |
id: cache-toolchain | |
uses: actions/[email protected] | |
with: | |
# A directory to store and save the cache | |
path: scripts/prefix | |
# An explicit key for restoring and saving the cache | |
key: prefix-${{hashFiles('scripts/download_requirements.ps1')}}-${{hashFiles('scripts/create_devenv.py')}} | |
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }} | |
name: Get toolchain dependencies from cache | |
id: cache-deps | |
uses: actions/[email protected] | |
with: | |
# A directory to store and save the cache | |
path: scripts/dls | |
# An explicit key for restoring and saving the cache | |
key: deps-${{hashFiles('scripts/download_requirements.ps1')}} | |
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' && steps.cache-deps.outputs.cache-hit != 'true' }} | |
name: Download dependencies | |
run: powershell scripts/download_requirements.ps1 | |
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }} | |
name: Install prefix | |
run: python scripts/create_devenv.py scripts/dls scripts/prefix | |
- name: Build binary | |
run: scripts/build.bat |