forked from nanocurrency/nano-node
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial centos cleanup rpm build image, and signing container rpm build updates * Debug echos * Passing TAG and PAT variables through command option * Changed the nano-env:centos docker repo name * Change * Changelog extractor is broken, changed also to git fetch --tags * Add new line after .yml * Update deploy to use rsync * Adding extra debug info * fixes the mkdir to use -p * Disables some of the CI activity Co-authored-by: Russel Waters <russel@nano.org>
- Loading branch information
Showing
3 changed files
with
144 additions
and
141 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,40 +1,40 @@ | ||
name: Static Analyzers | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
clang_format: | ||
runs-on: ubuntu-20.04 | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
steps: | ||
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e | ||
- name: Installing clang-format 12 | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
run: sudo apt-get install clang-format-12 | ||
- name: Check clang-format | ||
run: ci/clang-format-check.sh | ||
cmake_format: | ||
runs-on: ubuntu-20.04 | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
steps: | ||
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e | ||
- uses: actions/setup-python@41b7212b1668f5de9d65e9c82aa777e6bbedb3a8 | ||
with: | ||
python-version: '3.x' | ||
architecture: 'x64' | ||
- uses: BSFishy/pip-action@8f2d471d809dc20b6ada98c91910b6ae6243f318 | ||
with: | ||
packages: | | ||
cmake-format | ||
- name: Check cmake-format | ||
run: ci/cmake-format-check.sh | ||
|
||
code_inspector: | ||
runs-on: ubuntu-20.04 | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
steps: | ||
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e | ||
- name: Run code-inspector | ||
run: ci/code-inspector-check.sh | ||
#on: [push, pull_request] | ||
# | ||
#jobs: | ||
# clang_format: | ||
# runs-on: ubuntu-20.04 | ||
# if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
# steps: | ||
# - uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e | ||
# - name: Installing clang-format 12 | ||
# env: | ||
# DEBIAN_FRONTEND: noninteractive | ||
# run: sudo apt-get install clang-format-12 | ||
# - name: Check clang-format | ||
# run: ci/clang-format-check.sh | ||
# | ||
# cmake_format: | ||
# runs-on: ubuntu-20.04 | ||
# if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
# steps: | ||
# - uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e | ||
# - uses: actions/setup-python@41b7212b1668f5de9d65e9c82aa777e6bbedb3a8 | ||
# with: | ||
# python-version: '3.x' | ||
# architecture: 'x64' | ||
# - uses: BSFishy/pip-action@8f2d471d809dc20b6ada98c91910b6ae6243f318 | ||
# with: | ||
# packages: | | ||
# cmake-format | ||
# - name: Check cmake-format | ||
# run: ci/cmake-format-check.sh | ||
# | ||
# code_inspector: | ||
# runs-on: ubuntu-20.04 | ||
# if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
# steps: | ||
# - uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e | ||
# - name: Run code-inspector | ||
# run: ci/code-inspector-check.sh |
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,104 +1,104 @@ | ||
name: Tests | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
RELEASE: 0 | ||
artifact: 0 | ||
|
||
jobs: | ||
osx_test: | ||
name: OSX unit tests [TEST_USE_ROCKSDB=${{ matrix.TEST_USE_ROCKSDB }}] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
TEST_USE_ROCKSDB: [0, 1] | ||
RELEASE: | ||
- ${{ startsWith(github.ref, 'refs/tags/') }} | ||
env: | ||
BOOST_ROOT: /tmp/boost | ||
TEST_USE_ROCKSDB: ${{ matrix.TEST_USE_ROCKSDB }} | ||
RELEASE: ${{ matrix.RELEASE }} | ||
runs-on: macOS-10.15 | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
steps: | ||
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f | ||
with: | ||
submodules: "recursive" | ||
- name: Fetch Deps | ||
run: TEST=1 ci/actions/osx/install_deps.sh | ||
- name: Build Tests | ||
run: ci/build-travis.sh "/tmp/qt/lib/cmake/Qt5"; | ||
- name: Run Tests lmdb | ||
if: ${{ matrix.TEST_USE_ROCKSDB == 0 }} | ||
run: cd build && sudo TEST_USE_ROCKSDB=$TEST_USE_ROCKSDB ../ci/test.sh . | ||
- name: Run Tests rocksdb | ||
env: | ||
DEADLINE_SCALE_FACTOR: 2 | ||
if: ${{ matrix.TEST_USE_ROCKSDB == 1 }} | ||
run: cd build && sudo TEST_USE_ROCKSDB=$TEST_USE_ROCKSDB ../ci/test.sh . | ||
|
||
linux_test: | ||
name: Linux Unit Tests [TEST_USE_ROCKSDB=${{ matrix.TEST_USE_ROCKSDB }} - COMPILER=${{ matrix.COMPILER }}] | ||
timeout-minutes: 90 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
TEST_USE_ROCKSDB: [0, 1] | ||
COMPILER: [gcc, clang-6] | ||
RELEASE: | ||
- ${{ startsWith(github.ref, 'refs/tags/') }} | ||
runs-on: ubuntu-20.04 | ||
env: | ||
COMPILER: ${{ matrix.COMPILER }} | ||
TEST_USE_ROCKSDB: ${{ matrix.TEST_USE_ROCKSDB }} | ||
RELEASE: ${{ matrix.RELEASE }} | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
steps: | ||
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f | ||
with: | ||
submodules: "recursive" | ||
- name: Fetch Deps | ||
run: ci/actions/linux/install_deps.sh | ||
- name: Build Tests | ||
run: docker run -e TEST_USE_ROCKSDB -e RELEASE -v ${PWD}:/workspace nanocurrency/nano-env:${{ matrix.COMPILER }} /bin/bash -c "cd /workspace && ./ci/build-travis.sh /usr/lib/x86_64-linux-gnu/cmake/Qt5" | ||
- name: Run Tests lmdb | ||
if: ${{ matrix.TEST_USE_ROCKSDB == 0 }} | ||
run: docker run -e RELEASE -v ${PWD}:/workspace nanocurrency/nano-env:${{ matrix.COMPILER }} /bin/bash -c "cd /workspace/build && ../ci/test.sh ." | ||
- name: Run Tests rocksdb | ||
if: ${{ matrix.TEST_USE_ROCKSDB == 1 }} | ||
run: docker run -e TEST_USE_ROCKSDB -e DEADLINE_SCALE_FACTOR=2 -e RELEASE -v ${PWD}:/workspace nanocurrency/nano-env:${{ matrix.COMPILER }} /bin/bash -c "cd /workspace/build && ../ci/test.sh ." | ||
|
||
windows_test: | ||
name: Windows Unit Tests [TEST_USE_ROCKSDB=${{ matrix.TEST_USE_ROCKSDB }}] | ||
timeout-minutes: 90 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
TEST_USE_ROCKSDB: [0, 1] | ||
RELEASE: | ||
- ${{ startsWith(github.ref, 'refs/tags/') }} | ||
exclude: | ||
- RELEASE: true | ||
TEST_USE_ROCKSDB: 1 | ||
runs-on: windows-latest | ||
env: | ||
TEST_USE_ROCKSDB: ${{ matrix.TEST_USE_ROCKSDB }} | ||
RELEASE: ${{ matrix.RELEASE }} | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
steps: | ||
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f | ||
with: | ||
submodules: "recursive" | ||
- name: Windows Defender | ||
run: ci/actions/windows/disable_windows_defender.ps1 | ||
- name: Fetch Deps | ||
run: ci/actions/windows/install_deps.ps1 | ||
- name: Run Tests lmdb | ||
if: ${{ matrix.TEST_USE_ROCKSDB == 0 }} | ||
run: ci/actions/windows/build.ps1 | ||
- name: Run Tests rocksdb | ||
if: ${{ matrix.TEST_USE_ROCKSDB == 1 }} | ||
env: | ||
DEADLINE_SCALE_FACTOR: 2 | ||
run: ci/actions/windows/build.ps1 | ||
#on: [push, pull_request] | ||
# | ||
#env: | ||
# RELEASE: 0 | ||
# artifact: 0 | ||
# | ||
#jobs: | ||
# osx_test: | ||
# name: OSX unit tests [TEST_USE_ROCKSDB=${{ matrix.TEST_USE_ROCKSDB }}] | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# TEST_USE_ROCKSDB: [0, 1] | ||
# RELEASE: | ||
# - ${{ startsWith(github.ref, 'refs/tags/') }} | ||
# env: | ||
# BOOST_ROOT: /tmp/boost | ||
# TEST_USE_ROCKSDB: ${{ matrix.TEST_USE_ROCKSDB }} | ||
# RELEASE: ${{ matrix.RELEASE }} | ||
# runs-on: macOS-10.15 | ||
# if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
# steps: | ||
# - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f | ||
# with: | ||
# submodules: "recursive" | ||
# - name: Fetch Deps | ||
# run: TEST=1 ci/actions/osx/install_deps.sh | ||
# - name: Build Tests | ||
# run: ci/build-travis.sh "/tmp/qt/lib/cmake/Qt5"; | ||
# - name: Run Tests lmdb | ||
# if: ${{ matrix.TEST_USE_ROCKSDB == 0 }} | ||
# run: cd build && sudo TEST_USE_ROCKSDB=$TEST_USE_ROCKSDB ../ci/test.sh . | ||
# - name: Run Tests rocksdb | ||
# env: | ||
# DEADLINE_SCALE_FACTOR: 2 | ||
# if: ${{ matrix.TEST_USE_ROCKSDB == 1 }} | ||
# run: cd build && sudo TEST_USE_ROCKSDB=$TEST_USE_ROCKSDB ../ci/test.sh . | ||
# | ||
# linux_test: | ||
# name: Linux Unit Tests [TEST_USE_ROCKSDB=${{ matrix.TEST_USE_ROCKSDB }} - COMPILER=${{ matrix.COMPILER }}] | ||
# timeout-minutes: 90 | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# TEST_USE_ROCKSDB: [0, 1] | ||
# COMPILER: [gcc, clang-6] | ||
# RELEASE: | ||
# - ${{ startsWith(github.ref, 'refs/tags/') }} | ||
# runs-on: ubuntu-20.04 | ||
# env: | ||
# COMPILER: ${{ matrix.COMPILER }} | ||
# TEST_USE_ROCKSDB: ${{ matrix.TEST_USE_ROCKSDB }} | ||
# RELEASE: ${{ matrix.RELEASE }} | ||
# if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
# steps: | ||
# - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f | ||
# with: | ||
# submodules: "recursive" | ||
# - name: Fetch Deps | ||
# run: ci/actions/linux/install_deps.sh | ||
# - name: Build Tests | ||
# run: docker run -e TEST_USE_ROCKSDB -e RELEASE -v ${PWD}:/workspace nanocurrency/nano-env:${{ matrix.COMPILER }} /bin/bash -c "cd /workspace && ./ci/build-travis.sh /usr/lib/x86_64-linux-gnu/cmake/Qt5" | ||
# - name: Run Tests lmdb | ||
# if: ${{ matrix.TEST_USE_ROCKSDB == 0 }} | ||
# run: docker run -e RELEASE -v ${PWD}:/workspace nanocurrency/nano-env:${{ matrix.COMPILER }} /bin/bash -c "cd /workspace/build && ../ci/test.sh ." | ||
# - name: Run Tests rocksdb | ||
# if: ${{ matrix.TEST_USE_ROCKSDB == 1 }} | ||
# run: docker run -e TEST_USE_ROCKSDB -e DEADLINE_SCALE_FACTOR=2 -e RELEASE -v ${PWD}:/workspace nanocurrency/nano-env:${{ matrix.COMPILER }} /bin/bash -c "cd /workspace/build && ../ci/test.sh ." | ||
# | ||
# windows_test: | ||
# name: Windows Unit Tests [TEST_USE_ROCKSDB=${{ matrix.TEST_USE_ROCKSDB }}] | ||
# timeout-minutes: 90 | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# TEST_USE_ROCKSDB: [0, 1] | ||
# RELEASE: | ||
# - ${{ startsWith(github.ref, 'refs/tags/') }} | ||
# exclude: | ||
# - RELEASE: true | ||
# TEST_USE_ROCKSDB: 1 | ||
# runs-on: windows-latest | ||
# env: | ||
# TEST_USE_ROCKSDB: ${{ matrix.TEST_USE_ROCKSDB }} | ||
# RELEASE: ${{ matrix.RELEASE }} | ||
# if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
# steps: | ||
# - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f | ||
# with: | ||
# submodules: "recursive" | ||
# - name: Windows Defender | ||
# run: ci/actions/windows/disable_windows_defender.ps1 | ||
# - name: Fetch Deps | ||
# run: ci/actions/windows/install_deps.ps1 | ||
# - name: Run Tests lmdb | ||
# if: ${{ matrix.TEST_USE_ROCKSDB == 0 }} | ||
# run: ci/actions/windows/build.ps1 | ||
# - name: Run Tests rocksdb | ||
# if: ${{ matrix.TEST_USE_ROCKSDB == 1 }} | ||
# env: | ||
# DEADLINE_SCALE_FACTOR: 2 | ||
# run: ci/actions/windows/build.ps1 |