Skip to content

Commit

Permalink
Test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
owenthewizard committed May 27, 2024
1 parent eccf079 commit 00b8ace
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/rust_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ jobs:
fail-fast: false
matrix:
action:
- command: build
args: --release
- command: fmt
args: --all -- --check --color always
- command: clippy
Expand All @@ -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"

0 comments on commit 00b8ace

Please sign in to comment.