-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce GitHub Actions build/test/publish workflow (#3432)
This ports most of the build-publish workflow from CircleCI to Github Actions. Pending work items: - Enable publish-dev and publish-stable jobs (disbaled for now; need to setup secrets with proper protection). - Integrate github issuegenerator to report some failures such as loadtest as github issues. - Disable CircleCI.
- Loading branch information
Showing
8 changed files
with
681 additions
and
5 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
TAG="${GITHUB_REF##*/}" | ||
if [[ $TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+.* ]] | ||
then | ||
echo "::set-output name=tag::$TAG" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
TESTS="$(make -s -C testbed list-tests | xargs echo|sed 's/ /|/g')" | ||
TESTS=(${TESTS//|/ }) | ||
MATRIX="{\"include\":[" | ||
curr="" | ||
for i in "${!TESTS[@]}"; do | ||
if (( i > 0 && i % 2 == 0 )); then | ||
curr+="|${TESTS[$i]}" | ||
else | ||
if [ -n "$curr" ] && (( i>1 )); then | ||
MATRIX+=",{\"test\":\"$curr\"}" | ||
elif [ -n "$curr" ]; then | ||
MATRIX+="{\"test\":\"$curr\"}" | ||
fi | ||
curr="${TESTS[$i]}" | ||
fi | ||
done | ||
MATRIX+=",{\"test\":\"$curr\"}]}" | ||
echo "::set-output name=loadtest_matrix::$MATRIX" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
TESTS="$(make -s -C testbed list-stability-tests | xargs echo|sed 's/ /|/g')" | ||
|
||
TESTS=(${TESTS//|/ }) | ||
MATRIX="{\"include\":[" | ||
curr="" | ||
for i in "${!TESTS[@]}"; do | ||
curr="${TESTS[$i]}" | ||
MATRIX+="{\"test\":\"$curr\"}," | ||
done | ||
MATRIX+="]}" | ||
echo "::set-output name=stabilitytest_matrix::$MATRIX" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
files=( | ||
bin/otelcontribcol_darwin_amd64 | ||
bin/otelcontribcol_linux_arm64 | ||
bin/otelcontribcol_linux_amd64 | ||
bin/otelcontribcol_windows_amd64.exe | ||
dist/otel-contrib-collector-*.arm64.rpm | ||
dist/otel-contrib-collector_*_amd64.deb | ||
dist/otel-contrib-collector-*.x86_64.rpm | ||
dist/otel-contrib-collector_*_arm64.deb | ||
dist/otel-contrib-collector-*amd64.msi | ||
|
||
); | ||
for f in "${files[@]}" | ||
do | ||
if [[ ! -f $f ]] | ||
then | ||
echo "$f does not exist." | ||
echo "::set-output name=passed::false" | ||
exit 0 | ||
fi | ||
done | ||
echo "::set-output name=passed::true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters