diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index b4018109..251421de 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -8,6 +8,7 @@ on: env: CARGO_TERM_COLOR: always + RUST_BACKTRACE: full VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" RUST_TOOLCHAIN: nightly-2024-04-21 DATABASE_URL: "postgres://postgres:postgres@localhost:5432/postgres" diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index fbc0c032..16c7f513 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -15,6 +15,7 @@ on: env: CARGO_TERM_COLOR: always + RUST_BACKTRACE: full VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" RUST_TOOLCHAIN: nightly-2024-04-21 DATABASE_URL: "postgres://postgres:postgres@localhost:5432/postgres" @@ -313,6 +314,12 @@ jobs: sudo docker image prune --all --force - uses: actions/checkout@v4 + - name: Export GitHub Actions cache environment variables + uses: actions/github-script@v7 + with: + script: | + core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - name: Extract build information id: build run: | @@ -341,7 +348,7 @@ jobs: with: operating_system: freebsd version: ${{ matrix.version }} - environment_variables: "DATABASE_URL AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_REGION AWS_ENDPOINT_URL AWS_USE_PATH_STYLE_ENDPOINT" + environment_variables: "CARGO_TERM_COLOR RUST_BACKTRACE VCPKG_BINARY_SOURCES ACTIONS_CACHE_URL ACTIONS_RUNTIME_TOKEN DATABASE_URL AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_REGION AWS_ENDPOINT_URL AWS_USE_PATH_STYLE_ENDPOINT" shell: "bash" cpu_count: 4 image_url: https://github.com/vnghia/nghe-freebsd-builder/releases/download/v0.0.10/freebsd-${{ matrix.version }}-x86-64.qcow2