Skip to content

Use fixed versions for action OS #542

Use fixed versions for action OS

Use fixed versions for action OS #542

Workflow file for this run

# 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-13-large, ubuntu-20.04 ]
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-20.04'
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-13-large'
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: libInstrumentationEngine.dylib
path: out/OSX/bin/x64.Release/ClrInstrumentationEngine/libInstrumentationEngine.dylib