Install .NET SDKs from blob storage instead of package manager #538
Workflow file for this run
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
# 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@6b3083af2869dc3314a0257a42f4af696cc79ba3 # v2.3.1 | |
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 |