This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 307
49 lines (40 loc) · 1.56 KB
/
omsbuild.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
name: OMS CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: OMSAgent Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout OMS-Agent-For-Linux Repo
uses: actions/checkout@v2
with:
path: Main
submodules: true
- name: Checkout Build-OMS-Agent-for-Linux Repo
uses: actions/checkout@v2
with:
repository: Microsoft/Build-OMS-Agent-for-Linux
path: Build-OMS-Agent-for-Linux
submodules: true
- name: Setup Repo
run: |
echo GITHUB_WORKSPACE=$GITHUB_WORKSPACE
ls -la
rm -rf Build-OMS-Agent-for-Linux/omsagent
mv $GITHUB_WORKSPACE/Main Build-OMS-Agent-for-Linux/omsagent
ls -la Build-OMS-Agent-for-Linux/
- name: Pull docker image
run: docker pull narinem/oms-centos6-x64:3.2
- name: Tests
run: docker run --rm -t -v $GITHUB_WORKSPACE/Build-OMS-Agent-for-Linux:/home/scratch/Build-OMS narinem/oms-centos6-x64:3.2 /bin/sh -c "cd /home/scratch/Build-OMS/omsagent/build; ./configure --enable-ulinux; make unittest_100"
- name: Build
run: docker run --rm -t -v $GITHUB_WORKSPACE/Build-OMS-Agent-for-Linux:/home/scratch/Build-OMS narinem/oms-centos6-x64:3.2 /bin/sh -c "cd /home/scratch/Build-OMS/omsagent/build; make distclean; ./configure --enable-ulinux; make"
- name: Publish Artifacts
uses: actions/upload-artifact@v2
with:
name: Build_x64
path: ${{ github.workspace }}/Build-OMS-Agent-for-Linux/omsagent/target/Linux_ULINUX_1.0_x64_64_Release