This repository has been archived by the owner on Dec 14, 2023. It is now read-only.
Add ReadMe #2
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: CI | |
on: [push, pull_request] | |
env: | |
name: SilentPatchEAWRC | |
jobs: | |
build: | |
name: Build | |
runs-on: windows-2022 | |
strategy: | |
matrix: | |
configuration: [Release, Shipping] | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Cache vcpkg | |
uses: actions/cache@v3 | |
with: | |
path: vcpkg_installed | |
key: ${{ runner.os }}-${{ hashFiles('**/vcpkg.json') }} | |
- name: Setup Premake5 | |
uses: abel0b/setup-premake@v2.3 | |
with: | |
version: 5.0.0-beta2 | |
- name: Add MSBuild to PATH | |
uses: microsoft/setup-msbuild@v1.3 | |
- name: Compile ${{ matrix.configuration }} | |
run: | | |
premake5 vs2022 | |
vcpkg integrate install | |
msbuild build/${{ env.name }}.sln /t:rebuild /p:Configuration=${{ matrix.configuration }} | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.name }}-${{ matrix.configuration }} | |
if-no-files-found: error | |
path: | | |
build/bin/**/*.asi | |
build/bin/**/*.dll | |
build/bin/**/*.exe | |
build/bin/**/*.pdb |