File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
.github/actions/configure-environment Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ name : ' Configure environment'
2+ description : ' Configure CI, cache and container name environment variables'
3+ runs :
4+ using : ' composite'
5+ steps :
6+ - name : Set CI and cache directories
7+ shell : bash
8+ run : |
9+ echo "BASE_ROOT_DIR=${{ runner.temp }}" >> "$GITHUB_ENV"
10+ echo "BASE_BUILD_DIR=${{ runner.temp }}/build" >> "$GITHUB_ENV"
11+ echo "CCACHE_DIR=${{ runner.temp }}/ccache_dir" >> $GITHUB_ENV
12+ echo "DEPENDS_DIR=${{ runner.temp }}/depends" >> "$GITHUB_ENV"
13+ echo "BASE_CACHE=${{ runner.temp }}/depends/built" >> $GITHUB_ENV
14+ echo "SOURCES_PATH=${{ runner.temp }}/depends/sources" >> $GITHUB_ENV
15+ echo "PREVIOUS_RELEASES_DIR=${{ runner.temp }}/previous_releases" >> $GITHUB_ENV
16+
17+ - name : Set cache hashes
18+ shell : bash
19+ run : |
20+ echo "DEPENDS_HASH=$(git ls-tree HEAD depends "ci/test/$FILE_ENV" | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
21+ echo "PREVIOUS_RELEASES_HASH=$(git ls-tree HEAD test/get_previous_releases.py | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
22+
23+ - name : Get container name
24+ shell : bash
25+ run : |
26+ source $FILE_ENV
27+ echo "CONTAINER_NAME=$CONTAINER_NAME" >> "$GITHUB_ENV"
You can’t perform that action at this time.
0 commit comments