Skip to content
Merged
28 changes: 21 additions & 7 deletions .github/workflows/therock-ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ jobs:
fail-fast: true
env:
CACHE_DIR: ${{ github.workspace }}/.container-cache
CCACHE_DIR: "${{ github.workspace }}/.container-cache/ccache"
CCACHE_MAXSIZE: "700M"
CCACHE_CONFIGPATH: ${{ github.workspace }}/.ccache/ccache.conf
AMDGPU_FAMILIES: "gfx94X-dcgpu"
TEATIME_FORCE_INTERACTIVE: 0
steps:
Expand All @@ -52,22 +51,30 @@ jobs:
with:
repository: "ROCm/TheRock"
path: "TheRock"
ref: 5682f361d81bd53dbf677ed678539688a856a54f
ref: 85c8db9207bdd8b7e917cdd5cbf7f9f86b0ef62d

- name: Runner Health Settings
run: |
echo "CCACHE_DIR=${CCACHE_DIR}"
./TheRock/build_tools/setup_ccache.py \
--config-preset "github-oss-presubmit" \
--dir "$(dirname $CCACHE_CONFIGPATH)" \
--local-path "$CACHE_DIR/ccache"
df -h
echo "ccache version: $(ccache --version)"
echo "ccache config:"
echo "---"
cat "$CCACHE_CONFIGPATH"
echo "---"
ccache -z
mkdir -p $CCACHE_DIR
ccache -s -v
cmake --version
echo "Installed Python versions:"
ls -d /opt/python
echo "python: $(which python), python3: $(which python3)"
echo "Git version: $(git --version)"
git config --global --add safe.directory $PWD
git config fetch.parallel 10

- name: Fetch sources
run: |
./TheRock/build_tools/fetch_sources.py --jobs 12 --no-include-math-libs
Expand Down Expand Up @@ -106,7 +113,8 @@ jobs:
du -h -d 1 TheRock/build/artifacts
echo "CCache Stats:"
echo "-------------"
ccache -s
ccache -s -v
tail -v -n +1 .ccache/compiler_check_cache/* > TheRock/build/logs/ccache_compiler_check_cache.log

- name: Configure AWS Credentials
if: always()
Expand All @@ -115,6 +123,12 @@ jobs:
aws-region: us-east-2
role-to-assume: arn:aws:iam::692859939525:role/therock-artifacts-external

- name: Create Log archive
if: always()
run: |
python3 TheRock/build_tools/create_log_archive.py \
--build-dir=TheRock/build

- name: Create Logs index Files
if: always()
run: |
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/therock-ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
with:
repository: "ROCm/TheRock"
path: "TheRock"
ref: 5682f361d81bd53dbf677ed678539688a856a54f
ref: 85c8db9207bdd8b7e917cdd5cbf7f9f86b0ef62d

- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
Expand Down Expand Up @@ -138,6 +138,12 @@ jobs:
aws-region: us-east-2
role-to-assume: arn:aws:iam::692859939525:role/therock-artifacts-external

- name: Create Log archive
if: always()
run: |
python3 TheRock/build_tools/create_log_archive.py \
--build-dir=${{ env.BUILD_DIR }}

- name: Create Logs index Files
if: always()
run: |
Expand Down
Loading