mirror of https://github.com/ecmwf/eccodes.git
Pass environment variables to the remote machine
This commit is contained in:
parent
339d918734
commit
8bcbdf8197
|
@ -14,16 +14,9 @@ module load python3
|
||||||
|
|
||||||
version=$(cat $TMPDIR/eccodes/VERSION)
|
version=$(cat $TMPDIR/eccodes/VERSION)
|
||||||
|
|
||||||
env_check_param="$1"
|
|
||||||
echo env_check: $env_check_param
|
|
||||||
echo ENV_CHECK: $ENV_CHECK
|
|
||||||
|
|
||||||
regression_suite_dir=$TMPDIR/eccodes-regression-tests
|
regression_suite_dir=$TMPDIR/eccodes-regression-tests
|
||||||
mkdir -p $regression_suite_dir
|
mkdir -p $regression_suite_dir
|
||||||
git clone https://oauth2:${GH_TOKEN}@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir
|
git clone https://${GH_TOKEN}@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir
|
||||||
#git clone https://${GH_TOKEN}:@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir
|
|
||||||
#git clone https://${GH_TOKEN}:x-oauth-basic@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir
|
|
||||||
#git clone https://${GH_TOKEN}@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir
|
|
||||||
cd $regression_suite_dir
|
cd $regression_suite_dir
|
||||||
|
|
||||||
#cd ~masn/REGRESSION_TESTING/ecCodes
|
#cd ~masn/REGRESSION_TESTING/ecCodes
|
||||||
|
|
|
@ -11,10 +11,6 @@ on:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GH_REPO_READ_TOKEN }}
|
|
||||||
ENV_CHECK: 'SUCCESS'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci-hpc:
|
ci-hpc:
|
||||||
name: ci-hpc
|
name: ci-hpc
|
||||||
|
@ -22,6 +18,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name-prefix: eccodes-
|
name-prefix: eccodes-
|
||||||
build-inputs: |
|
build-inputs: |
|
||||||
|
--env: 'GH_TOKEN=${{ secrets.GH_REPO_READ_TOKEN }}'
|
||||||
--package: ${{ inputs.eccodes || 'ecmwf/eccodes@develop' }}
|
--package: ${{ inputs.eccodes || 'ecmwf/eccodes@develop' }}
|
||||||
--modules: |
|
--modules: |
|
||||||
ecbuild
|
ecbuild
|
||||||
|
@ -32,6 +29,6 @@ jobs:
|
||||||
--cmake-options: |
|
--cmake-options: |
|
||||||
-DENABLE_EXTRA_TESTS=1
|
-DENABLE_EXTRA_TESTS=1
|
||||||
${{ inputs.nightly_test && '-DENABLE_PNG=1,-DENABLE_NETCDF=1' || '' }}
|
${{ inputs.nightly_test && '-DENABLE_PNG=1,-DENABLE_NETCDF=1' || '' }}
|
||||||
${{ inputs.nightly_test && '--post-script: .github/ci-nightly-test.sh ${ENV_CHECK}' || '' }}
|
${{ inputs.nightly_test && '--post-script: .github/ci-nightly-test.sh' || '' }}
|
||||||
${{ inputs.nightly_test && '--force-build: true' || '' }}
|
${{ inputs.nightly_test && '--force-build: true' || '' }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
Loading…
Reference in New Issue