File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 82
82
with :
83
83
name : artifacts
84
84
path : ./out/artifacts
85
+
86
+ Mainline :
87
+ runs-on : ubuntu-latest
88
+ steps :
89
+ - name : Checkout
90
+ uses : actions/checkout@v4
91
+ - name : Install Dependencies
92
+ run : |
93
+ sudo apt-get update
94
+ sudo apt-get install -y cmake clang
95
+ ./scripts/ossfuzzdeps.sh
96
+ - name : Compile mainline
97
+ run : |
98
+ ./mainline.sh
Original file line number Diff line number Diff line change 8
8
set -ex
9
9
SCRIPTDIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
10
10
11
+ # Work out if we need to install with sudo or not.
12
+ if [[ $( id -u) -eq 0 ]]
13
+ then
14
+ # We are root, so we can install without sudo.
15
+ echo " Running as root, no sudo required."
16
+ export SUDO=" "
17
+ else
18
+ # We are not root, so we need to use sudo.
19
+ echo " Running as non-root, using sudo."
20
+ export SUDO=" sudo"
21
+ fi
22
+
11
23
# Download dependencies for oss-fuzz
12
- apt-get update
13
- apt-get install -y make \
24
+ $SUDO apt-get update
25
+ $SUDO apt-get install -y make \
14
26
autoconf \
15
27
automake \
16
28
libtool \
You can’t perform that action at this time.
0 commit comments