This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
forked from aliasIsolation/aliasIsolation
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (49 loc) · 2.12 KB
/
msbuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: MSBuild
on: [push]
env:
# Configuration type and architecture to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: release
BUILD_ARCHITECTURE: x86
BUILD_EXTRA_OPTIONS: -U
BOOST_VERSION: 1.81.0
BOOST_SOURCE_DIRECTORY: boost_1_81_0
BOOST_SOURCE_LOCATION: src\external\boost
jobs:
build:
name: Build
runs-on: windows-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: true
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Download Boost
uses: carlosperate/[email protected]
id: download-boost-source
with:
file-url: https://boostorg.jfrog.io/artifactory/main/release/${{env.BOOST_VERSION}}/source/${{env.BOOST_SOURCE_DIRECTORY}}.7z
location: C:\Temp
sha256: d7bc4e2a2aee374a8c24832cacfed1265680c1e824d09fab3e00f87508155353
- name: Extract the Boost source archive
working-directory: ${{env.GITHUB_WORKSPACE}}
run: 7z.exe x ${{steps.download-boost-source.outputs.file-path}} -osrc\external\boost
- name: Move the Boost source files to the location expected by Tundra
working-directory: ${{env.GITHUB_WORKSPACE}}
run: move src\external\boost\${{env.BOOST_SOURCE_DIRECTORY}}\* src\external\boost
- name: Remove unneeded Boost source directory
working-directory: ${{env.GITHUB_WORKSPACE}}
run: rmdir src\external\boost\${{env.BOOST_SOURCE_DIRECTORY}}
- name: Build Alias Isolation
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./release.cmd ${{env.BUILD_CONFIGURATION}} ${{env.BUILD_ARCHITECTURE}} ${{env.BUILD_EXTRA_OPTIONS}}
- name: Upload build artifacts
uses: actions/[email protected]
with:
name: ${{env.BUILD_CONFIGURATION}} ${{env.BUILD_ARCHITECTURE}}
path: ${{env.BUILD_CONFIGURATION}}/${{env.BUILD_ARCHITECTURE}}
if-no-files-found: error
retention-days: 1