Skip to content

Commit

Permalink
CI: upload debug artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
owenthewizard committed May 27, 2024
1 parent 8730a30 commit d1dd333
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 41 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/build_release.yml

This file was deleted.

39 changes: 36 additions & 3 deletions .github/workflows/rust_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ jobs:
matrix:
action:
- command: build
args: --color always
- command: fmt
args: --all -- --check --color always
args: --all -- --check
- command: clippy
args: --all-features --workspace -- -D warnings
- command: test
args: --color always
steps:
- name: Install XCB
run: sudo apt install -y libxcb1-dev libxcb-randr0-dev libxcb-shm0-dev
Expand All @@ -35,3 +33,38 @@ jobs:
uses: Swatinem/rust-cache@v2
- name: Run Command
run: cargo ${{ matrix.action.command }} ${{ matrix.action.args }}
- name: Upload i3lockr Debug
uses: actions/upload-artifact@v4
with:
name: i3lockr
path: target/debug/i3lockr
if-no-files-found: ignore
overwrite: true
build-release:
if: startsWith(github.ref, 'refs/tags/')
name: Build and Release i3lockr
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 --pinentry-mode loopback --allow-secret-key-import --import
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
- name: Sign Release
run: gpg --batch --pinentry-mode loopback --passphrase "$GPG_PASSPHRASE" --detach-sign "$GITHUB_WORKSPACE/target/release/i3lockr"
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Draft Release
uses: softprops/action-gh-release@v2
with:
draft: true
fail_on_unmatched_files: true
files: |
target/release/i3lockr
target/release/i3lockr.sig

0 comments on commit d1dd333

Please sign in to comment.