Skip to content

Commit

Permalink
ci: fix clippy and publish workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
AzHicham committed Sep 10, 2024
1 parent b9ce7e4 commit 5042213
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,25 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4 # v4
- name: Cache SDK
id: cache-sdk
uses: actions/cache@v4
with:
path: /tmp/sdk/
key: cache-sdk
- name: Google Storage authentication
if: ${{ steps.cache-sdk.outputs.cache-hit != 'true' }}
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
export_environment_variables: true
create_credentials_file: true
- name: Set up Cloud SDK
if: ${{ steps.cache-sdk.outputs.cache-hit != 'true' }}
uses: google-github-actions/setup-gcloud@v2
- name: Download dependencies
if: ${{ steps.cache-sdk.outputs.cache-hit != 'true' }}
run: make dl-sdk
- name: Install dependencies
run: make install-deps
- name: Install latest nightly
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,30 @@ jobs:
needs: [validate]
steps:
- uses: actions/checkout@v4 # v4
- uses: dtolnay/rust-toolchain@stable
- name: Cache SDK
id: cache-sdk
uses: actions/cache@v4
with:
toolchain: ${{ env.RUST_VERSION }}
path: /tmp/sdk/
key: cache-sdk
- name: Google Storage authentication
if: ${{ steps.cache-sdk.outputs.cache-hit != 'true' }}
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
export_environment_variables: true
create_credentials_file: true
- name: Set up Cloud SDK
if: ${{ steps.cache-sdk.outputs.cache-hit != 'true' }}
uses: google-github-actions/setup-gcloud@v2
- name: Download dependencies
if: ${{ steps.cache-sdk.outputs.cache-hit != 'true' }}
run: make dl-sdk
- name: Install dependencies ubuntu
run: make install-deps
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
- uses: katyo/publish-crates@v2
with:
dry-run: ${{ github.event_name != 'release' }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: install-deps dl-test-images
.PHONY: dl-sdk install-deps dl-test-images

dl-sdk:
cd /tmp && \
Expand Down

0 comments on commit 5042213

Please sign in to comment.