Skip to content

Commit

Permalink
Add tmate session for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarler committed Sep 13, 2024
1 parent beeb31f commit 167ce0f
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: ci
on:
pull_request:
push:
branches:
- main
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }}
Expand All @@ -13,21 +13,23 @@ jobs:
ci:
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
id-token: write
contents: read
steps:
- uses: actions/checkout@main
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Set up nix dev env
run: nix develop --command echo 0
- name: Run `cargo build`
run: nix develop --ignore-environment --command cargo build
- name: Run `cargo clippy`
run: nix develop --ignore-environment --command cargo clippy --all-targets -- -D warnings
- name: Run `cargo test`
run: nix develop --command cargo test
- name: Run `cargo fmt`
run: nix develop --ignore-environment --command cargo fmt --check
- name: Run `nix fmt`
run: nix fmt -- --check .
- uses: actions/checkout@main
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Set up nix dev env
run: nix develop --command echo 0
- name: Run `cargo build`
run: nix develop --ignore-environment --command cargo build
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- name: Run `cargo clippy`
run: nix develop --ignore-environment --command cargo clippy --all-targets -- -D warnings
- name: Run `cargo test`
run: nix develop --command cargo test
- name: Run `cargo fmt`
run: nix develop --ignore-environment --command cargo fmt --check
- name: Run `nix fmt`
run: nix fmt -- --check .

0 comments on commit 167ce0f

Please sign in to comment.