Skip to content

Commit

Permalink
Merge branches 'fraccaman/ci-docs-cache' (#670) and 'fraccaman/ci-lin…
Browse files Browse the repository at this point in the history
…ker' (#678)

* fraccaman/ci-docs-cache:
  ci: invalide cf cache

* fraccaman/ci-linker:
  ci: use mold linker
  • Loading branch information
tzemanovic committed Oct 25, 2022
3 parents 43c5248 + d5205e6 + a699404 commit 99945f7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-and-test-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ jobs:
restore-keys: ${{ runner.os }}-${{ matrix.make.cache_key }}-${{ matrix.make.cache_version }}-cargo-
- name: Start sccache server
run: sccache --start-server
- name: Install mold linker
uses: rui314/setup-mold@v1
- name: Build
run: make build${{ matrix.make.suffix }}
- name: Build test
Expand Down Expand Up @@ -228,7 +230,7 @@ jobs:
ANOMA_TENDERMINT_WEBSOCKET_TIMEOUT: 20
ANOMA_E2E_USE_PREBUILT_BINARIES: "true"
ANOMA_E2E_KEEP_TEMP: "true"
ENV_VAR_TM_STDOUT: "false"
ANOMA_TM_STDOUT: "false"
ANOMA_LOG_COLOR: "false"
ANOMA_MASP_PARAMS_DIR: "/home/runner/work/masp"
ANOMA_LOG: "info"
Expand Down Expand Up @@ -316,6 +318,8 @@ jobs:
restore-keys: ${{ runner.os }}-${{ matrix.make.cache_key }}-${{ matrix.make.cache_version }}-cargo-
- name: Start sccache server
run: sccache --start-server
- name: Install mold linker
uses: rui314/setup-mold@v1
- name: Build
run: make build-release${{ matrix.make.suffix }}
- name: Upload target binaries
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ jobs:
restore-keys: ${{ runner.os }}-${{ matrix.make.cache_key }}-${{ matrix.make.cache_version }}-cargo-
- name: Start sccache server
run: sccache --start-server
- name: Install mold linker
uses: rui314/setup-mold@v1
- name: Build
run: make build${{ matrix.make.suffix }}
- name: Build test
Expand Down Expand Up @@ -230,7 +232,7 @@ jobs:
ANOMA_TENDERMINT_WEBSOCKET_TIMEOUT: 20
ANOMA_E2E_USE_PREBUILT_BINARIES: "true"
ANOMA_E2E_KEEP_TEMP: "true"
ENV_VAR_TM_STDOUT: "false"
ANOMA_TM_STDOUT: "false"
ANOMA_LOG_COLOR: "false"
ANOMA_MASP_PARAMS_DIR: "/home/runner/work/masp"
ANOMA_LOG: "info"
Expand Down Expand Up @@ -316,6 +318,8 @@ jobs:
~/.cargo/git
key: ${{ runner.os }}-${{ matrix.make.cache_key }}-${{ matrix.make.cache_version }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-${{ matrix.make.cache_key }}-${{ matrix.make.cache_version }}-cargo-
- name: Install mold linker
uses: rui314/setup-mold@v1
- name: Start sccache server
run: sccache --start-server
- name: Build
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,21 @@ jobs:
command: cd documentation/specs && mdbook build
cache_subkey: specs
cache_version: v1
distribution_id: E2Y9R2H4P5LYED
- name: Build docs
folder: documentation/docs
bucket: namada-docs-static-website
command: cd documentation/docs && mdbook build
cache_subkey: docs
cache_version: v1
distribution_id: E2T9UML53913RV
- name: Build development docs
folder: documentation/dev
bucket: namada-dev-static-website
command: cargo run --bin namada_encoding_spec && cd documentation/dev && mdbook build
cache_subkey: dev
cache_version: v1
distribution_id: E6XPP5KFWXJFQ

env:
CARGO_INCREMENTAL: 0
Expand Down Expand Up @@ -127,6 +130,9 @@ jobs:
- name: Publish docs
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: aws s3 sync ${{ matrix.make.folder }}/book/html/ s3://${{ matrix.make.bucket }} --region eu-west-1 --delete
- name: Invalidate distribution cache
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: aws cloudfront create-invalidation --distribution-id ${{ matrix.make.distribution_id }} --paths "/*"
- name: Print sccache stats
if: always()
run: sccache --show-stats
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ jobs:
restore-keys: ${{ runner.os }}-anoma-release-${{ matrix.anoma_cache_version }}
- name: Start sccache server
run: sccache --start-server
- name: Install mold linker
uses: rui314/setup-mold@v1
- name: ${{ matrix.make.name }}
run: make ${{ matrix.make.command }}
- name: Upload binaries package
Expand Down

0 comments on commit 99945f7

Please sign in to comment.