diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-05-13 00:15:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 09:15:32 +0200 |
commit | 3c622d799929520ce4f1831ec2b8ba575f21e2e0 (patch) | |
tree | 5ad875d052376beac4db5b249aefd88b046af0fc | |
parent | 3bc625aff1664eb4206ae90d0a132c8f717e651d (diff) | |
download | Nim-3c622d799929520ce4f1831ec2b8ba575f21e2e0.tar.gz |
upgrade nodejs; add nimCiSystemInfo on azure/github CI (#18003)
* upgrade nodejs; add nimCiSysmtemInfo on all CI * fix typo
-rw-r--r-- | .github/workflows/ci_docs.yml | 4 | ||||
-rw-r--r-- | .github/workflows/ci_packages.yml | 8 | ||||
-rw-r--r-- | azure-pipelines.yml | 15 | ||||
-rw-r--r-- | ci/funs.sh | 15 |
4 files changed, 27 insertions, 15 deletions
diff --git a/.github/workflows/ci_docs.yml b/.github/workflows/ci_docs.yml index a62fd12a5..364c05051 100644 --- a/.github/workflows/ci_docs.yml +++ b/.github/workflows/ci_docs.yml @@ -70,6 +70,10 @@ jobs: shell: bash run: echo "${{ github.workspace }}/bin" >> "${GITHUB_PATH}" + - name: 'System information' + shell: bash + run: . ci/funs.sh && nimCiSystemInfo + - name: 'Build csourcesAny (posix)' # this would work on windows and other CI use this on windows, # but we ensure here that `ci/build_autogen.bat` keeps working on windows. diff --git a/.github/workflows/ci_packages.yml b/.github/workflows/ci_packages.yml index 247cd2971..d033aba10 100644 --- a/.github/workflows/ci_packages.yml +++ b/.github/workflows/ci_packages.yml @@ -20,10 +20,10 @@ jobs: with: fetch-depth: 2 - - name: 'Install node.js 12.x' + - name: 'Install node.js 16.x' uses: actions/setup-node@v2 with: - node-version: '12.x' + node-version: '16.x' - name: 'Install dependencies (Linux amd64)' if: runner.os == 'Linux' && matrix.cpu == 'amd64' @@ -51,6 +51,10 @@ jobs: shell: bash run: echo "${{ github.workspace }}/bin" >> "${GITHUB_PATH}" + - name: 'System information' + shell: bash + run: . ci/funs.sh && nimCiSystemInfo + - name: 'Build csourcesAny' shell: bash run: . ci/funs.sh && nimBuildCsourcesIfNeeded CC=gcc ucpu='${{ matrix.cpu }}' diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b0fa8cab7..112fb0a62 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -72,8 +72,8 @@ jobs: - task: NodeTool@0 inputs: - versionSpec: '12.x' - displayName: 'Install node.js 12.x' + versionSpec: '16.x' + displayName: 'Install node.js 16.x' condition: and(succeeded(), eq(variables['skipci'], 'false')) - bash: | @@ -147,16 +147,7 @@ jobs: condition: and(succeeded(), eq(variables['skipci'], 'false')) displayName: 'Add build binaries to PATH' - - bash: | - set -e - . ci/funs.sh - echo_run echo 'PATH:' "$PATH" - echo_run echo '##[section]gcc version' - echo_run gcc -v - echo_run echo '##[section]nodejs version' - echo_run node -v - echo_run echo '##[section]make version' - echo_run make -v + - bash: . ci/funs.sh && nimCiSystemInfo condition: and(succeeded(), eq(variables['skipci'], 'false')) displayName: 'System information' diff --git a/ci/funs.sh b/ci/funs.sh index 52dbc9162..cad005246 100644 --- a/ci/funs.sh +++ b/ci/funs.sh @@ -6,7 +6,7 @@ echo_run () { # echo's a command before running it, which helps understanding logs echo "" - echo "$@" + echo "cmd: $@" # in azure we could also use this: echo '##[section]"$@"' "$@" } @@ -67,6 +67,19 @@ _nimBuildCsourcesIfNeeded(){ echo_run cp bin/nim $nim_csources } +nimCiSystemInfo(){ + nimDefineVars + echo_run eval echo '$'nim_csources + echo_run pwd + echo_run date + echo_run uname -a + echo_run git log --no-merges -1 --pretty=oneline + echo_run eval echo '$'PATH + echo_run gcc -v + echo_run node -v + echo_run make -v +} + nimCsourcesHash(){ nimDefineVars echo $nim_csourcesHash |