diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 72d0ba7..a67af17 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -42,5 +42,12 @@ jobs: key: ${{ runner.os }}-${{ github.job }}-${{ matrix.example }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Check CGroup run: systemd-run --user --scope cat /proc/self/cgroup + - name: Build Devshell + run: nix build .#devShells.x86_64-linux.default - name: Run example ${{ matrix.example }} - run: nix develop --command systemd-run-example-${{ matrix.example }} --duration $DURATION + shell: nix develop --command {0} + run: >- + echo "RUN_OUTPUT=$( + systemd-run-example-${{ matrix.example }} --duration $DURATION | + tee /dev/tty + )"