From 00b8ace1e44ef928f9639711f3f0ddb27ed7a931 Mon Sep 17 00:00:00 2001 From: Owen Walpole Date: Mon, 27 May 2024 14:32:43 -0500 Subject: [PATCH] Test CI --- .github/workflows/rust_ci.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust_ci.yml b/.github/workflows/rust_ci.yml index d7e6dd5..7ed1d5e 100644 --- a/.github/workflows/rust_ci.yml +++ b/.github/workflows/rust_ci.yml @@ -19,8 +19,6 @@ jobs: fail-fast: false matrix: action: - - command: build - args: --release - command: fmt args: --all -- --check --color always - command: clippy @@ -35,9 +33,20 @@ jobs: uses: Swatinem/rust-cache@v2 - name: Run Command run: cargo ${{ matrix.action.command }} ${{ matrix.action.args }} + rust-build: + name: Rust Build + runs-on: ubuntu-latest + steps: + - name: Install XCB + run: sudo apt install -y libxcb1-dev libxcb-randr0-dev libxcb-shm0-dev + - uses: actions/checkout@v4 + - name: Enable Caching + uses: Swatinem/rust-cache@v2 + - name: Cargo Build + run: cargo build --release - name: Configure GPG Key - run: echo -n "$GPG_SIGNING_KEY" | gpg --batch --allow-secret-key-import --import + run: echo -n "$GPG_SIGNING_KEY" | gpg --batch --pinentry-mode loopback --allow-secret-key-import --import env: GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} - name: Sign Release - run: gpg --batch --detach-sign "$GITHUB_WORKSPACE/target/release/i3lockr" + run: gpg --batch --pinentry-mode loopback --detach-sign "$GITHUB_WORKSPACE/target/release/i3lockr"