Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: enable backtrace and cache #198

Merged
merged 2 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down
Loading