-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from xmidt-org/update-workflows
Update workflows
- Loading branch information
Showing
14 changed files
with
45 additions
and
380 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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 |
---|---|---|
|
@@ -15,71 +15,15 @@ on: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
branches: | ||
- main | ||
schedule: | ||
- cron: '12 9 * * 3' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Update packages | ||
run: | | ||
sudo apt update | ||
- name: Install packages | ||
run: | | ||
sudo apt-get -y install python3 python3-pip python3-setuptools python3-wheel ninja-build | ||
sudo apt-get -y install valgrind libcunit1 libcunit1-doc libcunit1-dev gcovr | ||
sudo apt-get -y install libcjson-dev libcurl4-openssl-dev | ||
- name: Install Meson | ||
run: pip3 install --user meson | ||
|
||
- name: Make Build Directory | ||
run: mkdir build | ||
|
||
- name: Coverity Download | ||
working-directory: build | ||
env: | ||
COVERITY_SECRET: ${{ secrets.COVERITY_KEY }} | ||
run: | | ||
../.github/scripts/get_coverity.sh $COVERITY_SECRET $GITHUB_REPOSITORY | ||
- name: Meson Build | ||
run: | | ||
meson build | ||
- name: Prebuild | ||
working-directory: build | ||
run: | | ||
ninja all | ||
- name: Clean | ||
working-directory: build | ||
run: | | ||
ninja clean | ||
- name: Coverity Analysis | ||
working-directory: build | ||
run: | | ||
./coverity/bin/cov-build --dir cov-int ninja libcjwt.so | ||
- name: Archive Results | ||
working-directory: build | ||
run: | | ||
tar czvf coverity.tgz cov-int | ||
- name: Upload Results | ||
working-directory: build | ||
env: | ||
COVERITY_SECRET: ${{ secrets.COVERITY_KEY }} | ||
run: | | ||
curl --form token=$COVERITY_SECRET \ | ||
--form [email protected] \ | ||
--form [email protected] \ | ||
--form version="$GITHUB_SHA" \ | ||
--form description="`date`" \ | ||
"https://scan.coverity.com/builds?project=${GITHUB_REPOSITORY//\//\%2F}" | ||
uses: xmidt-org/.github/.github/workflows/meson-coverity.yml@main | ||
with: | ||
repo: $GITHUB_REPOSITORY | ||
sha: $GITHUB_SHA | ||
packages: libcjson-dev libcurl4-openssl-dev | ||
secrets: | ||
coverity_key: ${{ secrets.COVERITY_KEY }} |
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
Oops, something went wrong.