Merge pull request #4756 from pwojcikdev/github-actions-update
GitHub workflow updates
This commit is contained in:
commit
55e906569a
17 changed files with 74 additions and 43 deletions
|
|
@ -3,7 +3,7 @@ description: "Restore file modification timestamps from git commit timestamps"
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: "MestreLion/git-tools"
|
repository: "MestreLion/git-tools"
|
||||||
ref: a42a069bc755f0fa81316965335cb33dbf22a968 # pin latest commit
|
ref: a42a069bc755f0fa81316965335cb33dbf22a968 # pin latest commit
|
||||||
|
|
|
||||||
6
.github/workflows/analyzers.yml
vendored
6
.github/workflows/analyzers.yml
vendored
|
|
@ -8,7 +8,7 @@ jobs:
|
||||||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Installing clang-format
|
- name: Installing clang-format
|
||||||
env:
|
env:
|
||||||
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 #v4.3.0
|
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 #v4.3.0
|
||||||
|
|
@ -50,6 +50,6 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0
|
- uses: actions/checkout@v4
|
||||||
- name: Run code-inspector
|
- name: Run code-inspector
|
||||||
run: ci/code-inspector-check.sh
|
run: ci/code-inspector-check.sh
|
||||||
|
|
|
||||||
42
.github/workflows/build_deploy.yml
vendored
42
.github/workflows/build_deploy.yml
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
name: Build & Deploy
|
name: Build & Deploy
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * 3,6"
|
- cron: "0 0 * * 3,6" # Every Wednesday and Saturday at 00:00
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
is_release_build:
|
is_release_build:
|
||||||
|
|
@ -14,12 +14,15 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare_build:
|
prepare_build:
|
||||||
|
name: Prepare Build
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
outputs:
|
outputs:
|
||||||
ci_tag: ${{ steps.set_vars.outputs.ci_tag }}
|
ci_tag: ${{ steps.set_vars.outputs.ci_tag }}
|
||||||
tag_created: ${{ steps.set_vars.outputs.tag_created }}
|
tag_created: ${{ steps.set_vars.outputs.tag_created }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set the tag and version
|
- name: Set the tag and version
|
||||||
id: tag_set
|
id: tag_set
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -27,14 +30,15 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_ACTOR: ${{ github.actor }}
|
GITHUB_ACTOR: ${{ github.actor }}
|
||||||
IS_RELEASE_BUILD: ${{ github.event.inputs.is_release_build || 'false' }}
|
IS_RELEASE_BUILD: ${{ github.event.inputs.is_release_build || 'false' }}
|
||||||
|
|
||||||
- name: Set output
|
- name: Set output
|
||||||
id: set_vars
|
id: set_vars
|
||||||
run: |
|
run: |
|
||||||
echo "ci_tag=$CI_TAG" >> $GITHUB_OUTPUT
|
echo "ci_tag=$CI_TAG" >> $GITHUB_OUTPUT
|
||||||
echo "tag_created=$TAG_CREATED" >> $GITHUB_OUTPUT
|
echo "tag_created=$TAG_CREATED" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|
||||||
osx_job:
|
osx_job:
|
||||||
|
name: macOS [${{ matrix.network }}]
|
||||||
needs: prepare_build
|
needs: prepare_build
|
||||||
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
||||||
runs-on: macOS-14
|
runs-on: macOS-14
|
||||||
|
|
@ -43,19 +47,22 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
network: ["TEST", "BETA", "LIVE"]
|
network: ["TEST", "BETA", "LIVE"]
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: ci/prepare/macos/prepare.sh
|
run: ci/prepare/macos/prepare.sh
|
||||||
|
|
||||||
- name: Build Artifact
|
- name: Build Artifact
|
||||||
run: ci/build-deploy.sh "/tmp/qt/lib/cmake/Qt5";
|
run: ci/build-deploy.sh "/tmp/qt/lib/cmake/Qt5";
|
||||||
env:
|
env:
|
||||||
NETWORK: ${{ matrix.network }}
|
NETWORK: ${{ matrix.network }}
|
||||||
CI_TAG: ${{ needs.prepare_build.outputs.ci_tag }}
|
CI_TAG: ${{ needs.prepare_build.outputs.ci_tag }}
|
||||||
|
|
||||||
- name: Deploy Artifact
|
- name: Deploy Artifact
|
||||||
run: ci/actions/deploy.sh
|
run: ci/actions/deploy.sh
|
||||||
env:
|
env:
|
||||||
|
|
@ -67,8 +74,8 @@ jobs:
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
AWS_DEFAULT_REGION: us-east-2
|
AWS_DEFAULT_REGION: us-east-2
|
||||||
|
|
||||||
|
|
||||||
linux_job:
|
linux_job:
|
||||||
|
name: Linux [${{ matrix.network }}]
|
||||||
needs: prepare_build
|
needs: prepare_build
|
||||||
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
@ -77,13 +84,16 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
network: ["TEST", "BETA", "LIVE"]
|
network: ["TEST", "BETA", "LIVE"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: sudo -E ci/prepare/linux/prepare.sh
|
run: sudo -E ci/prepare/linux/prepare.sh
|
||||||
|
|
||||||
- name: Build Artifact
|
- name: Build Artifact
|
||||||
run: ci/build-deploy.sh "/usr/lib/x86_64-linux-gnu/cmake/Qt5"
|
run: ci/build-deploy.sh "/usr/lib/x86_64-linux-gnu/cmake/Qt5"
|
||||||
env:
|
env:
|
||||||
|
|
@ -101,8 +111,8 @@ jobs:
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
AWS_DEFAULT_REGION: us-east-2
|
AWS_DEFAULT_REGION: us-east-2
|
||||||
|
|
||||||
|
|
||||||
linux_docker_job:
|
linux_docker_job:
|
||||||
|
name: Docker [${{ matrix.network }}]
|
||||||
needs: prepare_build
|
needs: prepare_build
|
||||||
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
@ -117,21 +127,25 @@ jobs:
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
IS_RELEASE_BUILD: ${{ github.event.inputs.is_release_build || 'false' }}
|
IS_RELEASE_BUILD: ${{ github.event.inputs.is_release_build || 'false' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
|
|
||||||
- name: Build Docker
|
- name: Build Docker
|
||||||
run: ci/actions/linux/docker-build.sh
|
run: ci/actions/linux/docker-build.sh
|
||||||
env:
|
env:
|
||||||
NETWORK: ${{ matrix.network }}
|
NETWORK: ${{ matrix.network }}
|
||||||
- name: Deploy Docker Hub
|
|
||||||
|
- name: Deploy Docker (Docker Hub)
|
||||||
if: env.DOCKER_PASSWORD != ''
|
if: env.DOCKER_PASSWORD != ''
|
||||||
run: ci/actions/linux/docker-deploy.sh
|
run: ci/actions/linux/docker-deploy.sh
|
||||||
env:
|
env:
|
||||||
NETWORK: ${{ matrix.network }}
|
NETWORK: ${{ matrix.network }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Deploy Docker (ghcr.io)
|
- name: Deploy Docker (ghcr.io)
|
||||||
run: ci/actions/linux/ghcr-deploy.sh
|
run: ci/actions/linux/ghcr-deploy.sh
|
||||||
env:
|
env:
|
||||||
|
|
@ -140,8 +154,8 @@ jobs:
|
||||||
DOCKER_USER: ${{ github.repository_owner }}
|
DOCKER_USER: ${{ github.repository_owner }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
||||||
windows_job:
|
windows_job:
|
||||||
|
name: Windows [${{ matrix.network }}]
|
||||||
needs: prepare_build
|
needs: prepare_build
|
||||||
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
@ -150,18 +164,22 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
network: ["TEST", "BETA", "LIVE"]
|
network: ["TEST", "BETA", "LIVE"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: ci/prepare/windows/prepare.ps1
|
run: ci/prepare/windows/prepare.ps1
|
||||||
|
|
||||||
- name: Build Artifact
|
- name: Build Artifact
|
||||||
run: ci/actions/windows/build.ps1
|
run: ci/actions/windows/build.ps1
|
||||||
env:
|
env:
|
||||||
CSC_LINK: ${{ secrets.CSC_LINK }}
|
CSC_LINK: ${{ secrets.CSC_LINK }}
|
||||||
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
||||||
|
|
||||||
- name: Deploy Artifact
|
- name: Deploy Artifact
|
||||||
run: ci/actions/windows/deploy.ps1
|
run: ci/actions/windows/deploy.ps1
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
2
.github/workflows/changelog.yml
vendored
2
.github/workflows/changelog.yml
vendored
|
|
@ -37,7 +37,7 @@ jobs:
|
||||||
echo "REPO_TO_RUN=${{ github.event.inputs.repo }}" >> $GITHUB_ENV
|
echo "REPO_TO_RUN=${{ github.event.inputs.repo }}" >> $GITHUB_ENV
|
||||||
echo "MODE=${{ github.event.inputs.mode }}" >> $GITHUB_ENV
|
echo "MODE=${{ github.event.inputs.mode }}" >> $GITHUB_ENV
|
||||||
- name: Checks out the required workflow files (workflow repo)
|
- name: Checks out the required workflow files (workflow repo)
|
||||||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
|
|
|
||||||
4
.github/workflows/code_sanitizers.yml
vendored
4
.github/workflows/code_sanitizers.yml
vendored
|
|
@ -35,7 +35,7 @@ jobs:
|
||||||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
|
|
||||||
|
|
@ -91,7 +91,7 @@ jobs:
|
||||||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
|
|
||||||
|
|
|
||||||
2
.github/workflows/coverage.yml
vendored
2
.github/workflows/coverage.yml
vendored
|
|
@ -24,7 +24,7 @@ jobs:
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
- name: Fetch Deps
|
- name: Fetch Deps
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ jobs:
|
||||||
linux_job:
|
linux_job:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
- name: Fetch Deps
|
- name: Fetch Deps
|
||||||
|
|
|
||||||
2
.github/workflows/flamegraphs.yml
vendored
2
.github/workflows/flamegraphs.yml
vendored
|
|
@ -22,7 +22,7 @@ jobs:
|
||||||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
|
|
||||||
|
|
|
||||||
2
.github/workflows/prepare_release.yml
vendored
2
.github/workflows/prepare_release.yml
vendored
|
|
@ -7,7 +7,7 @@ jobs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3.1.0
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
|
||||||
6
.github/workflows/unit_tests.yml
vendored
6
.github/workflows/unit_tests.yml
vendored
|
|
@ -20,7 +20,7 @@ jobs:
|
||||||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
|
|
||||||
|
|
@ -66,7 +66,7 @@ jobs:
|
||||||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
|
|
||||||
|
|
@ -115,7 +115,7 @@ jobs:
|
||||||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,6 @@ case "${NETWORK}" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ -n "${S3_BUILD_DIRECTORY}" ]]; then
|
if [[ -n "${S3_BUILD_DIRECTORY}" ]]; then
|
||||||
|
|
||||||
|
|
||||||
DIRECTORY="${S3_BUILD_DIRECTORY}/${BUILD}"
|
DIRECTORY="${S3_BUILD_DIRECTORY}/${BUILD}"
|
||||||
else
|
else
|
||||||
DIRECTORY=$BUILD
|
DIRECTORY=$BUILD
|
||||||
|
|
@ -33,7 +31,7 @@ if [[ "$OS" == 'Linux' && "$IS_RPM_DEPLOY" -eq "1" ]]; then
|
||||||
|
|
||||||
for rpm in $RPMS; do
|
for rpm in $RPMS; do
|
||||||
SHA=$(sha256sum ${rpm})
|
SHA=$(sha256sum ${rpm})
|
||||||
echo "Hash: $SHA"
|
echo "::notice::Hash: $SHA"
|
||||||
echo $SHA > ${GITHUB_WORKSPACE}/$(basename "${rpm}.sha256")
|
echo $SHA > ${GITHUB_WORKSPACE}/$(basename "${rpm}.sha256")
|
||||||
|
|
||||||
aws s3 cp ${rpm} s3://${S3_BUCKET_NAME}/$DIRECTORY/binaries/$(basename "${rpm}") --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
|
aws s3 cp ${rpm} s3://${S3_BUCKET_NAME}/$DIRECTORY/binaries/$(basename "${rpm}") --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
|
||||||
|
|
@ -42,7 +40,7 @@ if [[ "$OS" == 'Linux' && "$IS_RPM_DEPLOY" -eq "1" ]]; then
|
||||||
|
|
||||||
for srpm in $SRPMS; do
|
for srpm in $SRPMS; do
|
||||||
SHA=$(sha256sum ${srpm})
|
SHA=$(sha256sum ${srpm})
|
||||||
echo "Hash: $SHA"
|
echo "::notice::Hash: $SHA"
|
||||||
echo $SHA > ${GITHUB_WORKSPACE}/$(basename "${srpm}).sha256")
|
echo $SHA > ${GITHUB_WORKSPACE}/$(basename "${srpm}).sha256")
|
||||||
|
|
||||||
aws s3 cp ${srpm} s3://${S3_BUCKET_NAME}/$DIRECTORY/source/$(basename "${srpm}") --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
|
aws s3 cp ${srpm} s3://${S3_BUCKET_NAME}/$DIRECTORY/source/$(basename "${srpm}") --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
|
||||||
|
|
@ -50,11 +48,11 @@ if [[ "$OS" == 'Linux' && "$IS_RPM_DEPLOY" -eq "1" ]]; then
|
||||||
done
|
done
|
||||||
elif [[ "$OS" == 'Linux' ]]; then
|
elif [[ "$OS" == 'Linux' ]]; then
|
||||||
SHA=$(sha256sum $GITHUB_WORKSPACE/build/nano-node-*-Linux.tar.bz2)
|
SHA=$(sha256sum $GITHUB_WORKSPACE/build/nano-node-*-Linux.tar.bz2)
|
||||||
echo "Hash: $SHA"
|
echo "::notice::Hash: $SHA"
|
||||||
echo $SHA >$GITHUB_WORKSPACE/nano-node-$TAG-Linux.tar.bz2.sha256
|
echo $SHA >$GITHUB_WORKSPACE/nano-node-$TAG-Linux.tar.bz2.sha256
|
||||||
|
|
||||||
SHA=$(sha256sum $GITHUB_WORKSPACE/build/nano-node-*-Linux.deb)
|
SHA=$(sha256sum $GITHUB_WORKSPACE/build/nano-node-*-Linux.deb)
|
||||||
echo "Hash: $SHA"
|
echo "::notice::Hash: $SHA"
|
||||||
echo $SHA >$GITHUB_WORKSPACE/nano-node-$TAG-Linux.deb.sha256
|
echo $SHA >$GITHUB_WORKSPACE/nano-node-$TAG-Linux.deb.sha256
|
||||||
|
|
||||||
aws s3 cp $GITHUB_WORKSPACE/build/nano-node-*-Linux.tar.bz2 s3://${S3_BUCKET_NAME}/$DIRECTORY/binaries/nano-node-$TAG-Linux.tar.bz2 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
|
aws s3 cp $GITHUB_WORKSPACE/build/nano-node-*-Linux.tar.bz2 s3://${S3_BUCKET_NAME}/$DIRECTORY/binaries/nano-node-$TAG-Linux.tar.bz2 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
|
||||||
|
|
@ -63,7 +61,7 @@ elif [[ "$OS" == 'Linux' ]]; then
|
||||||
aws s3 cp $GITHUB_WORKSPACE/nano-node-$TAG-Linux.deb.sha256 s3://${S3_BUCKET_NAME}/$DIRECTORY/binaries/nano-node-$TAG-Linux.deb.sha256 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
|
aws s3 cp $GITHUB_WORKSPACE/nano-node-$TAG-Linux.deb.sha256 s3://${S3_BUCKET_NAME}/$DIRECTORY/binaries/nano-node-$TAG-Linux.deb.sha256 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
|
||||||
else
|
else
|
||||||
SHA=$(sha256sum $GITHUB_WORKSPACE/build/nano-node-*-Darwin.dmg)
|
SHA=$(sha256sum $GITHUB_WORKSPACE/build/nano-node-*-Darwin.dmg)
|
||||||
echo "Hash: $SHA"
|
echo "::notice::Hash: $SHA"
|
||||||
echo $SHA >$GITHUB_WORKSPACE/build/nano-node-$TAG-Darwin.dmg.sha256
|
echo $SHA >$GITHUB_WORKSPACE/build/nano-node-$TAG-Darwin.dmg.sha256
|
||||||
|
|
||||||
aws s3 cp $GITHUB_WORKSPACE/build/nano-node-*-Darwin.dmg s3://${S3_BUCKET_NAME}/$DIRECTORY/binaries/nano-node-$TAG-Darwin.dmg --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
|
aws s3 cp $GITHUB_WORKSPACE/build/nano-node-*-Darwin.dmg s3://${S3_BUCKET_NAME}/$DIRECTORY/binaries/nano-node-$TAG-Darwin.dmg --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,22 @@ docker_login()
|
||||||
push_docker_image()
|
push_docker_image()
|
||||||
{
|
{
|
||||||
local image_name=$1
|
local image_name=$1
|
||||||
|
|
||||||
|
# Log the image name before pushing
|
||||||
|
echo "Pushing image: $image_name"
|
||||||
|
|
||||||
|
# Push the image
|
||||||
"$scripts"/custom-timeout.sh 30 docker push "$image_name"
|
"$scripts"/custom-timeout.sh 30 docker push "$image_name"
|
||||||
|
|
||||||
|
# After pushing, get the digest from the local image manifest
|
||||||
|
local digest
|
||||||
|
digest=$(docker image inspect --format='{{index .RepoDigests 0}}' "$image_name")
|
||||||
|
|
||||||
|
if [ -n "$digest" ]; then
|
||||||
|
echo "::notice::Hash: $digest $image_name"
|
||||||
|
else
|
||||||
|
echo "::error::Could not retrieve digest for image $image_name"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy_env_images()
|
deploy_env_images()
|
||||||
|
|
@ -154,7 +169,7 @@ deploy_tags()
|
||||||
local exclude_pattern=$2
|
local exclude_pattern=$2
|
||||||
local tags=$(docker images --format '{{.Repository}}:{{.Tag }}' | grep "$repo" | grep -vE "$exclude_pattern")
|
local tags=$(docker images --format '{{.Repository}}:{{.Tag }}' | grep "$repo" | grep -vE "$exclude_pattern")
|
||||||
|
|
||||||
#Debug list all tags
|
# Debug list all tags
|
||||||
docker images --format '{{.Repository}}:{{.Tag }}'
|
docker images --format '{{.Repository}}:{{.Tag }}'
|
||||||
|
|
||||||
for tag in $tags; do
|
for tag in $tags; do
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,8 @@ $zip_hash = ((Get-FileHash $zip).hash)+" "+(split-path -Path $zip -Resolve -leaf
|
||||||
$exe_hash | Out-file -FilePath "$exe.sha256"
|
$exe_hash | Out-file -FilePath "$exe.sha256"
|
||||||
$zip_hash | Out-file -FilePath "$zip.sha256"
|
$zip_hash | Out-file -FilePath "$zip.sha256"
|
||||||
|
|
||||||
Write-Output "Hash: $exe_hash"
|
Write-Output "::notice::Hash: $exe_hash"
|
||||||
Write-Output "Hash: $zip_hash"
|
Write-Output "::notice::Hash: $zip_hash"
|
||||||
|
|
||||||
aws s3 cp "$exe" s3://$env:S3_BUCKET_NAME/$directory/binaries/nano-node-$env:TAG-win64.exe --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
|
aws s3 cp "$exe" s3://$env:S3_BUCKET_NAME/$directory/binaries/nano-node-$env:TAG-win64.exe --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
|
||||||
aws s3 cp "$exe.sha256" s3://$env:S3_BUCKET_NAME/$directory/binaries/nano-node-$env:TAG-win64.exe.sha256 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
|
aws s3 cp "$exe.sha256" s3://$env:S3_BUCKET_NAME/$directory/binaries/nano-node-$env:TAG-win64.exe.sha256 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euox pipefail
|
set -euox pipefail
|
||||||
|
|
||||||
#Homebrew randomly fails to update. Retry 5 times with 15s interval
|
# Homebrew randomly fails to update. Retry 5 times with 15s interval
|
||||||
for i in {1..5}; do brew update && break || { echo "Update failed, retrying..."; sleep 15; }; done
|
for i in {1..5}; do brew update && break || { echo "Update failed, retrying..."; sleep 15; }; done
|
||||||
|
|
||||||
brew install coreutils
|
brew install coreutils
|
||||||
|
|
@ -10,4 +10,4 @@ brew install qt@5
|
||||||
brew link qt@5
|
brew link qt@5
|
||||||
|
|
||||||
# Workaround: https://github.com/Homebrew/homebrew-core/issues/8392
|
# Workaround: https://github.com/Homebrew/homebrew-core/issues/8392
|
||||||
echo "$(brew --prefix qt5)/bin" >> $GITHUB_PATH
|
echo "$(brew --prefix qt@5)/bin" >> $GITHUB_PATH
|
||||||
|
|
@ -44,7 +44,7 @@ for script in ${NANO_SYSTEST_DIR}/*.sh; do
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $overall_status -eq 0 ]; then
|
if [ $overall_status -eq 0 ]; then
|
||||||
echo "::notice::All systests passed"
|
echo "All systests passed"
|
||||||
else
|
else
|
||||||
echo "::error::Some systests failed"
|
echo "::error::Some systests failed"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ if [[ ${#reports[@]} -gt 0 ]]; then
|
||||||
issue_reported=true
|
issue_reported=true
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "::notice::No report has been generated."
|
echo "No report has been generated."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "issue_reported=${issue_reported}" >> $GITHUB_OUTPUT
|
echo "issue_reported=${issue_reported}" >> $GITHUB_OUTPUT
|
||||||
|
|
@ -28,6 +28,6 @@ if $issue_reported; then
|
||||||
echo "::error::Issues were reported in the sanitizer report."
|
echo "::error::Issues were reported in the sanitizer report."
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "::notice::No issues found in the sanitizer reports."
|
echo "No issues found in the sanitizer reports."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
FROM ubuntu:22.04 as builder
|
FROM ubuntu:22.04 AS builder
|
||||||
|
|
||||||
ARG COMPILER=gcc
|
ARG COMPILER=gcc
|
||||||
ARG NANO_NETWORK=live
|
ARG NANO_NETWORK=live
|
||||||
|
|
@ -10,7 +10,7 @@ RUN /tmp/prepare/prepare.sh
|
||||||
COPY ./ /tmp/src
|
COPY ./ /tmp/src
|
||||||
WORKDIR /tmp/src
|
WORKDIR /tmp/src
|
||||||
|
|
||||||
#Define ARGs for ci/build-node.sh
|
# Define ARGs for ci/build-node.sh
|
||||||
ARG BUILD_TYPE=RelWithDebInfo
|
ARG BUILD_TYPE=RelWithDebInfo
|
||||||
ARG NANO_TEST=OFF
|
ARG NANO_TEST=OFF
|
||||||
ARG NANO_TRACING=OFF
|
ARG NANO_TRACING=OFF
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue