Skip to content

Commit feb440d

Browse files
authored
Move all jobs to Github Actions (#1420)
Fix Azure vulnerability for PRs Azure jobs started by anyone by any fork. Github Action can handle that vulnerability easily by native security feature. Relates-To: OLPEDGE-2824 Signed-off-by: Yaroslav Stefinko <[email protected]>
1 parent 98052bd commit feb440d

File tree

4 files changed

+89
-92
lines changed

4 files changed

+89
-92
lines changed

.github/workflows/fv_pipelines.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,18 @@ jobs:
2424
- name: Test FV Network
2525
run: ./scripts/ios/fv/gh-actions-functional-network-test.sh
2626
shell: bash
27+
28+
fv-android-amulator-build-test:
29+
name: MV.Android.Emulator.Build.Test.API21.ABIx86_64.NDK-Latest.
30+
runs-on: ubuntu-20.04
31+
env:
32+
ANDROID_NDK_HOME: $(ANDROID_HOME)/ndk-bundle
33+
steps:
34+
- name: Check out repository
35+
uses: actions/checkout@v2
36+
- name: Verification of cmake script
37+
run: ls -la $(ANDROID_NDK_HOME)/build/cmake/android.toolchain.cmake
38+
shell: bash
39+
- name: Android Emulator Test
40+
run: ANDROID_NDK_HOME=$(ANDROID_NDK_HOME) && scripts/android/build-test-emulator.sh
41+
shell: bash

.github/workflows/psv_pipelines.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,72 @@ jobs:
7070
- name: Compile project without cache
7171
run: ./scripts/linux/psv/build_psv_no_cache.sh
7272
shell: bash
73+
74+
psv-linux-20-04-clang-build:
75+
name: PSV.Linux.20.04.clang
76+
runs-on: ubuntu-20.04
77+
env:
78+
LD_PRELOAD: /lib/x86_64-linux-gnu/libSegFault.so
79+
BUILD_TYPE: RelWithDebInfo
80+
CC: clang-7
81+
CXX: clang++-7
82+
steps:
83+
- name: Check out repository
84+
uses: actions/checkout@v2
85+
- name: Install Ubuntu dependencies
86+
run: sudo apt-get update -y && sudo apt-get install clang-7 ccache libcurl4-openssl-dev -y --no-install-recommends --fix-missing
87+
shell: bash
88+
- name: Compile project on Clang
89+
run: scripts/linux/psv/build_psv.sh
90+
shell: bash
91+
92+
psv-android-20-04-build:
93+
name: PSV.Linux.Android.20.04
94+
runs-on: ubuntu-20.04
95+
env:
96+
LD_PRELOAD: /lib/x86_64-linux-gnu/libSegFault.so
97+
BUILD_TYPE: RelWithDebInfo
98+
steps:
99+
- name: Check out repository
100+
uses: actions/checkout@v2
101+
- name: Verification of prerequisites
102+
run: env && ls -la $ANDROID_HOME
103+
shell: bash
104+
- name: Android build and Examples
105+
run: scripts/android/build.sh
106+
shell: bash
107+
108+
psv-macos-11-xcode-13-build:
109+
name: PSV.MacOS11.Xcode13
110+
runs-on: macOS-11
111+
steps:
112+
- name: Check out repository
113+
uses: actions/checkout@v2
114+
- name: MacOS Build
115+
run: scripts/macos/psv/azure_macos_build_psv.sh
116+
shell: bash
117+
118+
psv-ios-xcode-11-build:
119+
name: PSV.iOS.MacOS11.Xcode11.7
120+
runs-on: macOS-11
121+
steps:
122+
- name: Check out repository
123+
uses: actions/checkout@v2
124+
- name: iOS Xcode 11-7 Build
125+
run: scripts/ios/azure_ios_build_psv.sh
126+
shell: bash
127+
128+
psv-commit-checker:
129+
name: PSV.Commit.Checker
130+
runs-on: ubuntu-20.04
131+
steps:
132+
- uses: actions/checkout@v3
133+
with:
134+
fetch-depth: 0
135+
- name: Set tags env variables.
136+
run: |
137+
# Get your last commit message, not the merge commit.
138+
text=$(git log -1 --no-merges --pretty=%B)
139+
- name: Commit checker script. Verify commit text
140+
run: scripts/misc/commit_checker.sh
141+
shell: bash

azure-pipelines.yml

Lines changed: 0 additions & 90 deletions
This file was deleted.

scripts/misc/commit_checker.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -e
22
#
3-
# Copyright (C) 2020-2021 HERE Europe B.V.
3+
# Copyright (C) 2020-2023 HERE Europe B.V.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -23,7 +23,10 @@
2323
# Requirements can be find in scripts/misc/commit_message_recom.txt
2424

2525
# Saving whole commit message into file for reading below
26-
echo "`git log --pretty=format:'%B' -2 | sed '1d' | sed '1d' `" >> commit.log
26+
git log -1 --no-merges --pretty=%B > commit.log
27+
echo "----------------------------------------------"
28+
cat commit.log || true
29+
echo "----------------------------------------------"
2730

2831
# Counting number of lines in file
2932
num_lines=`wc -l commit.log | cut -d'c' -f1`

0 commit comments

Comments
 (0)