-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mainly due to GitHub's upcoming Node 20 requirement.
- Loading branch information
1 parent
a6529b8
commit f3674b4
Showing
3 changed files
with
103 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,29 +62,27 @@ jobs: | |
|
||
# GCP Boilerplate for jobs in main or forked repository (needs credentials) | ||
- id: gcp-auth | ||
if: github.ref != 'refs/heads/main' || github.repository != 'unicode-org/icu4x' | ||
name: "Authenticate to Google Cloud with JSON Credentials" | ||
uses: google-github-actions/auth@v1 | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
credentials_json: '${{ secrets.ICU4X_GCP_SA_KEY }}' | ||
- id: gcp-auth-main | ||
if: github.ref == 'refs/heads/main' && github.repository == 'unicode-org/icu4x' | ||
name: "Authenticate to Google Cloud with Workload Identity Provider" | ||
uses: google-github-actions/auth@v1 | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
workload_identity_provider: "projects/66042061814/locations/global/workloadIdentityPools/icu4x-gha-pool1/providers/icu4x-gha-provider1" | ||
service_account: "[email protected]" | ||
- name: "Set up Google Cloud SDK" | ||
uses: google-github-actions/setup-gcloud@v1 | ||
uses: google-github-actions/setup-gcloud@v2 | ||
|
||
- name: Build docs | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: doc | ||
# Exclude tool and derive crates | ||
args: > | ||
--workspace --release --all-features --no-deps --lib | ||
run: > | ||
cargo doc --workspace --release --all-features --no-deps --lib | ||
--exclude icu_benchmark_macros | ||
--exclude icu_ffi_coverage | ||
--exclude md-tests | ||
--exclude icu_provider_macros | ||
--exclude databake-derive | ||
--exclude yoke-derive | ||
|
@@ -114,19 +112,20 @@ jobs: | |
|
||
# GCP Boilerplate for jobs in main or forked repository (needs credentials) | ||
- id: gcp-auth | ||
if: github.ref != 'refs/heads/main' || github.repository != 'unicode-org/icu4x' | ||
name: "Authenticate to Google Cloud with JSON Credentials" | ||
uses: google-github-actions/auth@v1 | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
credentials_json: '${{ secrets.ICU4X_GCP_SA_KEY }}' | ||
- id: gcp-auth-main | ||
if: github.ref == 'refs/heads/main' && github.repository == 'unicode-org/icu4x' | ||
name: "Authenticate to Google Cloud with Workload Identity Provider" | ||
uses: google-github-actions/auth@v1 | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
workload_identity_provider: "projects/66042061814/locations/global/workloadIdentityPools/icu4x-gha-pool1/providers/icu4x-gha-provider1" | ||
service_account: "[email protected]" | ||
- name: "Set up Google Cloud SDK" | ||
uses: google-github-actions/setup-gcloud@v1 | ||
uses: google-github-actions/setup-gcloud@v2 | ||
|
||
- name: Install doxygen-awesome | ||
run: | | ||
|
@@ -160,19 +159,20 @@ jobs: | |
|
||
# GCP Boilerplate for jobs in main or forked repository (needs credentials) | ||
- id: gcp-auth | ||
if: github.ref != 'refs/heads/main' || github.repository != 'unicode-org/icu4x' | ||
name: "Authenticate to Google Cloud with JSON Credentials" | ||
uses: google-github-actions/auth@v1 | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
credentials_json: '${{ secrets.ICU4X_GCP_SA_KEY }}' | ||
- id: gcp-auth-main | ||
if: github.ref == 'refs/heads/main' && github.repository == 'unicode-org/icu4x' | ||
name: "Authenticate to Google Cloud with Workload Identity Provider" | ||
uses: google-github-actions/auth@v1 | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
workload_identity_provider: "projects/66042061814/locations/global/workloadIdentityPools/icu4x-gha-pool1/providers/icu4x-gha-provider1" | ||
service_account: "[email protected]" | ||
- name: "Set up Google Cloud SDK" | ||
uses: google-github-actions/setup-gcloud@v1 | ||
uses: google-github-actions/setup-gcloud@v2 | ||
|
||
- name: Build docs | ||
run: | | ||
|
@@ -205,19 +205,20 @@ jobs: | |
|
||
# GCP Boilerplate for jobs in main or forked repository (needs credentials) | ||
- id: gcp-auth | ||
if: github.ref != 'refs/heads/main' || github.repository != 'unicode-org/icu4x' | ||
name: "Authenticate to Google Cloud with JSON Credentials" | ||
uses: google-github-actions/auth@v1 | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
credentials_json: '${{ secrets.ICU4X_GCP_SA_KEY }}' | ||
- id: gcp-auth-main | ||
if: github.ref == 'refs/heads/main' && github.repository == 'unicode-org/icu4x' | ||
name: "Authenticate to Google Cloud with Workload Identity Provider" | ||
uses: google-github-actions/auth@v1 | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
workload_identity_provider: "projects/66042061814/locations/global/workloadIdentityPools/icu4x-gha-pool1/providers/icu4x-gha-provider1" | ||
service_account: "[email protected]" | ||
- name: "Set up Google Cloud SDK" | ||
uses: google-github-actions/setup-gcloud@v1 | ||
uses: google-github-actions/setup-gcloud@v2 | ||
|
||
- name: Install Dart | ||
uses: dart-lang/setup-dart@v1 | ||
|
@@ -258,12 +259,12 @@ jobs: | |
# GCP Boilerplate for jobs in main repository | ||
- id: gcp-auth | ||
name: "Authenticate to Google Cloud with Workload Identity Provider" | ||
uses: google-github-actions/auth@v1 | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
workload_identity_provider: "projects/66042061814/locations/global/workloadIdentityPools/icu4x-gha-pool1/providers/icu4x-gha-provider1" | ||
service_account: "[email protected]" | ||
- name: "Set up Google Cloud SDK" | ||
uses: google-github-actions/setup-gcloud@v1 | ||
uses: google-github-actions/setup-gcloud@v2 | ||
|
||
- name: Init packages | ||
run: | | ||
|
@@ -324,16 +325,18 @@ jobs: | |
# GCP Boilerplate for jobs in main repository | ||
- id: gcp-auth | ||
name: "Authenticate to Google Cloud with Workload Identity Provider" | ||
uses: google-github-actions/auth@v1 | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
workload_identity_provider: "projects/66042061814/locations/global/workloadIdentityPools/icu4x-gha-pool1/providers/icu4x-gha-provider1" | ||
service_account: "[email protected]" | ||
- name: "Set up Google Cloud SDK" | ||
uses: google-github-actions/setup-gcloud@v1 | ||
uses: google-github-actions/setup-gcloud@v2 | ||
|
||
# Cargo-make boilerplate | ||
- name: Install cargo-make | ||
uses: taiki-e/install-action@cargo-make | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
# Actual job | ||
|
||
|
@@ -406,16 +409,18 @@ jobs: | |
# GCP Boilerplate for jobs in main repository | ||
- id: gcp-auth | ||
name: "Authenticate to Google Cloud with Workload Identity Provider" | ||
uses: google-github-actions/auth@v1 | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
workload_identity_provider: "projects/66042061814/locations/global/workloadIdentityPools/icu4x-gha-pool1/providers/icu4x-gha-provider1" | ||
service_account: "[email protected]" | ||
- name: "Set up Google Cloud SDK" | ||
uses: google-github-actions/setup-gcloud@v1 | ||
uses: google-github-actions/setup-gcloud@v2 | ||
|
||
# Cargo-make boilerplate | ||
- name: Install cargo-make | ||
uses: taiki-e/install-action@cargo-make | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
# Actual job | ||
|
||
|
@@ -469,16 +474,18 @@ jobs: | |
# GCP Boilerplate for jobs in main repository | ||
- id: gcp-auth | ||
name: "Authenticate to Google Cloud with Workload Identity Provider" | ||
uses: google-github-actions/auth@v1 | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
workload_identity_provider: "projects/66042061814/locations/global/workloadIdentityPools/icu4x-gha-pool1/providers/icu4x-gha-provider1" | ||
service_account: "[email protected]" | ||
- name: "Set up Google Cloud SDK" | ||
uses: google-github-actions/setup-gcloud@v1 | ||
uses: google-github-actions/setup-gcloud@v2 | ||
|
||
# Cargo-make boilerplate | ||
- name: Install cargo-make | ||
uses: taiki-e/install-action@cargo-make | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
# Job-specific dependencies | ||
- name: Install npm tools | ||
|
@@ -565,18 +572,18 @@ jobs: | |
# GCP Boilerplate for jobs in main repository | ||
- id: gcp-auth | ||
name: "Authenticate to Google Cloud with Workload Identity Provider" | ||
uses: google-github-actions/auth@v1 | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
workload_identity_provider: "projects/66042061814/locations/global/workloadIdentityPools/icu4x-gha-pool1/providers/icu4x-gha-provider1" | ||
service_account: "[email protected]" | ||
- name: "Set up Google Cloud SDK" | ||
uses: google-github-actions/setup-gcloud@v1 | ||
uses: google-github-actions/setup-gcloud@v2 | ||
- name: Download artifacts | ||
run: | | ||
mkdir website | ||
gsutil -m cp -rn gs://${{ env.GCP_MAIN_BUCKET_ID }}/gha/* website || true | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: 'website' | ||
- name: Deploy to GitHub Pages | ||
|
Oops, something went wrong.