Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Sep 18, 2024
1 parent f0a36de commit 46a64eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ jobs:
bundler-cache: true

- name: Setup sccache
run: ./dev/ci/setup-sccache aarch64-apple-darwin
run: ./dev/ci/setup-sccache
env:
ARCH_AND_OS: aarch64-apple-darwin
SCCACHE_LOG: debug
SCCACHE_AZURE_CONNECTION_STRING: ${{ secrets.AZURE_CI_STORAGE_CONNECTION_STRING }}

Expand Down
10 changes: 8 additions & 2 deletions dev/ci/setup-sccache
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
#!/usr/bin/env bash
set -e

ARCH_AND_OS="$1"
if [[ -z "$ARCH_AND_OS" ]]; then
echo "ARCH_AND_OS is required"
exit 1
fi
if [[ -z "$SCCACHE_AZURE_CONNECTION_STRING" ]]; then
echo "SCCACHE_AZURE_CONNECTION_STRING is required"
exit 1
fi

echo "PATH=/usr/local/libexec/sccache:/usr/local/bin:$PATH" >> "$GITHUB_ENV"
echo "SCCACHE_ERROR_LOG=$(pwd)/sccache.log" >> "$GITHUB_ENV"
echo "SCCACHE_LOG=sccache=trace" >> "$GITHUB_ENV"
set -x

wget --output-document sccache.tar.gz "https://github.com/mozilla/sccache/releases/download/v0.8.1/sccache-v0.8.1-$ARCH_AND_OS.tar.gz"
Expand Down

0 comments on commit 46a64eb

Please sign in to comment.