From 167ce0ffed573fcb6f3d14fa01d8ae5cef13f222 Mon Sep 17 00:00:00 2001 From: Gordon Marler Date: Fri, 13 Sep 2024 15:18:28 -0400 Subject: [PATCH] Add tmate session for debugging --- .github/workflows/build.yml | 40 +++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f7e867..6d80555 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} @@ -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 . \ No newline at end of file + - 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 .