2023-06-16 15:57:56 +03:00
|
|
|
name: C/C++ CI (Windows)
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout Source Tree
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup MSBuild
|
|
|
|
uses: microsoft/setup-msbuild@v1
|
|
|
|
|
2023-06-30 10:58:20 +03:00
|
|
|
- name: Configure WindowsXPKg
|
|
|
|
uses: threeal/cmake-action@v1.2.0
|
|
|
|
|
2023-06-16 15:57:56 +03:00
|
|
|
- name: Build WindowsXPKg
|
2023-06-30 10:58:20 +03:00
|
|
|
working-directory: build
|
|
|
|
run: msbuild ALL_BUILD.vcxproj /P:Configuration=Release
|
2023-06-16 15:57:56 +03:00
|
|
|
|
|
|
|
- name: Copy files and clean up output directory
|
|
|
|
run: |
|
|
|
|
del "build/Release/*.lib"
|
|
|
|
copy "keys.json" "build/Release/keys.json"
|
|
|
|
|
|
|
|
- name: Upload build artifact
|
|
|
|
uses: actions/upload-artifact@v3.1.2
|
|
|
|
with:
|
|
|
|
name: WindowsXPKg-Win64
|
|
|
|
path: build/Release
|