From f0e886a95098051ab6dab0e4824811f7f07f8035 Mon Sep 17 00:00:00 2001 From: Vo Van Nghia Date: Thu, 2 May 2024 07:16:07 +0200 Subject: [PATCH 1/2] enable backtrace --- .github/workflows/coverage.yaml | 1 + .github/workflows/main.yaml | 1 + 2 files changed, 2 insertions(+) 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..2b670ffa 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" From 50e16e2d29b6596936d3026053f1f2ce3df6c135 Mon Sep 17 00:00:00 2001 From: Vo Van Nghia Date: Thu, 2 May 2024 07:20:32 +0200 Subject: [PATCH 2/2] pass to freebsd --- .github/workflows/main.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 2b670ffa..16c7f513 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -314,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: | @@ -342,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