Skip to content

Commit 3bdd909

Browse files
authored
Drop Docker and remote ccache usage from publish_website.yml. (#18421)
Progress on #15332 - one less workflow needing the `gcr.io/iree-oss/base` dockerfile and a ccache storage on GCP. Tested on my fork: * Cold cache (5m30s): https://github.com/ScottTodd/iree/actions/runs/10690774251/job/29635889592 * Warm cache (3m30s): https://github.com/ScottTodd/iree/actions/runs/10690871405/job/29636198158 skip-ci: no impact on other workflows
1 parent 918cea4 commit 3bdd909

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/workflows/publish_website.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,25 @@ jobs:
4444
with:
4545
python-version: 3.x
4646
cache: "pip"
47-
- id: "gcp-auth"
48-
name: "Authenticating to Google Cloud"
49-
uses: "google-github-actions/auth@v1"
50-
with:
51-
token_format: "access_token"
52-
credentials_json: "${{ secrets.IREE_OSS_GITHUB_RUNNER_BASIC_TRUST_SERVICE_ACCOUNT_KEY }}"
53-
create_credentials_file: false
5447
- name: Installing dependencies
5548
run: |
5649
pip install -r docs/website/requirements.txt
5750
pip install requests
51+
sudo apt update
52+
sudo apt install -y ninja-build
53+
echo "CC=clang" >> $GITHUB_ENV
54+
echo "CXX=clang++" >> $GITHUB_ENV
5855
- name: Generating release index
5956
run: |
6057
./build_tools/scripts/generate_release_index.py \
6158
--repo="${GITHUB_REPOSITORY}" \
6259
--output=docs/website/docs/pip-release-links.html
60+
- name: ccache
61+
uses: hendrikmuhs/ccache-action@v1.2
62+
with:
63+
key: ${{ github.job }}
6364
- name: Building documentation files
64-
run: |
65-
./build_tools/github_actions/docker_run.sh \
66-
--env "IREE_CCACHE_GCP_TOKEN=${{ steps.gcp-auth.outputs.access_token }}" \
67-
--env "IREE_WRITE_REMOTE_CCACHE=1" \
68-
--env "CCACHE_NAMESPACE=gcr.io/iree-oss/base@sha256:dc314b4fe30fc1315742512891357bffed4d1b62ffcb46258b1e0761c737b446" \
69-
gcr.io/iree-oss/base@sha256:dc314b4fe30fc1315742512891357bffed4d1b62ffcb46258b1e0761c737b446 \
70-
./docs/website/generate_extra_files.sh
65+
run: ./docs/website/generate_extra_files.sh
7166
- name: Setting git config
7267
run: |
7368
git config --local user.email "iree-github-actions-bot@google.com"

0 commit comments

Comments
 (0)