From d5205e6cf74e25d07a1263cb5244dc5892469889 Mon Sep 17 00:00:00 2001 From: Gianmarco Fraccaroli <> Date: Mon, 24 Oct 2022 10:49:10 +0200 Subject: [PATCH 1/2] ci: invalide cf cache --- .github/workflows/build-and-test-bridge.yml | 2 +- .github/workflows/build-and-test.yml | 2 +- .github/workflows/docs.yml | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test-bridge.yml b/.github/workflows/build-and-test-bridge.yml index cee43b941b..f82286f1d5 100644 --- a/.github/workflows/build-and-test-bridge.yml +++ b/.github/workflows/build-and-test-bridge.yml @@ -228,7 +228,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" diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 1c4cbd3412..3ad569a2fb 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -230,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" diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0ba9f39b98..5304af902e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 @@ -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 From a699404009f1d43d9239ce633cd25e200eb99898 Mon Sep 17 00:00:00 2001 From: Gianmarco Fraccaroli <> Date: Tue, 25 Oct 2022 13:05:08 +0200 Subject: [PATCH 2/2] ci: use mold linker --- .github/workflows/build-and-test-bridge.yml | 4 ++++ .github/workflows/build-and-test.yml | 4 ++++ .github/workflows/release.yml | 2 ++ 3 files changed, 10 insertions(+) diff --git a/.github/workflows/build-and-test-bridge.yml b/.github/workflows/build-and-test-bridge.yml index cee43b941b..5222feea5a 100644 --- a/.github/workflows/build-and-test-bridge.yml +++ b/.github/workflows/build-and-test-bridge.yml @@ -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 @@ -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 diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 1c4cbd3412..f4f0e398d6 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -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 @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5cbc1e9207..e65b1fe459 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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