Advertisement
jimbob88

Caching Example

Mar 26th, 2020
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.34 KB | None | 0 0
  1. # This is a basic workflow to help you get started with Actions
  2.  
  3. name: Windows Osiris Compile
  4.  
  5. # Controls when the action will run. Triggers the workflow on push or pull request
  6. # events but only for the master branch
  7. on:
  8.   push:
  9.     branches: [ master, health_based_bars]
  10.   pull_request:
  11.     branches: [ master, health_based_bars]
  12.  
  13. # A workflow run is made up of one or more jobs that can run sequentially or in parallel
  14. jobs:
  15.  # This workflow contains a single job called "build"
  16.   build:
  17.    # The type of runner that the job will run on
  18.     runs-on: windows-latest
  19.  
  20.     env: # Thanks to @robootgit
  21.       MSBUILD_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\
  22.  
  23.     # Steps represent a sequence of tasks that will be executed as part of the job
  24.     steps:
  25.    # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  26.     - uses: actions/checkout@v2
  27.  
  28.    
  29.     - name: Cache for AVX
  30.       uses: actions/cache@v1
  31.       with:
  32.         path: Osiris\Release
  33.         key: avx_cache
  34.  
  35.     - name: Build for AVX
  36.       shell: cmd
  37.       run: '"%MSBUILD_PATH%\MSBuild.exe" -m Osiris.sln  /t:build /p:Platform=x86;Configuration=Release;TargetName=Osiris_-_AVX;EIS=AdvancedVectorExtensions'
  38.  
  39.     - name: Cache for AVX2
  40.       uses: actions/cache@v1
  41.       with:
  42.         path: Osiris\Release
  43.         key: avx2_cache
  44.  
  45.     - name: Build for AVX2
  46.       shell: cmd
  47.       run: '"%MSBUILD_PATH%\MSBuild.exe" -m Osiris.sln  /t:build /p:Platform=x86;Configuration=Release;TargetName=Osiris_-_AVX2;EIS=AdvancedVectorExtensions2'
  48.    
  49.     - name: Cache for SSE
  50.       uses: actions/cache@v1
  51.       with:
  52.         path: Osiris\Release
  53.         key: sse_cache
  54.    
  55.     - name: Build for SSE
  56.       shell: cmd
  57.       run: '"%MSBUILD_PATH%\MSBuild.exe" -m Osiris.sln  /t:build /p:Platform=x86;Configuration=Release;TargetName=Osiris_-_SSE;EIS=StreamingSIMDExtensions'
  58.  
  59.     - name: Cache for IA32
  60.       uses: actions/cache@v1
  61.       with:
  62.         path: Osiris\Release
  63.         key: ia32_cache
  64.  
  65.     - name: Build for IA32
  66.       shell: cmd
  67.       run: '"%MSBUILD_PATH%\MSBuild.exe" -m Osiris.sln  /t:build /p:Platform=x86;Configuration=Release;TargetName=Osiris_-_IA32;EIS=NoExtensions'
  68.      
  69.     - uses: actions/upload-artifact@v1
  70.       with:
  71.         name: Osiris Build Output
  72.         path: Release
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement