Skip to content

Commit

Permalink
Sync based on size only
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed Feb 21, 2024
1 parent bb88de5 commit 05ceb53
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/actions/setup-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Setup Dependencies

inputs:
cache:
description: "Indicates whether to install and configure caching tools"
required: false
default: true

runs:
using: "composite"
steps:
Expand Down Expand Up @@ -78,15 +84,15 @@ runs:
restore-keys: |
ci-${{ runner.os }}-${{matrix.name || matrix.language }}-
ci-${{ runner.os }}-
if: runner.os == 'macOS' || runner.os == 'Linux'
if: inputs.cache && (runner.os == 'macOS' || runner.os == 'Linux')

- name: Configure ccache path
run: |
echo "/usr/lib/ccache" >> $GITHUB_PATH
echo "/usr/local/opt/ccache/libexec" >> $GITHUB_PATH
echo "/opt/homebrew/opt/ccache/libexec" >> $GITHUB_PATH
shell: bash
if: runner.os == 'macOS' || runner.os == 'Linux'
if: inputs.cache && (runner.os == 'macOS' || runner.os == 'Linux')

# - name: Setup Windows Cache
# uses: actions/cache@v4
Expand All @@ -101,4 +107,4 @@ runs:
# restore-keys: |
# ci-${{ runner.os }}-${{matrix.name || matrix.language }}-
# ci-${{ runner.os }}-
# if: runner.os == 'Windows'
# if: inputs.cache && runner.os == 'Windows'
6 changes: 4 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:

- name: Setup Dependencies
uses: ./.github/actions/setup-dependencies
with:
cache: false

- name: Install awscli
run: brew install awscli || true
Expand All @@ -39,10 +41,10 @@ jobs:
- name: Sync Documentation to S3
run: |
aws s3 sync ./doxygen/slice s3://zeroc-ice-docs/api/ice/main/slice --delete
aws s3 sync --size-only ./doxygen/slice s3://zeroc-ice-docs/api/ice/main/slice --delete
aws s3 cp ./doxygen/slice.tag s3://zeroc-ice-docs/api/ice/main/slice.tag
aws s3 sync ./cpp/doxygen/cpp s3://zeroc-ice-docs/api/ice/main/cpp --delete
aws s3 sync --size-only ./cpp/doxygen/cpp s3://zeroc-ice-docs/api/ice/main/cpp --delete
aws s3 cp ./cpp/doxygen/icecpp.tag s3://zeroc-ice-docs/api/ice/main/icecpp.tag
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down

0 comments on commit 05ceb53

Please sign in to comment.