-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da187bd
commit b215d0c
Showing
9 changed files
with
406 additions
and
384 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,44 +1,44 @@ | ||
name: Bumper | ||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
# name: Bumper | ||
# on: | ||
# push: | ||
# branches: | ||
# - master | ||
# workflow_dispatch: | ||
|
||
jobs: | ||
bumpProjects: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: [ | ||
{ repo: status-im/nimbus-eth2, branch: unstable }, | ||
{ repo: waku-org/nwaku, branch: master }, | ||
{ repo: codex-storage/nim-codex, branch: master } | ||
] | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ${{ matrix.target.repo }} | ||
ref: ${{ matrix.target.branch }} | ||
path: nbc | ||
fetch-depth: 0 | ||
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }} | ||
# jobs: | ||
# bumpProjects: | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# target: [ | ||
# { repo: status-im/nimbus-eth2, branch: unstable }, | ||
# { repo: waku-org/nwaku, branch: master }, | ||
# { repo: codex-storage/nim-codex, branch: master } | ||
# ] | ||
# steps: | ||
# - name: Clone repo | ||
# uses: actions/checkout@v2 | ||
# with: | ||
# repository: ${{ matrix.target.repo }} | ||
# ref: ${{ matrix.target.branch }} | ||
# path: nbc | ||
# fetch-depth: 0 | ||
# token: ${{ secrets.ACTIONS_GITHUB_TOKEN }} | ||
|
||
- name: Checkout this ref | ||
run: | | ||
cd nbc | ||
git submodule update --init vendor/nim-libp2p | ||
cd vendor/nim-libp2p | ||
git checkout $GITHUB_SHA | ||
# - name: Checkout this ref | ||
# run: | | ||
# cd nbc | ||
# git submodule update --init vendor/nim-libp2p | ||
# cd vendor/nim-libp2p | ||
# git checkout $GITHUB_SHA | ||
|
||
- name: Commit this bump | ||
run: | | ||
cd nbc | ||
git config --global user.email "${{ github.actor }}@users.noreply.github.com" | ||
git config --global user.name = "${{ github.actor }}" | ||
git commit --allow-empty -a -m "auto-bump nim-libp2p" | ||
git branch -D nim-libp2p-auto-bump-${GITHUB_REF##*/} || true | ||
git switch -c nim-libp2p-auto-bump-${GITHUB_REF##*/} | ||
git push -f origin nim-libp2p-auto-bump-${GITHUB_REF##*/} | ||
# - name: Commit this bump | ||
# run: | | ||
# cd nbc | ||
# git config --global user.email "${{ github.actor }}@users.noreply.github.com" | ||
# git config --global user.name = "${{ github.actor }}" | ||
# git commit --allow-empty -a -m "auto-bump nim-libp2p" | ||
# git branch -D nim-libp2p-auto-bump-${GITHUB_REF##*/} || true | ||
# git switch -c nim-libp2p-auto-bump-${GITHUB_REF##*/} | ||
# git push -f origin nim-libp2p-auto-bump-${GITHUB_REF##*/} |
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 |
---|---|---|
@@ -1,64 +1,64 @@ | ||
name: nim-libp2p codecov builds | ||
# name: nim-libp2p codecov builds | ||
|
||
on: | ||
#On push to common branches, this computes the "bases stats" for PRs | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
workflow_dispatch: | ||
# on: | ||
# #On push to common branches, this computes the "bases stats" for PRs | ||
# push: | ||
# branches: | ||
# - master | ||
# pull_request: | ||
# workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
# concurrency: | ||
# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
# cancel-in-progress: true | ||
|
||
jobs: | ||
Coverage: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
CICOV: YES | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
# jobs: | ||
# Coverage: | ||
# runs-on: ubuntu-22.04 | ||
# env: | ||
# CICOV: YES | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# with: | ||
# fetch-depth: 0 | ||
|
||
- name: Setup Nim | ||
uses: "./.github/actions/install_nim" | ||
with: | ||
os: linux | ||
cpu: amd64 | ||
shell: bash | ||
# - name: Setup Nim | ||
# uses: "./.github/actions/install_nim" | ||
# with: | ||
# os: linux | ||
# cpu: amd64 | ||
# shell: bash | ||
|
||
- name: Restore deps from cache | ||
id: deps-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: nimbledeps | ||
key: nimbledeps-${{ hashFiles('.pinned') }} | ||
# - name: Restore deps from cache | ||
# id: deps-cache | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: nimbledeps | ||
# key: nimbledeps-${{ hashFiles('.pinned') }} | ||
|
||
- name: Install deps | ||
if: ${{ steps.deps-cache.outputs.cache-hit != 'true' }} | ||
run: | | ||
nimble install_pinned | ||
# - name: Install deps | ||
# if: ${{ steps.deps-cache.outputs.cache-hit != 'true' }} | ||
# run: | | ||
# nimble install_pinned | ||
|
||
- name: Run | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y lcov build-essential git curl | ||
mkdir coverage | ||
export NIMFLAGS="--lineDir:on --passC:-fprofile-arcs --passC:-ftest-coverage --passL:-fprofile-arcs --passL:-ftest-coverage" | ||
nimble testnative | ||
nimble testpubsub | ||
nimble testfilter | ||
find nimcache -name *.c -delete | ||
lcov --capture --directory nimcache --output-file coverage/coverage.info | ||
shopt -s globstar | ||
ls `pwd`/libp2p/{*,**/*}.nim | ||
lcov --extract coverage/coverage.info `pwd`/libp2p/{*,**/*}.nim --output-file coverage/coverage.f.info | ||
genhtml coverage/coverage.f.info --output-directory coverage/output | ||
bash <(curl -s https://codecov.io/bash) -f coverage/coverage.f.info || echo "Codecov did not collect coverage reports" | ||
# - name: Run | ||
# run: | | ||
# sudo apt-get update | ||
# sudo apt-get install -y lcov build-essential git curl | ||
# mkdir coverage | ||
# export NIMFLAGS="--lineDir:on --passC:-fprofile-arcs --passC:-ftest-coverage --passL:-fprofile-arcs --passL:-ftest-coverage" | ||
# nimble testnative | ||
# nimble testpubsub | ||
# nimble testfilter | ||
# find nimcache -name *.c -delete | ||
# lcov --capture --directory nimcache --output-file coverage/coverage.info | ||
# shopt -s globstar | ||
# ls `pwd`/libp2p/{*,**/*}.nim | ||
# lcov --extract coverage/coverage.info `pwd`/libp2p/{*,**/*}.nim --output-file coverage/coverage.f.info | ||
# genhtml coverage/coverage.f.info --output-directory coverage/output | ||
# bash <(curl -s https://codecov.io/bash) -f coverage/coverage.f.info || echo "Codecov did not collect coverage reports" | ||
|
||
#- uses: actions/upload-artifact@master | ||
# with: | ||
# name: coverage | ||
# path: coverage | ||
# #- uses: actions/upload-artifact@master | ||
# # with: | ||
# # name: coverage | ||
# # path: coverage |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
name: Daily | ||
on: | ||
schedule: | ||
- cron: "30 6 * * *" | ||
workflow_dispatch: | ||
# name: Daily | ||
# on: | ||
# schedule: | ||
# - cron: "30 6 * * *" | ||
# workflow_dispatch: | ||
|
||
jobs: | ||
call-multi-nim-common: | ||
uses: ./.github/workflows/daily_common.yml | ||
with: | ||
nim-branch: "['version-1-6','version-2-0']" | ||
cpu: "['amd64']" | ||
# jobs: | ||
# call-multi-nim-common: | ||
# uses: ./.github/workflows/daily_common.yml | ||
# with: | ||
# nim-branch: "['version-1-6','version-2-0']" | ||
# cpu: "['amd64']" |
Oops, something went wrong.