Skip to content

Commit baf4381

Browse files
committed
fixup! Use New Pipeline Files
1 parent 0814e34 commit baf4381

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.pipelines/build/binary.steps.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@ steps:
1515
version: '$(GOVERSION)'
1616

1717
- bash: |
18+
# Ubuntu
1819
if [[ -f /etc/debian_version ]];then
19-
# Ubuntu
2020
sudo apt-get update -y
2121
if [[ $GOARCH =~ amd64 ]]; then
22-
sudo apt-get install -y llvm clang linux-libc-dev linux-headers-generic libbpf-dev libc6-dev nftables iproute2 gcc-multilib
22+
sudo apt-get install -y llvm clang linux-libc-dev linux-headers-generic libbpf-dev libc6-dev nftables iproute2 gcc-multilib tree
2323
for dir in /usr/include/x86_64-linux-gnu/*; do
2424
sudo ln -sfn "$dir" /usr/include/$(basename "$dir")
2525
done
2626
2727
elif [[ $GOARCH =~ arm64 ]]; then
28-
sudo apt-get install -y llvm clang linux-libc-dev linux-headers-generic libbpf-dev libc6-dev nftables iproute2 gcc-aarch64-linux-gnu
28+
sudo apt-get install -y llvm clang linux-libc-dev linux-headers-generic libbpf-dev libc6-dev nftables iproute2 gcc-aarch64-linux-gnu tree
2929
for dir in /usr/include/aarch64-linux-gnu/*; do
3030
sudo ln -sfn "$dir" /usr/include/$(basename "$dir")
3131
done
3232
fi
33+
# Mariner
3334
else
34-
# Mariner
35-
sudo tdnf install -y llvm clang libbpf-devel nftables
35+
sudo tdnf install -y llvm clang libbpf-devel nftables tree
3636
for dir in /usr/include/aarch64-linux-gnu/*; do
3737
if [[ -d $dir ]]; then
3838
sudo ln -sfn "$dir" /usr/include/$(basename "$dir")
@@ -45,7 +45,6 @@ steps:
4545
workingDirectory: $(ACN_DIR)
4646
continueOnError: true
4747
env:
48-
TARGET: ${{ parameters.target }}
4948
GOOS: ${{ parameters.os }}
5049
GOARCH: ${{ parameters.arch }}
5150

@@ -63,9 +62,12 @@ steps:
6362
- script: |
6463
SOURCE_DIR="./output"
6564
TARGET_DIR="$BUILD_ARTIFACTSTAGINGDIRECTORY"/out
65+
tree "$SOURCE_DIR"
66+
6667
mkdir -p "$TARGET_DIR"
6768
find "$SOURCE_DIR" -name '*.tgz*' -print -exec mv -t "$TARGET_DIR"/ {} +
6869
find "$SOURCE_DIR" -name '*.zip' -print -exec mv -t "$TARGET_DIR"/ {} +
69-
ls -la "$TARGET_DIR"
70+
71+
tree "$TARGET_DIR"
7072
displayName: "Prepare Artifacts"
7173
workingDirectory: $(ACN_DIR)

0 commit comments

Comments
 (0)