mirror of
https://github.com/jlengrand/engine.git
synced 2026-03-10 08:11:21 +00:00
tests: fix sccache release retrieval (#705)
This commit is contained in:
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
@@ -21,20 +21,23 @@ jobs:
|
||||
- uses: hashicorp/setup-terraform@v1
|
||||
with:
|
||||
terraform_version: 0.14.10
|
||||
- uses: sergeysova/jq-action@v2
|
||||
id: sccache_release
|
||||
with:
|
||||
cmd: 'curl --silent "https://api.github.com/repos/Qovery/sccache-bin/releases/latest" | jq .tag_name'
|
||||
multiline: false
|
||||
- name: build-linter-utests
|
||||
run: |
|
||||
echo "########## LINTER ##########"
|
||||
cargo fmt --all -- --check --color=always || (echo "Use cargo fmt to format your code"; exit 1)
|
||||
rustup component add clippy
|
||||
cargo clippy --locked --all --all-features --lib -- -D warnings || (echo "Solve your clippy warnings to continue"; exit 1)
|
||||
|
||||
export PATH=$GITHUB_WORKSPACE/bin:$PATH
|
||||
export RUSTC_WRAPPER=$GITHUB_WORKSPACE/bin/sccache
|
||||
export SCCACHE_REDIS=${{ secrets.SCCACHE_REDIS }}
|
||||
export TF_PLUGIN_CACHE_DIR=$HOME/.terraform.d/plugin-cache
|
||||
mkdir -p $GITHUB_WORKSPACE/bin $HOME/.terraform.d/plugin-cache
|
||||
sccache_release=$(curl --silent "https://github.com/Qovery/sccache-bin/releases/latest" | sed -r 's/^.+tag\/(.+)">.+/\1/')
|
||||
curl -sLo $GITHUB_WORKSPACE/bin/sccache https://github.com/Qovery/sccache-bin/releases/download/${sccache_release}/sccache
|
||||
curl -sLo $GITHUB_WORKSPACE/bin/sccache https://github.com/Qovery/sccache-bin/releases/download/${{ steps.sccache_release.outputs.value }}/sccache
|
||||
chmod 755 $GITHUB_WORKSPACE/bin/sccache
|
||||
echo "########## SHARED CACHE STATUS ##########"
|
||||
sccache --version
|
||||
|
||||
Reference in New Issue
Block a user