Skip to content

Commit

Permalink
Rpm building 2 (#13)
Browse files Browse the repository at this point in the history
* 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
thsfs and Russel Waters committed May 2, 2022
1 parent 87c5b2f commit 4d50a08
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 141 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/analyzers.yml
@@ -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
5 changes: 4 additions & 1 deletion .github/workflows/ci_testing.yml
Expand Up @@ -37,8 +37,11 @@ jobs:
-v artifacts:/root/rpmbuild/RPMS -v source:/root/rpmbuild/SOURCES \
thsfs/nano-env:centos /bin/bash -c "ci/build-centos.sh"
echo "Showing the files..."
find ~/rpmbuild
find /root
echo "WhoAmI"
echo `whoami`
echo "Looking for the RPMs..."
find /root -name '*.rpm'
find ~/ -name '*.rpm'
- name: Create SSH key
run: |
Expand Down
204 changes: 102 additions & 102 deletions .github/workflows/tests.yml
@@ -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

0 comments on commit 4d50a08

Please sign in to comment.