-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 1.14 KB
/
build-centos-native-container.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
name: Build on Centos Native Container
on:
workflow_call:
env:
NUGET_PACKAGES: ${{ github.workspace }}/packages
DOTNET_CLI_TELEMETRY_OPTOUT: 1
jobs:
build-centos-native-container:
strategy:
fail-fast: false
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0
with:
fetch-depth: 0 # fetching all, needed to correctly calculate version
- name: Build native library in Docker container
run: |
set -e
docker build -t mybuildimage -f "./docker/centos.dockerfile" ./docker
docker run -e OS_TYPE=linux-glibc --rm --mount type=bind,source="${GITHUB_WORKSPACE}",target=/project mybuildimage \
/bin/sh -c 'git config --global --add safe.directory /project && ./build.sh BuildNativeWorkflow'
- name: Publish native library Linux build
if: (${{ job.status }} != 'cancelled')
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # tag: v4.4.0
with:
name: bin-centos-native
path: bin/tracer-home
continue-on-error: true