-
Notifications
You must be signed in to change notification settings - Fork 50
50 lines (39 loc) · 1.51 KB
/
build.yml
File metadata and controls
50 lines (39 loc) · 1.51 KB
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
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
name: build
on: [push]
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
# Note OSX isn't officially supported yet, but might be in the future.
# The build here will help ensure no changes are introduced that
# would make it difficult.
os: [ macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
path: out/packages
key: nuget
- run: src/build.sh x64 release
- name: archive so
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: libInstrumentationEngine.so
path: out/Linux/bin/x64.Release/ClrInstrumentationEngine/libInstrumentationEngine.so
- name: archive dylib
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: libInstrumentationEngine.dylib
path: out/OSX/bin/x64.Release/ClrInstrumentationEngine/libInstrumentationEngine.dylib